Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt Creator 4.7.0, Qt Creator 4.8.0-beta1
-
None
-
Gentoo Linux with system Qt-5.11.1, KDE/Plasma X11 environment
Qt Creator 4.8.0 beta1, installed via online installer
-
-
5bc38589d8049d10d5c8401c27e576c5029aeacf (qt-creator/qt-creator/4.7)
Description
Log:
SOFT ASSERT: "item" in file /work/build/qt-creator/src/libs/utils/treemodel.cpp, line 1125
SOFT ASSERT: "item" in file /work/build/qt-creator/src/libs/utils/treemodel.cpp, line 1125
Segmentation fault
Crash usually happens on attempt to create new source file (.c or .h) in some project subfolder. The project should be some 'imported' project.
Crash doesn't happen when file is created in the root directory of the project, but almost always happens when file is created in some subfolder.
Also crash doesn't happen in other project types (qbs, qmake, etc).
Bug also was reproducable on stable 4.7.0 version
Steps to reproduce:
- Import some C/C++ project (New project - Import project - Import existing project)
- Create new file (.c or .h) in some project subfolder
Expected results:
- File is created
Actual results:
- File is created, but qtcreator is crashed.
Screencast with bug recorderd:
https://www.youtube.com/watch?v=bUsyf2ABDiU
Attachments
For Gerrit Dashboard: QTCREATORBUG-21342 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
243084,2 | Fix crash when adding file to sub folder in generic project | 4.7 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
243085,2 | Fix soft assert when adding file to subfolder in generic project | 4.7 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |