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

Divide by Zero in TextEditor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 14.0.2
    • Qt Creator 14.0.1
    • Editors
    • None
    • Windows
    • 88edec1bf (14.0)

    Description

      I can't load the project anymore. Took dumps (attached) and they indicate crash here with Integer Divide by Zero:

      TextEditor.dll!TextEditor::Internal::TextEditorWidgetPrivate::updateLineAnnotation(const TextEditor::Internal::PaintEventData & data, const TextEditor::Internal::PaintEventBlockData & blockData, QPainter & painter) Line 5163
          at C:\Users\qt\work\build\qt-creator\src\plugins\texteditor\texteditor.cpp(5163)

      Disabling clangd did not help, not wiping the build directory.

      Creating a new session and loading that worked.

       

      Seems I have accidentally zoomed out to 10% or less zoom as my wheel was scrolling. 

      Attachments

        1. AppData-Roaming-QtProject.7z
          6.55 MB
          Marcus Sonestedt
        2. qtcreator.exe_240923_104022.dmp
          16.40 MB
          Marcus Sonestedt
        3. qtcreator.exe_240923_104044.7z
          7.07 MB
          Marcus Sonestedt

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-31623
          # Subject Branch Project Status CR V

          Activity

            People

              davschul David Schulz
              mackeyar Marcus Sonestedt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes