Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-90894

Crash in QTextDocument::setHtml

    XMLWordPrintable

Details

    Description

      Qt 6.0 crashes randomly on QTextDocument::setHtml. The crashes seem random and occur every few calls, but there doesn't seem to be any predictable pattern. Two backtraces:

       

      libsystem_kernel.dylib         0x00007fff20303462 __pthread_kill + 100   
      libsystem_kernel.dylib         0x00007fff20303462 __pthread_kill + 101   
      libsystem_pthread.dylib        0x00007fff20331610 pthread_kill + 2632   
      libsystem_c.dylib              0x00007fff20284720 abort + 1203   
      libsystem_malloc.dylib         0x00007fff20165430 malloc_vreport + 5484   
      libsystem_malloc.dylib         0x00007fff20179702 malloc_zone_error + 1835   
      libsystem_malloc.dylib         0x00007fff2015d182 tiny_free_list_add_ptr + 12246   
      libsystem_malloc.dylib         0x00007fff2015c7aa tiny_free_no_lock + 11167   
      libsystem_malloc.dylib         0x00007fff2015c1f9 free_tiny + 4428   
      org.qt-project.QtGui           0x0000000109c8ac26 0x10999e000 + 30669189   
      org.qt-project.QtGui           0x0000000109c875c9 QTextFormatCollection::clear() + 2510  
      org.qt-project.QtGui           0x0000000109c40353 QTextDocumentPrivate::clear() + 121911  
      org.qt-project.QtGui           0x0000000109c344f0 QTextDocument::setHtml(QString const&) + 80 

      And the second:

      libsystem_kernel.dylib         0x00007fff20303462 __pthread_kill + 100   
      libsystem_kernel.dylib         0x00007fff20303462 __pthread_kill + 101   
      libsystem_pthread.dylib        0x00007fff20331610 pthread_kill + 2632   
      libsystem_c.dylib              0x00007fff20284720 abort + 1203   
      libsystem_malloc.dylib         0x00007fff20165430 malloc_vreport + 5484   
      libsystem_malloc.dylib         0x00007fff20179702 malloc_zone_error + 1835   
      libsystem_malloc.dylib         0x00007fff2015a502 tiny_malloc_from_free_list + 18056   
      libsystem_malloc.dylib         0x00007fff20159876 tiny_malloc_should_clear + 2337   
      libsystem_malloc.dylib         0x00007fff20158793 szone_malloc_should_clear + 668   
      libsystem_malloc.dylib         0x00007fff20171dfe _malloc_zone_malloc + 1189  
      libc++abi.dylib                0x00007fff202f7daa operator new(unsigned long) + 2610  
      org.qt-project.QtGui           0x0000000101bf9b37 0x10190b000 + 307487111  
      org.qt-project.QtGui           0x0000000101bfa562 0x10190b000 + 307747412  
      org.qt-project.QtGui           0x0000000101bf9e8b 0x10190b000 + 307572313  
      org.qt-project.QtGui           0x0000000101bf9e2e 0x10190b000 + 307563014  
      org.qt-project.QtGui           0x0000000101bb8147 0x10190b000 + 280608715  
      org.qt-project.QtGui           0x0000000101ba150d QTextDocument::setHtml(QString const&) + 10916  
      org.qt-project.QtWidgets       0x000000010155ca29 0x10132a000 + 230455317  
      org.qt-project.QtWidgets       0x000000010153b556 QTextEdit::setHtml(QString const&) + 22

       

      There were not any crashes for Qt 5.x.

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            badbishop Michal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: