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

Crash in QtCreator on creating new source file in some project subfolder

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.7.0, Qt Creator 4.8.0-beta1
    • Labels:
      None
    • Environment:
      Gentoo Linux with system Qt-5.11.1, KDE/Plasma X11 environment
      Qt Creator 4.8.0 beta1, installed via online installer
    • Platform/s:
      Linux/X11
    • Commits:
      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

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

          Activity

            People

            • Assignee:
              con Eike Ziller
              Reporter:
              wiselord Uladzimir Bely
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes