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

QPdfPrintEngine crashes on Mac - Pointer being freed was not allocated

    XMLWordPrintable

Details

    • macOS

    Description

      Both tests/auto/printsupport/kernel/qprinter/tst_qprinter.app and examples/richtext/textedit/textedit.app crash when attempting to use QPrinter with output format set to QPrinter::PdfFormat. The crash happens in the destructor of QPdfPrintEngine. This does not crash on Linux, Windows is untested.

      This is probably a Beta 1 blocker as it blocks the auto tests from completing.

      Here is the backtrace for textedit.app:

      Process: textedit [19317]
      Path: /Users/USER/*/textedit.app/Contents/MacOS/textedit
      Identifier: com.yourcompany.textedit
      Version: ??? (???)
      Code Type: X86-64 (Native)
      Parent Process: bash [277]

      Date/Time: 2012-05-01 17:40:56.523 +0100
      OS Version: Mac OS X 10.7.3 (11D50)
      Report Version: 9

      Interval Since Last Report: 2208909 sec
      Crashes Since Last Report: 58
      Per-App Interval Since Last Report: 88 sec
      Per-App Crashes Since Last Report: 3
      Anonymous UUID: F45F0A80-2EB3-42ED-881A-9483C3F61143

      Crashed Thread: 0 Dispatch queue: com.apple.main-thread

      Exception Type: EXC_CRASH (SIGABRT)
      Exception Codes: 0x0000000000000000, 0x0000000000000000

      Application Specific Information:
      objc[19317]: garbage collection is OFF

          • error for object 0x100f0daa0: pointer being freed was not allocated

      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0 libsystem_kernel.dylib 0x00007fff8a8ccce2 __pthread_kill + 10
      1 libsystem_c.dylib 0x00007fff8d3997d2 pthread_kill + 95
      2 libsystem_c.dylib 0x00007fff8d38aa7a abort + 143
      3 libsystem_c.dylib 0x00007fff8d3e984c free + 389
      4 QtPrintSupport 0x0000000100045264 QPdfPrintEnginePrivate::~QPdfPrintEnginePrivate() + 212
      5 QtPrintSupport 0x0000000100045152 QPdfPrintEnginePrivate::~QPdfPrintEnginePrivate() + 18
      6 QtGui 0x00000001009b72f2 QPaintEngine::~QPaintEngine() + 34
      7 QtPrintSupport 0x0000000100043a66 non-virtual thunk to QPdfPrintEngine::~QPdfPrintEngine() + 22
      8 QtPrintSupport 0x000000010004676a QPrinter::~QPrinter() + 58
      9 com.yourcompany.textedit 0x000000010000bd03 TextEdit::filePrintPdf() + 627 (textedit.cpp:544)

      The same backtrace is also returned by tst_qprinter.app

      Attachments

        Issue Links

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

          Activity

            People

              johnlayt John Layt
              johnlayt John Layt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes