PDA

View Full Version : Intermittent crashes printing from Mac OS X using Qt 4.8.1



AndyBrice
23rd July 2012, 10:14
I am getting some crashes printing or exporting PDFs from the Mac version of my product. The users tell me the crashes are intermittent (i.e. will crash sometimes, but not others). No problems with the Windows version.

The crash stack traces look like this:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x0000025b00000001 0 + 2589865279489
1 com.apple.print.framework.PrintCore 0x00007fff8c2aadb4 OpaquePMPageFormat::PJCValidPageFormatKey(OpaquePM PageFormat*) + 34
2 com.apple.print.framework.PrintCore 0x00007fff8c2bd9ae PMGetAdjustedPageRect + 21
3 QtGui 0x0000000100d9697c QDesktopWidget::resizeEvent(QResizeEvent*) + 33644
4 PerfectTablePlan 0x00000001002ee0e2 Ui_TPExportPDFDlg::setupUi(QDialog*) + 5442


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 000000000000000000 0 + 0
1 com.apple.print.framework.PrintCore 0x00007fff8e4aadb4 OpaquePMPageFormat::PJCValidPageFormatKey(OpaquePM PageFormat*) + 34
2 com.apple.print.framework.PrintCore 0x00007fff8e4ad24b PMGetUnadjustedPaperRect + 21
3 QtGui 0x0000000100d96e12 QDesktopWidget::resizeEvent(QResizeEvent*) + 34818
4 QtGui 0x0000000100d98398 QDesktopWidget::resizeEvent(QResizeEvent*) + 40328
5 QtGui 0x0000000100f596da QPrinter::paperSize() const + 42
6 PerfectTablePlan 0x00000001001e70c8 QList<QFileInfo>::operator+=(QList<QFileInfo> const


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x0000000101f83d80 0 + 4328013184
1 com.apple.print.framework.PrintCore 0x00007fff8ea2024b PMGetUnadjustedPaperRect + 21
2 QtGui 0x0000000100d96e12 QDesktopWidget::resizeEvent(QResizeEvent*) + 34818
3 QtGui 0x0000000100d98398 QDesktopWidget::resizeEvent(QResizeEvent*) + 40328
4 QtGui 0x0000000100f596da QPrinter::paperSize() const + 42
5 PerfectTablePlan 0x000000010026ad26 Ui_TPStationeryViewFilter::setupUi(QWidget*) + 17686

They all seem to involve a call to PMGetAdjustedPageRect. I'm not sure if it is related to this bug:
https://bugreports.qt-project.org/browse/QTBUG-21576

Is anyone else seeing something similar? Any idea of what the problem might be?

best regards

Andy Brice

markjan1
13th August 2012, 20:44
I'm trying to use Qt 4.8.1 on Windows 7 with Illustrator CS 5. When I quit Illustrator, the application crashes. If I remove the instanciation of the QApplication, Illustrator closes properly.



Is it possible to share some small example which runs on Windows and MacOS X ?