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

Opening project with non-active remote target asks for device access or even freezes (with timeout)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 10.0.0-beta1
    • Docker, Remote Linux
    • None

    Description

      • configure a remote device (e.g. remote linux)
      • configure a kit with that device as build & run target
      • open a project
      • configure a desktop kit and the remote kit
      • make the desktop kit active
      • close the project, and re-open it

      Expected: The project just opens with the desktop kit active and no device interaction

      Actual: If the device is running, the user is asked for device credentials, or if the device is not running the UI blocks for ~10 seconds, before the project is actually opened with the desktop kit active.

      Even though the remote kit is not active, it is accessed when restoring the build configurations. Backtrace:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
      1  __psynch_cvwait                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           (arm64e) /usr/lib/system/libsystem_kernel.dylib                                                                          0x1aca05564 
      2  _pthread_cond_wait                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        (arm64e) /usr/lib/system/libsystem_pthread.dylib                                                                         0x1aca41638 
      3  ___lldb_unnamed_symbol10421                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtCore.framework/Versions/A/QtCore                                              0x103f902f4 
      4  ___lldb_unnamed_symbol10420                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtCore.framework/Versions/A/QtCore                                              0x103f8ffac 
      5  QWaitCondition::wait(QMutex *, QDeadlineTimer)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtCore.framework/Versions/A/QtCore                                              0x103f8fed8 
      6  Utils::Internal::ProcessInterfaceHandler::doWaitForSignal(QDeadlineTimer)                                                                                                                                                                                                                                                                                                                                                                                                                                                                 qtcprocess.cpp                                                                                                      778  0x10200453c 
      7  Utils::Internal::ProcessInterfaceHandler::waitForSignal(Utils::ProcessSignalType, int)                                                                                                                                                                                                                                                                                                                                                                                                                                                    qtcprocess.cpp                                                                                                      749  0x102004438 
      8  Utils::Internal::GeneralProcessBlockingImpl::waitForSignal(Utils::ProcessSignalType, int)                                                                                                                                                                                                                                                                                                                                                                                                                                                 qtcprocess.cpp                                                                                                      838  0x102004e04 
      9  Utils::Internal::QtcProcessPrivate::waitForSignal(Utils::ProcessSignalType, int)                                                                                                                                                                                                                                                                                                                                                                                                                                                          qtcprocess.cpp                                                                                                      939  0x102005fd8 
      10 decltype( *(static_cast<Utils::Internal::QtcProcessPrivate *&>(fp0)). *fp(static_cast<Utils::ProcessSignalType>(fp1), static_cast<int&>(fp1))) std::__invoke<bool (Utils::Internal::QtcProcessPrivate:: *)(Utils::ProcessSignalType, int), Utils::Internal::QtcProcessPrivate *&, Utils::ProcessSignalType, int&, void>(bool (Utils::Internal::QtcProcessPrivate:: *&&)(Utils::ProcessSignalType, int), Utils::Internal::QtcProcessPrivate *&, Utils::ProcessSignalType&&, int&)                                                          type_traits                                                                                                         3859 0x10201db20 
      11 std::invoke_result<bool (Utils::Internal::QtcProcessPrivate:: *)(Utils::ProcessSignalType, int), Utils::Internal::QtcProcessPrivate *&, Utils::ProcessSignalType, int&>::type std::invoke<bool (Utils::Internal::QtcProcessPrivate:: *)(Utils::ProcessSignalType, int), Utils::Internal::QtcProcessPrivate *&, Utils::ProcessSignalType, int&>(bool (Utils::Internal::QtcProcessPrivate:: *&&)(Utils::ProcessSignalType, int), Utils::Internal::QtcProcessPrivate *&, Utils::ProcessSignalType&&, int&)                                   invoke.h                                                                                                            93   0x10201d9d8 
      12 std::invoke_result<bool (Utils::Internal::QtcProcessPrivate:: *)(Utils::ProcessSignalType, int), Utils::Internal::QtcProcessPrivate *&, Utils::ProcessSignalType, int&>::type Utils::Internal::MeasureAndRun::measureAndRun<bool (Utils::Internal::QtcProcessPrivate:: *)(Utils::ProcessSignalType, int), Utils::Internal::QtcProcessPrivate *&, Utils::ProcessSignalType, int&>(bool (Utils::Internal::QtcProcessPrivate:: *&&)(Utils::ProcessSignalType, int), Utils::Internal::QtcProcessPrivate *&, Utils::ProcessSignalType&&, int&) qtcprocess.cpp                                                                                                      63   0x1020091ac 
      13 Utils::QtcProcess::waitForStarted(int)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    qtcprocess.cpp                                                                                                      1389 0x102009114 
      14 Utils::QtcProcess::runBlocking(Utils::EventLoopMode)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      qtcprocess.cpp                                                                                                      1767 0x10200b618 
      15 RemoteLinux::LinuxDevicePrivate::getEnvironment()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         linuxdevice.cpp                                                                                                     416  0x13f58a28c 
      16 RemoteLinux::LinuxDeviceFileAccess::deviceEnvironment() const                                                                                                                                                                                                                                                                                                                                                                                                                                                                             linuxdevice.cpp                                                                                                     431  0x13f58a9d8 
      17 ProjectExplorer::IDevice::systemEnvironment() const                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       idevice.cpp                                                                                                         256  0x1335be244 
      18 ProjectExplorer::BuildConfiguration::baseEnvironment() const                                                                                                                                                                                                                                                                                                                                                                                                                                                                              buildconfiguration.cpp                                                                                              470  0x1333d0580 
      19 ProjectExplorer::BuildConfiguration::updateCacheAndEmitEnvironmentChanged()                                                                                                                                                                                                                                                                                                                                                                                                                                                               buildconfiguration.cpp                                                                                              424  0x1333cd2a0 
      20 ProjectExplorer::BuildConfiguration::fromMap(QMap<QString, QVariant> const&)                                                                                                                                                                                                                                                                                                                                                                                                                                                              buildconfiguration.cpp                                                                                              390  0x1333cfbd4 
      21 CMakeProjectManager::CMakeBuildConfiguration::fromMap(QMap<QString, QVariant> const&)                                                                                                                                                                                                                                                                                                                                                                                                                                                     cmakebuildconfiguration.cpp                                                                                         1563 0x14015f7f4 
      22 ProjectExplorer::BuildConfigurationFactory::restore(ProjectExplorer::Target *, QMap<QString, QVariant> const&)                                                                                                                                                                                                                                                                                                                                                                                                                            buildconfiguration.cpp                                                                                              764  0x1333d2f50 
      23 ProjectExplorer::Target::fromMap(QMap<QString, QVariant> const&)                                                                                                                                                                                                                                                                                                                                                                                                                                                                          target.cpp                                                                                                          819  0x133bd0f3c 
      24 ProjectExplorer::Project::createTargetFromMap(QMap<QString, QVariant> const&, int)                                                                                                                                                                                                                                                                                                                                                                                                                                                        project.cpp                                                                                                         813  0x13390ebf4 
      25 ProjectExplorer::Project::fromMap(QMap<QString, QVariant> const&, QString *)                                                                                                                                                                                                                                                                                                                                                                                                                                                              project.cpp                                                                                                         765  0x13390e344 
      26 ProjectExplorer::Project::restoreSettings(QString *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      project.cpp                                                                                                         618  0x13390ced4 
      27 ProjectExplorer::ProjectExplorerPlugin::openProjects(QList<Utils::FilePath> const&)                                                                                                                                                                                                                                                                                                                                                                                                                                                       projectexplorer.cpp                                                                                                 2440 0x133991a18 
      28 ProjectExplorer::ProjectExplorerPlugin::openProject(Utils::FilePath const&)                                                                                                                                                                                                                                                                                                                                                                                                                                                               projectexplorer.cpp                                                                                                 2368 0x13398eb60 
      29 ProjectExplorer::ProjectExplorerPlugin::openProjectWelcomePage(Utils::FilePath const&)                                                                                                                                                                                                                                                                                                                                                                                                                                                    projectexplorer.cpp                                                                                                 2361 0x13399163c 
      30 ProjectExplorer::Internal::ProjectDelegate::editorEvent(QEvent *, QAbstractItemModel *, QStyleOptionViewItem const&, QModelIndex const&)                                                                                                                                                                                                                                                                                                                                                                                                  projectwelcomepage.cpp                                                                                              517  0x133aa9bb4 
      31 ___lldb_unnamed_symbol17126                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x1014972e4 
      32 QAbstractItemView::edit(QModelIndex const&, QAbstractItemView::EditTrigger, QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                     (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x10149a36c 
      33 QAbstractItemView::mouseReleaseEvent(QMouseEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x101496f80 
      34 QTreeView::mouseReleaseEvent(QMouseEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x101507080 
      35 QWidget::event(QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x10126cf70 
      36 QFrame::event(QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x1012f0668 
      37 QAbstractItemView::viewportEvent(QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x101495efc 
      38 QTreeView::viewportEvent(QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x101504304 
      39 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject *, QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                               (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtCore.framework/Versions/A/QtCore                                              0x103e1f844 
      40 QApplicationPrivate::notify_helper(QObject *, QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x101223500 
      41 QApplication::notify(QObject *, QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x101225690 
      42 QCoreApplication::notifyInternal2(QObject *, QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtCore.framework/Versions/A/QtCore                                              0x103e1f570 
      43 QApplicationPrivate::sendMouseEvent(QWidget *, QMouseEvent *, QWidget *, QWidget *, QWidget * *, QPointer<QWidget>&, bool, bool)                                                                                                                                                                                                                                                                                                                                                                                                          (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x101223bf4 
      44 ___lldb_unnamed_symbol11625                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x1012817d0 
      45 ___lldb_unnamed_symbol11621                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x101280a88 
      46 QApplicationPrivate::notify_helper(QObject *, QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x101223520 
      47 QApplication::notify(QObject *, QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets                                        0x1012244b8 
      48 QCoreApplication::notifyInternal2(QObject *, QEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtCore.framework/Versions/A/QtCore                                              0x103e1f570 
      49 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent *)                                                                                                                                                                                                                                                                                                                                                                                                                                                    (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtGui.framework/Versions/A/QtGui                                                0x1006e3754 
      50 QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                                                                                                                                                                                                                                                                                                                                                                                     (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtGui.framework/Versions/A/QtGui                                                0x100738580 
      51 ___lldb_unnamed_symbol1727                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                (arm64) /Users/ziller/Qt/6.4.2/macos/plugins/platforms/libqcocoa.dylib                                                   0x10351e2a4 
      52 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__                                                                                                                                                                                                                                                                                                                                                                                                                                                                                (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation                                   0x1acb20a18 
      53 __CFRunLoopDoSource0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation                                   0x1acb209ac 
      54 __CFRunLoopDoSources0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation                                   0x1acb2071c 
      55 __CFRunLoopRun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation                                   0x1acb1f320 
      56 CFRunLoopRunSpecific                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation                                   0x1acb1e888 
      57 RunCurrentEventLoopInMode                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 (arm64e) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox      0x1b61f3fa0 
      58 ReceiveNextEventCommon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    (arm64e) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox      0x1b61f3c30 
      59 _BlockUntilNextEventMatchingListInModeWithFilter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          (arm64e) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox      0x1b61f3b2c 
      60 _DPSNextEvent                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit                                                   0x1afda0424 
      61 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]                                                                                                                                                                                                                                                                                                                                                                                                                                                           (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit                                                   0x1afd9f5b4 
      62 -[NSApplication run]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit                                                   0x1afd939e4 
      63 ___lldb_unnamed_symbol1708                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                (arm64) /Users/ziller/Qt/6.4.2/macos/plugins/platforms/libqcocoa.dylib                                                   0x10351d0d8 
      64 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtCore.framework/Versions/A/QtCore                                              0x103e28994 
      65 QCoreApplication::exec()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  (arm64) /Users/ziller/Qt/6.4.2/macos/lib/QtCore.framework/Versions/A/QtCore                                              0x103e1fc0c 
      66 main                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      main.cpp                                                                                                            794  0x10000c580 
      67 start                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     (arm64e) /usr/lib/dyld                                                                                                   0x1ac717e50 
      

      Attachments

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

        Activity

          People

            hjk hjk
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes