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

    • 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
    • Linux/X11
    • 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

        Activity

          People

            con Eike Ziller
            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