Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19683

Creator crashes when the project with android configuration is opened

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • Qt Creator 4.6.0-beta1, Qt Creator 4.7.0-beta1
    • None

    Description

      I get a crash in src\plugins\qmakeandroidsupport\qmakeandroidbuildapkstep.cpp when I'm trying to open the qmake project that was previously configured for Android (so it has .user file).

      The reason is that androidPackageSourceDir is called and pro->rootProjectNode() is null there.

      I can fix it with

      // QmakeProFileNode *root = pro->rootProjectNode(); 
      if (!root) 
      return Utils::FileName(); 
      const QmakeProjectManager::QmakeProFileNode *node 
      = root->findProFileFor(proFilePathForInputFile());

      but I'm not sure why is it called at all. So probably it should not be called during project opening.

      Attachments

        Issue Links

          Activity

            People

              vikas Vikas Pachdha
              yvvan Ivan Donchevskii
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: