Solved Qt Creator Is Crash when code writing and editing
-
Hello Friends And QT Experts
I am facing some issues with QT Creatorwhen I am writing the code that time QT is crashed or may be automatically closed
I don't know what's going on But this problem is very serious for me
because I lost my code when QT is crashed or automatically closedPlease Drop your Suggestion or solution here.
Thank you -
Upgrade Qt Creator to newest version. If the crash is happening on the newest version - downgrade to some older one.
Plus, of course, if you can find a reliable way to reproduce the crash - create a bug report on Qt bugtracker.
-
Thanks for Reply
I was already try this way even I was changed 3 time QT Versions for it But Crash is Still happeningVersion list Is
5.12.3 ///// This Version Currently i am using
5.13.2
5.15.2 ///// Not Used Much More -
@Ketan__Patel__0011 said in Qt Creator Is Crash when code writing and editing:
Thanks for Reply
I was already try this way even I was changed 3 time QT Versions for it But Crash is Still happeningVersion list Is
5.12.3 ///// This Version Currently i am using
5.13.2
5.15.2 ///// Not Used Much MoreYou are changing Qt versions but it is Qt Creator which is crashing for you, right? So, do not change Qt version. Change Qt Creator instead. You can't do this (downgrade of Qt Creator) via the maintenance tool, please install Qt Creator separately, installers are in the archive: http://download.qt.io/official_releases/qtcreator/
-
Thanks for reply
but when i install Qt Version that time i am updating all QT components as well as Qt Creator i am already try with some other Qt Creator Version
Currently i am using 4.9.0 version of Qt Creator
-
The crash is happening in Qt Creator, right? Or is your application crashing?
Depending on the answer, I think you should keep one variable constant: either keep same Qt version and try out different Creators, or keep Creator constant and keep Qt versions different.
If Qt Creator is crashing always, in all versions - make a reproducible example and report it on Qt Creator's bug tracker.
-
No My Application is Not Crashing
when i am writing the code that time Qt Creator is CrashedOkay I will report about this Bug
Thank you
-
I have the same question, when I open Qt Creator, writing and editing code, it is closed automatically.
-
@Guo-Tao What QtCreator version do you use?
-
@jsulm Same problem for me since the update to 12.0.1.
Before this everything worked just fine. I have a quite large Cmake project opened and when I edit code QtCreator simply crashes.
I have disabled most of the plugins (e.g. Clangd, ClangFormat).I used the QtCreator 12.0.1 version of the my distribution and now compiled it myself (same problem). Here is the output in the terminal:
SOFT ASSERT [09:06:57.448]: "!filePath.isEmpty()" in /home/user/Downloads/qtcreator/src/qt-creator-opensource-src-12.0.1/src/plugins/cmakeprojectmanager/fileapiparser.cpp:78 SOFT ASSERT [09:06:57.448]: "!filePath.isEmpty()" in /home/user/Downloads/qtcreator/src/qt-creator-opensource-src-12.0.1/src/plugins/cmakeprojectmanager/fileapiparser.cpp:78 SOFT ASSERT [09:06:57.448]: "!filePath.isEmpty()" in /home/user/Downloads/qtcreator/src/qt-creator-opensource-src-12.0.1/src/plugins/cmakeprojectmanager/fileapiparser.cpp:78 SOFT ASSERT [09:06:57.448]: "!filePath.isEmpty()" in /home/user/Downloads/qtcreator/src/qt-creator-opensource-src-12.0.1/src/plugins/cmakeprojectmanager/fileapiparser.cpp:78 "CMake project configuration failed. No CMake configuration for build type \"Debug\" found." [1] 6630 segmentation fault (core dumped) qtcreator
Except the segfault all the other warnings are displayed instantly after starting QtCreator. The segfault comes some seconds later (basically when I do two small changes in the file - these changes are not saved before the crash).
Here is the coredump of the program:
PID: 6630 (qtcreator) UID: XXX (user) GID: XXX (XXX) Signal: 11 (SEGV) Timestamp: Fri 2023-12-29 09:07:12 CET (3min 34s ago) Command Line: qtcreator Executable: /usr/bin/qtcreator Control Group: /user.slice/user-XXX.slice/session-3.scope Unit: session-3.scope Slice: user-XXX.slice Session: 3 Owner UID: XXX (user) Boot ID: XXX Machine ID: XXX Hostname: XXX Storage: /var/lib/systemd/coredump/core.qtcreator.XXX.XXX.XXX.XXX.zst (present) Size on Disk: 24.7M Message: Process 6630 (qtcreator) of user XXX dumped core. Stack trace of thread 6630: #0 0x00007fec021751f8 _ZNK21QSortFilterProxyModel6parentERK11QModelIndex (libQt6Core.so.6 + 0x3751f8) #1 0x00007fec0309985e n/a (libQt6Widgets.so.6 + 0x29985e) #2 0x00007fec032a9731 _ZNK9QTreeView16indexRowSizeHintERK11QModelIndex (libQt6Widgets.so.6 + 0x4a9731) #3 0x00007fec032abd1c n/a (libQt6Widgets.so.6 + 0x4abd1c) #4 0x00007fec032abfb0 _ZNK16QTreeViewPrivate17coordinateForItemEi (libQt6Widgets.so.6 + 0x4abfb0) #5 0x00007fec0329ee3c _ZNK16QTreeViewPrivate10visualRectERK11QModelIndexNS_8RectRuleE (libQt6Widgets.so.6 + 0x49ee3c) #6 0x00007fec03224592 n/a (libQt6Widgets.so.6 + 0x424592) #7 0x00007fec032241fc n/a (libQt6Widgets.so.6 + 0x4241fc) #8 0x00007fec028f02b9 n/a (libQt6Gui.so.6 + 0x4f02b9) #9 0x00007fec032a788c _ZN9QTreeView16selectionChangedERK14QItemSelectionS2_ (libQt6Widgets.so.6 + 0x4a788c) #10 0x00007fec01fba1cb n/a (libQt6Core.so.6 + 0x1ba1cb) #11 0x00007fec0215b930 _ZN19QItemSelectionModel20emitSelectionChangedERK14QItemSelectionS2_ (libQt6Core.so.6 + 0x35b930) #12 0x00007fec0215c6cd _ZN19QItemSelectionModel6selectERK14QItemSelection6QFlagsINS_13SelectionFlagEE (libQt6Core.so.6 + 0x35c6cd) #13 0x00007fec0215992e _ZN19QItemSelectionModel6selectERK11QModelIndex6QFlagsINS_13SelectionFlagEE (libQt6Core.so.6 + 0x35992e) #14 0x00007fec0215a144 _ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE (libQt6Core.so.6 + 0x35a144) #15 0x00007fec0309eff8 n/a (libQt6Widgets.so.6 + 0x29eff8) #16 0x00007fec0309f1bf n/a (libQt6Widgets.so.6 + 0x29f1bf) #17 0x00007fec0309f295 n/a (libQt6Widgets.so.6 + 0x29f295) #18 0x00007fec01fb9ec9 n/a (libQt6Core.so.6 + 0x1b9ec9) #19 0x00007fec02148d97 _ZN18QAbstractItemModel13endResetModelEv (libQt6Core.so.6 + 0x348d97) #20 0x00007fec02178006 n/a (libQt6Core.so.6 + 0x378006) #21 0x00007fec01fb9ec9 n/a (libQt6Core.so.6 + 0x1b9ec9) #22 0x00007fec02148d97 _ZN18QAbstractItemModel13endResetModelEv (libQt6Core.so.6 + 0x348d97) #23 0x00007fec01fb9ec9 n/a (libQt6Core.so.6 + 0x1b9ec9) #24 0x00007fec01fc1f84 _ZN6QTimer10timerEventEP11QTimerEvent (libQt6Core.so.6 + 0x1c1f84) #25 0x00007fec01fa53b6 _ZN7QObject5eventEP6QEvent (libQt6Core.so.6 + 0x1a53b6) #26 0x00007fec02f7319b _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0x17319b) #27 0x00007fec01f62a78 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x162a78) #28 0x00007fec020c8236 _ZN14QTimerInfoList14activateTimersEv (libQt6Core.so.6 + 0x2c8236) #29 0x00007fec0219e954 n/a (libQt6Core.so.6 + 0x39e954) #30 0x00007fec00d0df69 n/a (libglib-2.0.so.0 + 0x59f69) #31 0x00007fec00d6c367 n/a (libglib-2.0.so.0 + 0xb8367) #32 0x00007fec00d0c162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162) #33 0x00007fec0219d074 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x39d074) #34 0x00007fec01f6cf5e _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x16cf5e) #35 0x00007fec01f65518 _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x165518) #36 0x000055ed8b71792a n/a (qtcreator + 0xc92a) #37 0x00007fec01845cd0 n/a (libc.so.6 + 0x27cd0) #38 0x00007fec01845d8a __libc_start_main (libc.so.6 + 0x27d8a) #39 0x000055ed8b718475 n/a (qtcreator + 0xd475) Stack trace of thread 6669: #0 0x00007fec018a74ae n/a (libc.so.6 + 0x894ae) ...skipping... Stack trace of thread 6686: #0 0x00007fec018a74ae n/a (libc.so.6 + 0x894ae) #1 0x00007fec018aa055 pthread_cond_timedwait (libc.so.6 + 0x8c055) #2 0x00007fec020ccf94 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ccf94) #3 0x00007fec020cfaba n/a (libQt6Core.so.6 + 0x2cfaba) #4 0x00007fec020c9e63 n/a (libQt6Core.so.6 + 0x2c9e63) #5 0x00007fec018aa9eb n/a (libc.so.6 + 0x8c9eb) #6 0x00007fec0192e7cc n/a (libc.so.6 + 0x1107cc) Stack trace of thread 6715: #0 0x00007fec018a74ae n/a (libc.so.6 + 0x894ae) #1 0x00007fec018aa055 pthread_cond_timedwait (libc.so.6 + 0x8c055) #2 0x00007fec020ccf94 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ccf94) #3 0x00007fec020cfaba n/a (libQt6Core.so.6 + 0x2cfaba) #4 0x00007fec020c9e63 n/a (libQt6Core.so.6 + 0x2c9e63) #5 0x00007fec018aa9eb n/a (libc.so.6 + 0x8c9eb) #6 0x00007fec0192e7cc n/a (libc.so.6 + 0x1107cc) Stack trace of thread 6709: #0 0x00007fec018a74ae n/a (libc.so.6 + 0x894ae) #1 0x00007fec018aa055 pthread_cond_timedwait (libc.so.6 + 0x8c055) #2 0x00007fec020ccf94 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ccf94) #3 0x00007fec020cfaba n/a (libQt6Core.so.6 + 0x2cfaba) #4 0x00007fec020c9e63 n/a (libQt6Core.so.6 + 0x2c9e63) #5 0x00007fec018aa9eb n/a (libc.so.6 + 0x8c9eb) #6 0x00007fec0192e7cc n/a (libc.so.6 + 0x1107cc) Stack trace of thread 6682: #0 0x00007fec018a74ae n/a (libc.so.6 + 0x894ae) #1 0x00007fec018aa055 pthread_cond_timedwait (libc.so.6 + 0x8c055) #2 0x00007fec020ccf94 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ccf94) #3 0x00007fec020cfaba n/a (libQt6Core.so.6 + 0x2cfaba) #4 0x00007fec020c9e63 n/a (libQt6Core.so.6 + 0x2c9e63) #5 0x00007fec018aa9eb n/a (libc.so.6 + 0x8c9eb) #6 0x00007fec0192e7cc n/a (libc.so.6 + 0x1107cc) Stack trace of thread 6702: #0 0x00007fec018a74ae n/a (libc.so.6 + 0x894ae) #1 0x00007fec018aa055 pthread_cond_timedwait (libc.so.6 + 0x8c055) #2 0x00007fec020ccf94 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ccf94) #3 0x00007fec020cfaba n/a (libQt6Core.so.6 + 0x2cfaba) #4 0x00007fec020c9e63 n/a (libQt6Core.so.6 + 0x2c9e63) #5 0x00007fec018aa9eb n/a (libc.so.6 + 0x8c9eb) #6 0x00007fec0192e7cc n/a (libc.so.6 + 0x1107cc) Stack trace of thread 6724: #0 0x00007fec018a74ae n/a (libc.so.6 + 0x894ae) #1 0x00007fec018aa055 pthread_cond_timedwait (libc.so.6 + 0x8c055) #2 0x00007fec020ccf94 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ccf94) #3 0x00007fec020cfaba n/a (libQt6Core.so.6 + 0x2cfaba) #4 0x00007fec020c9e63 n/a (libQt6Core.so.6 + 0x2c9e63) #5 0x00007fec018aa9eb n/a (libc.so.6 + 0x8c9eb) #6 0x00007fec0192e7cc n/a (libc.so.6 + 0x1107cc) Stack trace of thread 6693: #0 0x00007fec018a74ae n/a (libc.so.6 + 0x894ae) #1 0x00007fec018aa055 pthread_cond_timedwait (libc.so.6 + 0x8c055) #2 0x00007fec020ccf94 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ccf94) #3 0x00007fec020cfaba n/a (libQt6Core.so.6 + 0x2cfaba) #4 0x00007fec020c9e63 n/a (libQt6Core.so.6 + 0x2c9e63) #5 0x00007fec018aa9eb n/a (libc.so.6 + 0x8c9eb) #6 0x00007fec0192e7cc n/a (libc.so.6 + 0x1107cc) ELF object binary architecture: AMD x86-64
Maybe someone can help me here? I can provide more debugging information, if needed.
Thanks in advanceMatse
-
-
A small update: Today I tested the version downloaded from theqt website and this version does not segfault. So there seems to be a problem with the version shipped with my distribution (arch linux), even if I compile this from scratch.
-
-
@matse, I can confirm there seems to be a major bug in Qt Creator 12.0.1.
I was going crazy checking my code to find out why Qt Creator kept crashing every time I edited anything in Design mode. When launching the application through Windows CMD, I encountered the issue "segmentation fault" thrown at the crash, indicating that something in Qt Creator's code is seriously misbehaving as it's trying to write on wrong memory entries.
Personally, the issue appeared only when modifying things or saving the file in Design mode; I could edit anything in Edit mode just fine, but Design... Mno-uh. I tried on both Windows x64 and KDE Neon, and Qt Creator kept crashing on both OS. I also tried it on a different PC, but it kept crashing there too, so it seems like the overall 12.0.1 build distributed with the installer is problematic. I'm using open source, just for clarification purposes, as I don't know if the installer or build distribution for the paid version of Qt is the same.
I downgraded to Qt Creator 11.0.3, and everything is running fine now. Hope this helps.
-
This post is deleted!