Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-4810

Crash in Annotations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • QDS 2.2.0
    • QDS 2.2 Beta1, QDS 2.1
    • Annotations System
    • None

    Description

      If user opens file, that is not part of any project (100% reproduction if there are no opened projects in the application as well), and attempts to open any Annotation editor instant crash occurs.

      Most probable reason is the code in AnnotationCommentTab constructor ProjectExplorer::SessionManager::startupProject()->projectFilePath(), that tries to call method from nullptr startupProject.
      Caused by QDS-3306 implementation: https://codereview.qt-project.org/c/qt-creator/qt-creator/+/327249

      Probably makes sense to check if there is an active project and if there is none, replace project path by the current file path. Or to deactivate add image function for files without projects

      Attachments

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

        Activity

          People

            algerman Aleksei German
            algerman Aleksei German
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes