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

Crash on macOS when changing font

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 7.0.0
    • Qt Creator 6.0.2
    • Editors
    • None
    • macOS
    • 519804a0d2 (qt-creator/qt-creator/7.0) 519804a0d2 (qt-creator/qt-creator/master) 519804a0d2 (qt-creator/qt-creator/qds-3.3)

    Description

      I just tried to change the font from Menlo to JetBrains Mono, but it caused Qt Creator to crash. I could avoid this crash, by first closing all documents.

      Here's the likely most useful bit of the crash report, the full version is attached:

      Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
      Terminating Process:   exc handler [41181]
      
      VM Region Info: 0x17f0 is not in any region.  Bytes before following region: 4387956752
            REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
            UNUSED SPACE AT START
      --->  
            __TEXT                      1058b0000-1058c8000    [   96K] r-x/r-x SM=COW  ...OS/Qt Creator
      
      Thread 0::  Dispatch queue: com.apple.main-thread
      0   libsystem_malloc.dylib        	    0x7ff80ab405bf set_tiny_meta_header_in_use + 186
      1   libsystem_malloc.dylib        	    0x7ff80ab3ffc8 tiny_malloc_from_free_list + 555
      2   libsystem_malloc.dylib        	    0x7ff80ab3f84e tiny_malloc_should_clear + 272
      3   libsystem_malloc.dylib        	    0x7ff80ab3e7a7 szone_malloc_should_clear + 66
      4   libsystem_malloc.dylib        	    0x7ff80ab40749 nanov2_realloc + 68
      5   libsystem_malloc.dylib        	    0x7ff80ab40671 malloc_zone_realloc + 99
      6   libsystem_malloc.dylib        	    0x7ff80ab3f504 realloc + 266
      7   QtCore                        	       0x108643f2a QArrayData::reallocateUnaligned(QArrayData*, void*, long long, long long, QArrayData::AllocationOption) + 218
      8   QtGui                         	       0x108002018 0x107ce2000 + 3276824
      9   QtGui                         	       0x107ffcec0 0x107ce2000 + 3256000
      10  QtGui                         	       0x107ffe7c4 QTextFormat::setProperty(int, QVariant const&) + 356
      11  libTextEditor.dylib           	       0x10c908608 TextEditor::FontSettings::toTextCharFormat(TextEditor::TextStyle) const + 904
      12  libTextEditor.dylib           	       0x10c953969 0x10c893000 + 788841
      13  libTextEditor.dylib           	       0x10c953fa5 TextEditor::SyntaxHighlighter::setTextFormatCategories(QList<std::__1::pair<int, TextEditor::TextStyle> > const&) + 533
      14  libTextEditor.dylib           	       0x10c953c52 TextEditor::SyntaxHighlighter::setTextFormatCategories(int, std::__1::function<TextEditor::TextStyle (int)>) + 146
      15  libTextEditor.dylib           	       0x10c953b59 TextEditor::SyntaxHighlighter::setDefaultTextFormatCategories() + 57
      16  libCppEditor.dylib            	       0x10df7fbdc CppEditor::CppHighlighter::CppHighlighter(QTextDocument*) + 44
      17  libCppEditor.dylib            	       0x10e065dec 0x10de5c000 + 2137580
      18  libTextEditor.dylib           	       0x10c93f879 TextEditor::SnippetProvider::decorateEditor(TextEditor::TextEditorWidget*, QString const&) + 137
      19  libTextEditor.dylib           	       0x10c94e168 0x10c893000 + 766312
      20  QtCore                        	       0x10857fa43 0x108493000 + 969283
      21  libTextEditor.dylib           	       0x10c8a1924 TextEditor::TextEditorSettings::fontSettingsChanged(TextEditor::FontSettings const&) + 52
      

      Unfortunately, while previously this crash was happening consistently, I don't seem to be able to reproduce this now, after re-opening the JS file I was editing and some additional C++ files. It might have been caused with a different file, but that list is gone now.

      Attachments

        Activity

          People

            davschul David Schulz
            bjorn Thorbjørn Lindeijer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: