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

Creator crashes when the project with android configuration is opened

XMLWordPrintable

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

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes