Qt Creator freezes after enabling restore last session on startup
-
Hi. I am on Arch Linux. So after updating to latest version (V21) I noticed when I am enabling "Restore last session on startup" the app freezes and become unresponsive until I terminate the app. So please help. Thanks.
@gogdarag Did you try to run qtcreator with debugger to see where it hangs?
You can use -temporarycleansettings to be able to start QtCreator again.
You can also try to start it with "-noload all" to start without plug-in, then you can change configuration. -
I run qtcreator with a debugger but unfortunately since my internet so bad I could not download debug info data. So I ran it with release binary. And here is the complete output from start to freeze point:
Reading symbols from qtcreator... This GDB supports auto-downloading debuginfo from the following URLs: <https://debuginfod.archlinux.org> Enable debuginfod for this session? (y or [n]) n Debuginfod has been disabled. To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit. (No debugging symbols found in qtcreator) (gdb) run Starting program: /usr/bin/qtcreator [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7ffff0bff6c0 (LWP 97773) (id 2)] [New Thread 0x7fffe957a6c0 (LWP 97774) (id 3)] [New Thread 0x7fffe0bff6c0 (LWP 97775) (id 4)] [New Thread 0x7fffad9646c0 (LWP 97778) (id 5)] [New Thread 0x7fffad1636c0 (LWP 97779) (id 6)] [New Thread 0x7fffa79ff6c0 (LWP 97780) (id 7)] qtc.mcpserver.plugin: MCP server started successfully on 127.0.0.1:34117 [Detaching after vfork from child process 97781] [New Thread 0x7fffa71fe6c0 (LWP 97782) (id 8)] [Thread 0x7fffa71fe6c0 (LWP 97782) (id 8) exited] SOFT ASSERT [10:21:26.136]: "false" in /usr/src/debug/qtcreator/qt-creator/src/plugins/projectexplorer/runcontrol.cpp:128 "LocalQmlProfilerRunWorkerFactory" [New Thread 0x7fffa71fe6c0 (LWP 97783) (id 9)] [Detaching after vfork from child process 97784] [New Thread 0x7fffa57ff6c0 (LWP 97785) (id 10)] [Thread 0x7fffa57ff6c0 (LWP 97785) (id 10) exited] [Detaching after vfork from child process 97786] [Detaching after vfork from child process 97787] [New Thread 0x7fffa57ff6c0 (LWP 97788) (id 11)] [New Thread 0x7fffa4ffe6c0 (LWP 97789) (id 12)] [Thread 0x7fffa4ffe6c0 (LWP 97789) (id 12) exited] [New Thread 0x7fffa4ffe6c0 (LWP 97790) (id 13)] [New Thread 0x7fff9bfff6c0 (LWP 97791) (id 14)] [New Thread 0x7fff9b7fe6c0 (LWP 97792) (id 15)] [New Thread 0x7fff9affd6c0 (LWP 97793) (id 16)] [New Thread 0x7fff9a7fc6c0 (LWP 97794) (id 17)] [New Thread 0x7fff99ffb6c0 (LWP 97795) (id 18)] [New Thread 0x7fff997fa6c0 (LWP 97796) (id 19)] [Thread 0x7fffa57ff6c0 (LWP 97788) (id 11) exited] [New Thread 0x7fffa57ff6c0 (LWP 97797) (id 20)] [Detaching after vfork from child process 97798] [Detaching after vfork from child process 97799] [New Thread 0x7fff93fff6c0 (LWP 97803) (id 21)] [New Thread 0x7fff937fe6c0 (LWP 97804) (id 22)] [Detaching after vfork from child process 97805] [New Thread 0x7fff92ffd6c0 (LWP 97806) (id 23)] [Thread 0x7fff92ffd6c0 (LWP 97806) (id 23) exited] [Detaching after vfork from child process 97807] [Detaching after vfork from child process 97811] [New Thread 0x7fff92ffd6c0 (LWP 97812) (id 24)] [Thread 0x7fff92ffd6c0 (LWP 97812) (id 24) exited] [Detaching after vfork from child process 97813] [New Thread 0x7fff92ffd6c0 (LWP 97814) (id 25)] [Thread 0x7fff92ffd6c0 (LWP 97814) (id 25) exited] [Detaching after vfork from child process 97818] [New Thread 0x7fff92ffd6c0 (LWP 97820) (id 26)] [Thread 0x7fffa57ff6c0 (LWP 97797) (id 20) exited] [Thread 0x7fff997fa6c0 (LWP 97796) (id 19) exited] [Thread 0x7fff99ffb6c0 (LWP 97795) (id 18) exited] [Thread 0x7fff9a7fc6c0 (LWP 97794) (id 17) exited] [Thread 0x7fff9affd6c0 (LWP 97793) (id 16) exited] [Thread 0x7fff9b7fe6c0 (LWP 97792) (id 15) exited] [Thread 0x7fff9bfff6c0 (LWP 97791) (id 14) exited] [Thread 0x7fffa4ffe6c0 (LWP 97790) (id 13) exited] [Thread 0x7fff93fff6c0 (LWP 97803) (id 21) exited] [Thread 0x7fffa71fe6c0 (LWP 97783) (id 9) exited] [Thread 0x7fffad9646c0 (LWP 97778) (id 5) exited]And here is when I terminate the running qtcreator process.
Thread 1 "qtcreator" received signal SIGABRT, Aborted. 0x00007ffff551e86d in syscall () from /usr/lib/libc.so.6And here is Image from the gui in freezing state
.
As you can see it freezes in Loading Session step. -
I run qtcreator with a debugger but unfortunately since my internet so bad I could not download debug info data. So I ran it with release binary. And here is the complete output from start to freeze point:
Reading symbols from qtcreator... This GDB supports auto-downloading debuginfo from the following URLs: <https://debuginfod.archlinux.org> Enable debuginfod for this session? (y or [n]) n Debuginfod has been disabled. To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit. (No debugging symbols found in qtcreator) (gdb) run Starting program: /usr/bin/qtcreator [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7ffff0bff6c0 (LWP 97773) (id 2)] [New Thread 0x7fffe957a6c0 (LWP 97774) (id 3)] [New Thread 0x7fffe0bff6c0 (LWP 97775) (id 4)] [New Thread 0x7fffad9646c0 (LWP 97778) (id 5)] [New Thread 0x7fffad1636c0 (LWP 97779) (id 6)] [New Thread 0x7fffa79ff6c0 (LWP 97780) (id 7)] qtc.mcpserver.plugin: MCP server started successfully on 127.0.0.1:34117 [Detaching after vfork from child process 97781] [New Thread 0x7fffa71fe6c0 (LWP 97782) (id 8)] [Thread 0x7fffa71fe6c0 (LWP 97782) (id 8) exited] SOFT ASSERT [10:21:26.136]: "false" in /usr/src/debug/qtcreator/qt-creator/src/plugins/projectexplorer/runcontrol.cpp:128 "LocalQmlProfilerRunWorkerFactory" [New Thread 0x7fffa71fe6c0 (LWP 97783) (id 9)] [Detaching after vfork from child process 97784] [New Thread 0x7fffa57ff6c0 (LWP 97785) (id 10)] [Thread 0x7fffa57ff6c0 (LWP 97785) (id 10) exited] [Detaching after vfork from child process 97786] [Detaching after vfork from child process 97787] [New Thread 0x7fffa57ff6c0 (LWP 97788) (id 11)] [New Thread 0x7fffa4ffe6c0 (LWP 97789) (id 12)] [Thread 0x7fffa4ffe6c0 (LWP 97789) (id 12) exited] [New Thread 0x7fffa4ffe6c0 (LWP 97790) (id 13)] [New Thread 0x7fff9bfff6c0 (LWP 97791) (id 14)] [New Thread 0x7fff9b7fe6c0 (LWP 97792) (id 15)] [New Thread 0x7fff9affd6c0 (LWP 97793) (id 16)] [New Thread 0x7fff9a7fc6c0 (LWP 97794) (id 17)] [New Thread 0x7fff99ffb6c0 (LWP 97795) (id 18)] [New Thread 0x7fff997fa6c0 (LWP 97796) (id 19)] [Thread 0x7fffa57ff6c0 (LWP 97788) (id 11) exited] [New Thread 0x7fffa57ff6c0 (LWP 97797) (id 20)] [Detaching after vfork from child process 97798] [Detaching after vfork from child process 97799] [New Thread 0x7fff93fff6c0 (LWP 97803) (id 21)] [New Thread 0x7fff937fe6c0 (LWP 97804) (id 22)] [Detaching after vfork from child process 97805] [New Thread 0x7fff92ffd6c0 (LWP 97806) (id 23)] [Thread 0x7fff92ffd6c0 (LWP 97806) (id 23) exited] [Detaching after vfork from child process 97807] [Detaching after vfork from child process 97811] [New Thread 0x7fff92ffd6c0 (LWP 97812) (id 24)] [Thread 0x7fff92ffd6c0 (LWP 97812) (id 24) exited] [Detaching after vfork from child process 97813] [New Thread 0x7fff92ffd6c0 (LWP 97814) (id 25)] [Thread 0x7fff92ffd6c0 (LWP 97814) (id 25) exited] [Detaching after vfork from child process 97818] [New Thread 0x7fff92ffd6c0 (LWP 97820) (id 26)] [Thread 0x7fffa57ff6c0 (LWP 97797) (id 20) exited] [Thread 0x7fff997fa6c0 (LWP 97796) (id 19) exited] [Thread 0x7fff99ffb6c0 (LWP 97795) (id 18) exited] [Thread 0x7fff9a7fc6c0 (LWP 97794) (id 17) exited] [Thread 0x7fff9affd6c0 (LWP 97793) (id 16) exited] [Thread 0x7fff9b7fe6c0 (LWP 97792) (id 15) exited] [Thread 0x7fff9bfff6c0 (LWP 97791) (id 14) exited] [Thread 0x7fffa4ffe6c0 (LWP 97790) (id 13) exited] [Thread 0x7fff93fff6c0 (LWP 97803) (id 21) exited] [Thread 0x7fffa71fe6c0 (LWP 97783) (id 9) exited] [Thread 0x7fffad9646c0 (LWP 97778) (id 5) exited]And here is when I terminate the running qtcreator process.
Thread 1 "qtcreator" received signal SIGABRT, Aborted. 0x00007ffff551e86d in syscall () from /usr/lib/libc.so.6And here is Image from the gui in freezing state
.
As you can see it freezes in Loading Session step. -
First here is the backtrack after the freeze:
(gdb) bt #0 0x00007ffff551e86d in syscall () from /usr/lib/libc.so.6 #1 0x00007ffff58b5d0f in __cxa_guard_acquire () from /usr/lib/libstdc++.so.6 #2 0x00007ffff7af2945 in Utils::FileUtils::hasNativeFileDialog() () from /usr/bin/../lib/qtcreator/libUtils.so.21 #3 0x00007ffff7b80542 in Utils::PathChooser::setAllowPathFromDevice(bool) () from /usr/bin/../lib/qtcreator/libUtils.so.21 #4 0x00007ffff79b0156 in Utils::FilePathAspect::addToLayoutImpl(Layouting::Layout&) () from /usr/bin/../lib/qtcreator/libUtils.so.21 #5 0x00007fffe35e9641 in ProjectExplorer::BuildDirectoryAspect::addToLayoutImpl(Layouting::Layout&) () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #6 0x00007ffff7b3cfa9 in Layouting::Form::Form(std::initializer_list<Building::BuilderItem<Layouting::Form> >) () from /usr/bin/../lib/qtcreator/libUtils.so.21 #7 0x00007fffe0ea636d in ?? () from /usr/lib/qtcreator/plugins/libCMakeProjectManager.so #8 0x00007fffe0eb39f7 in CMakeProjectManager::CMakeBuildConfiguration::createConfigWidget() () from /usr/lib/qtcreator/plugins/libCMakeProjectManager.so #9 0x00007fffe35efec0 in ProjectExplorer::BuildConfiguration::createConfigWidgets() () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #10 0x00007fffe361eb20 in ?? () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #11 0x00007fffe38c2243 in ?? () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #12 0x00007fffe38be019 in ?? () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #13 0x00007fffe38c028a in ?? () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #14 0x00007ffff5dece36 in QObject::event(QEvent*) () from /usr/lib/libQt6Core.so.6 #15 0x00007ffff7103a5f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt6Widgets.so.6 #16 0x00007ffff5d86208 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt6Core.so.6 #17 0x00007ffff5d86621 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt6Core.so.6 #18 0x00007ffff60be958 in ?? () from /usr/lib/libQt6Core.so.6 #19 0x00007ffff51aa75e in ?? () from /usr/lib/libglib-2.0.so.0 #20 0x00007ffff51b3c50 in ?? () from /usr/lib/libglib-2.0.so.0 #21 0x00007ffff51b3db5 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #22 0x00007ffff60bbbd2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt6Core.so.6 #23 0x00007ffff5d93ab4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt6Core.so.6 #24 0x00007fffeb301a0c in KJob::exec() () from /usr/lib/libKF6CoreAddons.so.6 #25 0x00007ffff02bdc1a in KFileWidget::KFileWidget(QUrl const&, QWidget*) () from /usr/lib/libKF6KIOFileWidgets.so.6 #26 0x00007ffff03b2134 in ?? () from /usr/lib/qt6/plugins/platformthemes/KDEPlasmaPlatformTheme6.so #27 0x00007ffff03b3847 in ?? () from /usr/lib/qt6/plugins/platformthemes/KDEPlasmaPlatformTheme6.so #28 0x00007ffff03aaece in ?? () from /usr/lib/qt6/plugins/platformthemes/KDEPlasmaPlatformTheme6.so #29 0x00007ffff73e2f8f in QDialogPrivate::platformHelper() const () from /usr/lib/libQt6Widgets.so.6 #30 0x00007ffff7403f1f in QFileDialogPrivate::init(QFileDialogArgs const&) () from /usr/lib/libQt6Widgets.so.6 #31 0x00007ffff73f3545 in QFileDialog::QFileDialog(QWidget*, QString const&, QString const&, QString const&) () from /usr/lib/libQt6Widgets.so.6 #32 0x00007ffff7af298f in Utils::FileUtils::hasNativeFileDialog() () from /usr/bin/../lib/qtcreator/libUtils.so.21 #33 0x00007ffff7b80542 in Utils::PathChooser::setAllowPathFromDevice(bool) () from /usr/bin/../lib/qtcreator/libUtils.so.21 #34 0x00007ffff79b0156 in Utils::FilePathAspect::addToLayoutImpl(Layouting::Layout&) () from /usr/bin/../lib/qtcreator/libUtils.so.21 #35 0x00007fffe35e9641 in ProjectExplorer::BuildDirectoryAspect::addToLayoutImpl(Layouting::Layout&) () from /usr/lib/qtcreator/plugins/libProjectExplorer.so --Type <RET> for more, q to quit, c to continue without paging-- #36 0x00007ffff7b3cfa9 in Layouting::Form::Form(std::initializer_list<Building::BuilderItem<Layouting::Form> >) () from /usr/bin/../lib/qtcreator/libUtils.so.21 #37 0x00007fffe0ea636d in ?? () from /usr/lib/qtcreator/plugins/libCMakeProjectManager.so #38 0x00007fffe0eb39f7 in CMakeProjectManager::CMakeBuildConfiguration::createConfigWidget() () from /usr/lib/qtcreator/plugins/libCMakeProjectManager.so #39 0x00007fffe35efec0 in ProjectExplorer::BuildConfiguration::createConfigWidgets() () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #40 0x00007fffe361eb20 in ?? () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #41 0x00007fffe38c2243 in ?? () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #42 0x00007fffe38be019 in ?? () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #43 0x00007ffff5df5648 in ?? () from /usr/lib/libQt6Core.so.6 #44 0x00007ffff727134e in ?? () from /usr/lib/libQt6Widgets.so.6 #45 0x00007ffff72810e0 in ?? () from /usr/lib/libQt6Widgets.so.6 #46 0x00007ffff72812d0 in QComboBox::setCurrentIndex(int) () from /usr/lib/libQt6Widgets.so.6 #47 0x00007ffff5df5648 in ?? () from /usr/lib/libQt6Core.so.6 #48 0x00007ffff60347b8 in QAbstractItemModel::endInsertRows() () from /usr/lib/libQt6Core.so.6 #49 0x00007ffff7c19ef6 in Utils::TreeItem::insertChild(int, Utils::TreeItem*) () from /usr/bin/../lib/qtcreator/libUtils.so.21 #50 0x00007ffff5df5648 in ?? () from /usr/lib/libQt6Core.so.6 #51 0x00007fffe38728a8 in ProjectExplorer::ProjectManager::addProject(ProjectExplorer::Project*) () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #52 0x00007fffe382ca6f in ProjectExplorer::ProjectExplorerPlugin::openProjects(Utils::FilePaths const&, bool) () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #53 0x00007fffe387def5 in ?? () from /usr/lib/qtcreator/plugins/libProjectExplorer.so #54 0x00007ffff5df5648 in ?? () from /usr/lib/libQt6Core.so.6 #55 0x00007fffe8811b54 in Core::SessionManager::loadSession(QString const&, bool) () from /usr/lib/qtcreator/plugins/libCore.so #56 0x00007fffe881247b in ?? () from /usr/lib/qtcreator/plugins/libCore.so #57 0x00007ffff5df5648 in ?? () from /usr/lib/libQt6Core.so.6 #58 0x00007ffff7f4063c in ?? () from /usr/bin/../lib/qtcreator/libExtensionSystem.so.21 #59 0x00007ffff5df5648 in ?? () from /usr/lib/libQt6Core.so.6 #60 0x00007ffff5e07c0f in QTimer::timerEvent(QTimerEvent*) () from /usr/lib/libQt6Core.so.6 #61 0x00007ffff5decde9 in QObject::event(QEvent*) () from /usr/lib/libQt6Core.so.6 #62 0x00007ffff7103a5f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt6Widgets.so.6 #63 0x00007ffff5d86208 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt6Core.so.6 #64 0x00007ffff5f71535 in QTimerInfoList::activateTimers() () from /usr/lib/libQt6Core.so.6 #65 0x00007ffff60be8d9 in ?? () from /usr/lib/libQt6Core.so.6 #66 0x00007ffff51aa75e in ?? () from /usr/lib/libglib-2.0.so.0 #67 0x00007ffff51b3c50 in ?? () from /usr/lib/libglib-2.0.so.0 #68 0x00007ffff51b3db5 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #69 0x00007ffff60bbbd2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt6Core.so.6 #70 0x00007ffff5d93ab4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt6Core.so.6 #71 0x00007ffff5d8a97a in QCoreApplication::exec() () from /usr/lib/libQt6Core.so.6 --Type <RET> for more, q to quit, c to continue without paging-- #72 0x000055555556259e in ?? () #73 0x00007ffff5427781 in ?? () from /usr/lib/libc.so.6 #74 0x00007ffff54278b9 in __libc_start_main () from /usr/lib/libc.so.6 #75 0x00005555555635d5 in ?? ()Second I ran the qtcreator with this command
qtcreator -noload all -load coreandRestore last session on startupflag enabled and It starts normally without freezing.I hope I am helping.
-
For what it is worth, I am having the same issue. My solution was to rollback Arch by a month, and now I'm watching for a version update.