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

Crashes when create new printer object on OS X

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 5.3.0 Beta1
    • Fix Version/s: 5.3.0 RC1
    • Component/s: GUI: Printing
    • Labels:
      None
    • Environment:
      QT 5.3.0 Beta 1
      OS X 10.9.2
      MacBoox Pro (late 2013) 2,6 GHz - Intel Core i7 - 16 Gt

      Description

      Creating a new QPrinter object crashes when running deployable application bundle on OS X. It works when application is run from Qt Creator.

      QPrinter printer(QPrinter::ScreenResolution);
      

      The problem occurred on Qt 5.3 Beta 1 but works ok on Qt 5.2.1.

      1. Open example project (print_test)
      2. Build project in Release -mode
      3. Run macdeployqt for bundle (macdeployqt print_test.app)
      4. Try to execute bundle (print_test.app)

      Result:

      Crashed Thread:  0  Dispatch queue: com.apple.main-thread
      
      Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes: EXC_I386_GPFLT
      
      Application Specific Information:
      objc_msgSend() selector name: release
      
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   libobjc.A.dylib               	0x00007fff8c93b097 objc_msgSend + 23
      1   com.apple.CoreFoundation      	0x00007fff8fc5267f CFRelease + 591
      2   com.apple.CoreFoundation      	0x00007fff8fc616c8 __CFBasicHashDrain + 408
      3   com.apple.CoreFoundation      	0x00007fff8fc525d8 CFRelease + 424
      4   com.apple.CoreFoundation      	0x00007fff8fc616c8 __CFBasicHashDrain + 408
      5   com.apple.CoreFoundation      	0x00007fff8fc525d8 CFRelease + 424
      6   com.apple.print.framework.PrintCore	0x00007fff8f27cebe PMTicketReleaseAndClear + 33
      7   com.apple.print.framework.PrintCore	0x00007fff8f27a6a2 PMTicketBaseObject::~PMTicketBaseObject() + 36
      8   com.apple.print.framework.PrintCore	0x00007fff8f27a615 OpaquePMPageFormat::~OpaquePMPageFormat() + 15
      9   com.apple.print.framework.PrintCore	0x00007fff8f27d727 PMBaseObject::Release(PMBaseObject*) + 27
      10  com.apple.print.framework.PrintCore	0x00007fff8f27d6f1 PMRelease + 43
      11  libqcocoa.dylib               	0x0000000103b55316 QCocoaPrintDevice::defaultPageSize() const + 118
      12  libqcocoa.dylib               	0x0000000103b4d77b QMacPrintEngine::QMacPrintEngine(QPrinter::PrinterMode) + 395
      13  libqcocoa.dylib               	0x0000000103b53862 QCocoaPrinterSupport::createNativePrintEngine(QPrinter::PrinterMode) + 34
      14  QtPrintSupport                	0x0000000100013c5c QPrinterPrivate::initEngines(QPrinter::OutputFormat, QPrinterInfo const&) + 396
      15  QtPrintSupport                	0x000000010001428f QPrinter::QPrinter(QPrinter::PrinterMode) + 159
      16  mpsoft.fiprint_test           	0x0000000100002abf main + 47
      17  mpsoft.fiprint_test           	0x0000000100002a84 start + 52
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              johnlayt John Layt
              Reporter:
              jimcad J Matilainen
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes