-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 18.0.0
-
None
When I configure a remote linux build device and set up a kit, and open a project on that device, I get lots of
"value.osType() == osType()" in ..../qtcreator/src/libs/utils/environment.cpp:169
That is a check in Environment::prependOrSetLibrarySearchPath, and I get that because the m_remoteEnvironment in the RemoteLinuxEnvironmentAspect has my hostOsType() == macOS.
An example stack trace is
1 Utils::writeAssertLocation(const char *) qtcassert.cpp 121 0x10241c01c 2 Utils::Environment::prependOrSetLibrarySearchPath(Utils::FilePath const&) environment.cpp 169 0x102122f2c 3 Utils::Environment::prependOrSetLibrarySearchPaths(Utils::FilePaths const&)::$_0::operator()(Utils::FilePath const&) const environment.cpp 194 0x102137864 4 void Utils::reverseForeach<Utils::FilePaths, Utils::Environment::prependOrSetLibrarySearchPaths(Utils::FilePaths const&)::$_0>(Utils::FilePaths const&, Utils::Environment::prependOrSetLibrarySearchPaths(Utils::FilePaths const&)::$_0 const&) algorithm.h 1388 0x1021231fc 5 Utils::Environment::prependOrSetLibrarySearchPaths(Utils::FilePaths const&) environment.cpp 193 0x102123188 6 CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0::operator()(Utils::Environment&, bool) const cmakebuildsystem.cpp 2319 0x12b1e970c 7 decltype(std::declval<CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0&>()(std::declval<Utils::Environment&>(), std::declval<bool>())) std::__invoke[abi:ne200100]<CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0&, Utils::Environment&, bool>(CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0&, Utils::Environment&, bool&&) invoke.h 179 0x12b1e96a0 8 void std::__invoke_void_return_wrapper<void, true>::__call[abi:ne200100]<CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0&, Utils::Environment&, bool>(CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0&, Utils::Environment&, bool&&) invoke.h 251 0x12b1e9664 9 void std::__invoke_r[abi:ne200100]<void, CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0&, Utils::Environment&, bool>(CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0&, Utils::Environment&, bool&&) invoke.h 273 0x12b1e9630 10 std::__function::__alloc_func<CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0, std::allocator<CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0>, void (Utils::Environment&, bool)>::operator()[abi:ne200100](Utils::Environment&, bool&&) function.h 167 0x12b1e95fc 11 std::__function::__func<CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0, std::allocator<CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::$_0>, void (Utils::Environment&, bool)>::operator()(Utils::Environment&, bool&&) function.h 319 0x12b1e8e1c 12 std::__function::__value_func<void (Utils::Environment&, bool)>::operator()[abi:ne200100](Utils::Environment&, bool&&) const function.h 436 0x127f8f5b8 13 std::function<void (Utils::Environment&, bool)>::operator()(Utils::Environment&, bool) const function.h 995 0x127f8f4f0 14 RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1::operator()(Utils::Environment&) const remotelinuxrunconfiguration.cpp 85 0x127f8f42c 15 decltype(std::declval<RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1&>()(std::declval<Utils::Environment&>())) std::__invoke[abi:ne200100]<RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1&, Utils::Environment&>(RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1&, Utils::Environment&) invoke.h 179 0x127f8f394 16 void std::__invoke_void_return_wrapper<void, true>::__call[abi:ne200100]<RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1&, Utils::Environment&>(RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1&, Utils::Environment&) invoke.h 251 0x127f8f368 17 void std::__invoke_r[abi:ne200100]<void, RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1&, Utils::Environment&>(RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1&, Utils::Environment&) invoke.h 273 0x127f8f33c 18 std::__function::__alloc_func<RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1, std::allocator<RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1>, void (Utils::Environment&)>::operator()[abi:ne200100](Utils::Environment&) function.h 167 0x127f8f310 19 std::__function::__func<RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1, std::allocator<RemoteLinux::Internal::RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(ProjectExplorer::BuildConfiguration *, Utils::Id)::$_1>, void (Utils::Environment&)>::operator()(Utils::Environment&) function.h 319 0x127f8eb38 20 std::__function::__value_func<void (Utils::Environment&)>::operator()[abi:ne200100](Utils::Environment&) const function.h 436 0x11db62e68 21 std::function<void (Utils::Environment&)>::operator()(Utils::Environment&) const function.h 995 0x11db53fbc 22 ProjectExplorer::EnvironmentAspect::modifiedBaseEnvironment() const environmentaspect.cpp 92 0x11de60304 23 ProjectExplorer::EnvironmentAspect::environment() const environmentaspect.cpp 73 0x11de5fdc8 24 ProjectExplorer::WorkingDirectoryAspect::workingDirectory() const runconfigurationaspects.cpp 256 0x11e315be0 25 ProjectExplorer::RunConfiguration::runnable() const runconfiguration.cpp 629 0x11e2efa28 26 ProjectExplorer::runConfigTerminalParameters(ProjectExplorer::Project const *, ProjectExplorer::Node const *) projectexplorer.cpp 345 0x11e15e2d0 27 ProjectExplorer::ProjectExplorerPluginPrivate::updateContextMenuActions(ProjectExplorer::Node *) projectexplorer.cpp 3493 0x11e14b28c 28 QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<ProjectExplorer::Node *>, void, void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *)>::call(void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *), ProjectExplorer::ProjectExplorerPluginPrivate *, void * *)::'lambda'()::operator()() const qobjectdefs_impl.h 127 0x11e1841e4 29 void QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<ProjectExplorer::Node *>, void, void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *)>::call(void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *), ProjectExplorer::ProjectExplorerPluginPrivate *, void * *)::'lambda'()>(void * *, QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<ProjectExplorer::Node *>, void, void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *)>::call(void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *), ProjectExplorer::ProjectExplorerPluginPrivate *, void * *)::'lambda'()&&) qobjectdefs_impl.h 65 0x11e184144 30 QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<ProjectExplorer::Node *>, void, void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *)>::call(void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *), ProjectExplorer::ProjectExplorerPluginPrivate *, void * *) qobjectdefs_impl.h 126 0x11e18411c 31 void QtPrivate::FunctionPointer<void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *)>::call<QtPrivate::List<ProjectExplorer::Node *>, void>(void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *), ProjectExplorer::ProjectExplorerPluginPrivate *, void * *) qobjectdefs_impl.h 174 0x11e184060 32 QtPrivate::QCallableObject<void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(ProjectExplorer::Node *), QtPrivate::List<ProjectExplorer::Node *>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void * *, bool *) qobjectdefs_impl.h 545 0x11e183f60 33 ___lldb_unnamed_symbol10380 (arm64) /Users/***/Qt/6.10.0/macos/lib/QtCore.framework/Versions/A/QtCore 0x104499df0 34 void QMetaObject::activate<void, ProjectExplorer::Node *>(QObject *, QMetaObject const *, int, void *, ProjectExplorer::Node * const&) qobjectdefs.h 319 0x11dae34b4 35 ProjectExplorer::ProjectTree::currentNodeChanged(ProjectExplorer::Node *) moc_projecttree.cpp 166 0x11dae2e44 36 ProjectExplorer::ProjectTree::setCurrent(ProjectExplorer::Node *, ProjectExplorer::Project *) projecttree.cpp 201 0x11e2614bc 37 ProjectExplorer::ProjectTree::updateFromProjectTreeWidget(ProjectExplorer::Internal::ProjectTreeWidget *) projecttree.cpp 144 0x11e261824 38 ProjectExplorer::ProjectTree::nodeChanged(ProjectExplorer::Internal::ProjectTreeWidget *) projecttree.cpp 121 0x11e26198c 39 ProjectExplorer::Internal::ProjectTreeWidget::handleCurrentItemChange(QModelIndex const&) projecttreewidget.cpp 528 0x11e27047c 40 QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QModelIndex const&>, void, void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&)>::call(void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&), ProjectExplorer::Internal::ProjectTreeWidget *, void * *)::'lambda'()::operator()() const qobjectdefs_impl.h 127 0x11e27b268 41 void QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QModelIndex const&>, void, void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&)>::call(void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&), ProjectExplorer::Internal::ProjectTreeWidget *, void * *)::'lambda'()>(void * *, QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QModelIndex const&>, void, void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&)>::call(void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&), ProjectExplorer::Internal::ProjectTreeWidget *, void * *)::'lambda'()&&) qobjectdefs_impl.h 65 0x11e27b1cc 42 QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>, QtPrivate::List<QModelIndex const&>, void, void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&)>::call(void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&), ProjectExplorer::Internal::ProjectTreeWidget *, void * *) qobjectdefs_impl.h 126 0x11e27b1a4 43 void QtPrivate::FunctionPointer<void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&)>::call<QtPrivate::List<QModelIndex const&>, void>(void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&), ProjectExplorer::Internal::ProjectTreeWidget *, void * *) qobjectdefs_impl.h 174 0x11e27b0e8 44 QtPrivate::QCallableObject<void (ProjectExplorer::Internal::ProjectTreeWidget:: *)(QModelIndex const&), QtPrivate::List<QModelIndex const&>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void * *, bool *) qobjectdefs_impl.h 545 0x11e27afe8 45 ___lldb_unnamed_symbol10380 (arm64) /Users/***/Qt/6.10.0/macos/lib/QtCore.framework/Versions/A/QtCore 0x104499df0 46 QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtCore.framework/Versions/A/QtCore 0x1046873d0 47 QAbstractItemView::mousePressEvent(QMouseEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x101a041d8 48 QTreeView::mousePressEvent(QMouseEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x101a7a170 49 Utils::View<QTreeView>::mousePressEvent(QMouseEvent *) itemviews.h 71 0x11db642f0 50 QWidget::event(QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x1017bdd50 51 QFrame::event(QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x10180f7f0 52 QAbstractItemView::viewportEvent(QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x101a03d90 53 QTreeView::viewportEvent(QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x101a7706c 54 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject *, QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtCore.framework/Versions/A/QtCore 0x1044469ec 55 QApplicationPrivate::notify_helper(QObject *, QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x10176f154 56 QApplication::notify(QObject *, QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x10177130c 57 QCoreApplication::sendSpontaneousEvent(QObject *, QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtCore.framework/Versions/A/QtCore 0x104447350 58 QApplicationPrivate::sendMouseEvent(QWidget *, QMouseEvent *, QWidget *, QWidget *, QWidget * *, QPointer<QWidget>&, bool, bool) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x10176f7cc 59 ___lldb_unnamed_symbol11910 (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x1017d3ddc 60 ___lldb_unnamed_symbol11906 (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x1017d3024 61 QApplicationPrivate::notify_helper(QObject *, QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x10176f174 62 QApplication::notify(QObject *, QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtWidgets.framework/Versions/A/QtWidgets 0x1017701cc 63 QCoreApplication::sendSpontaneousEvent(QObject *, QEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtCore.framework/Versions/A/QtCore 0x104447350 64 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent *) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtGui.framework/Versions/A/QtGui 0x100bd61a4 65 QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtGui.framework/Versions/A/QtGui 0x100c38708 66 ___lldb_unnamed_symbol1785 (arm64) /Users/***/Qt/6.10.0/macos/plugins/platforms/libqcocoa.dylib 0x101d84e4c 67 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x181b5fad8 68 __CFRunLoopDoSource0 (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x181b5fa6c 69 __CFRunLoopDoSources0 (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x181b5f7d8 70 __CFRunLoopRun (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x181b5e468 71 _CFRunLoopRunSpecificWithOptions (arm64e) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x181c1c898 72 RunCurrentEventLoopInMode (arm64e) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x18e55b730 73 ReceiveNextEventCommon (arm64e) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x18e55e9d0 74 _BlockUntilNextEventMatchingListInMode (arm64e) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x18e6e81f4 75 _DPSBlockUntilNextEventMatchingListInMode (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x18643625c 76 _DPSNextEvent (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x185f4cedc 77 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x18699f958 78 -[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x18699f664 79 -[NSApplication run] (arm64e) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x185f45720 80 ___lldb_unnamed_symbol1759 (arm64) /Users/***/Qt/6.10.0/macos/plugins/platforms/libqcocoa.dylib 0x101d826d0 81 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (arm64) /Users/***/Qt/6.10.0/macos/lib/QtCore.framework/Versions/A/QtCore 0x1044504f8 82 QCoreApplication::exec() (arm64) /Users/***/Qt/6.10.0/macos/lib/QtCore.framework/Versions/A/QtCore 0x104446f34 83 main main.cpp 1030 0x10000e690 84 start (arm64e) /usr/lib/dyld 0x181701d54