Ticket #6471 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Crash On Print

Reported by: Owen Arnold Owned by: Martyn Gigg
Priority: critical Milestone: Release 2.6
Component: Framework Keywords:
Cc: martyn.gigg@… Blocked By:
Blocking: Tester: Russell Taylor

Description

Found this issue as part of testing for release #6400. This only affects the new mountain lion package. It doesn't happen on any other platform that I've tested, and it also doesn't happen if I install the older snow leopard package on the same hardware. The crash on printing does not affect all types of plot. 1D plots seem fine.

  • Load a Matrix Workspace
  • Bring up a Color Fill Plot
  • Go to File -> Print
  • Print -> Mantid Crashes.

As we are not officially supporting the 10.4 yet, I've pushed this issue to the next release.

Change History

comment:1 Changed 8 years ago by Owen Arnold

Here's the stack trace.

(gdb) where #0 0x00007fff92a82212 in pthread_kill () #1 0x00007fff89f9baf4 in pthread_kill () #2 0x00007fff89fdfdce in abort () #3 0x00007fff89fb3959 in free () #4 0x00000001045c9378 in qt_mac_cgimage_data_free () #5 0x00007fff9490dea2 in dataReleaseInfo () #6 0x00007fff9490de4d in data_provider_finalize () #7 0x00007fff8e5e99af in CFRelease () #8 0x00007fff94950653 in image_finalize () #9 0x00007fff8e5e99af in CFRelease () #10 0x00000001279bfec6 in PDFImageEmitDefinition () #11 0x00007fff8e6dde52 in CFSetApplyFunction_block_invoke_0 () #12 0x00007fff8e5f2d80 in CFBasicHashApply () #13 0x00007fff8e5f2cee in CFSetApplyFunction () #14 0x00000001279c07e5 in PDFImageSetEmitDefinitions () #15 0x00000001279b9cdb in emit_page_resources () #16 0x00000001279b9c61 in PDFDocumentEndPage () #17 0x00000001279b87f7 in pdf_EndPage () #18 0x00007fff8d105b8b in pdfSpoolingEndPage () #19 0x00007fff8d0fce9f in PJCEndPage () #20 0x00007fff8d0dace1 in PMSessionEndPageNoDialog () #21 0x00000001044c52c8 in QMacPrintEnginePrivate::releaseSession () #22 0x00000001044c5c58 in QMacPrintEngine::end () #23 0x0000000104646576 in QPainter::end () #24 0x000000010033dd9c in MultiLayer::print (this=0x1235705e0) at /Users/spu92482/Documents/mantid/mantid/Code/Mantid/MantidPlot/src/MultiLayer.cpp:869 #25 0x0000000100087888 in ApplicationWindow::print (this=0x10b845a00) at /Users/spu92482/Documents/mantid/mantid/Code/Mantid/MantidPlot/src/ApplicationWindow.cpp:7604 #26 0x000000010067ee3c in ApplicationWindow::qt_static_metacall (_o=0x10b845a00, _c=QMetaObject::InvokeMetaMethod, _id=227, _a=0x7fff5fbfd990) at /Users/spu92482/Documents/mantidbuild/MantidPlot/src/moc_ApplicationWindow.cxx:1535 #27 0x00000001055051ee in QMetaObject::activate () #28 0x0000000104501390 in QAction::activated () #29 0x00000001045027db in QAction::activate () #30 0x00000001044b507a in -[QCocoaMenuLoader qtDispatcherToQAction:] () #31 0x00007fff8c646a59 in -[NSApplication sendAction:to:from:] () #32 0x00007fff8c77c44c in -[NSMenuItem _corePerformAction] () #33 0x00007fff8c77c13a in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] () #34 0x00007fff8c46946f in -[NSMenu _internalPerformActionForItemAtIndex:] () #35 0x00007fff8c4692f7 in -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] () #36 0x00007fff8c775245 in NSSLMMenuEventHandler () #37 0x00007fff88a98f0a in DispatchEventToHandlers () #38 0x00007fff88a983d9 in SendEventToEventTargetInternal () #39 0x00007fff88aae1bd in SendEventToEventTarget () #40 0x00007fff88ae4e89 in SendHICommandEvent () #41 0x00007fff88a89c11 in SendMenuCommandWithContextAndModifiers () #42 0x00007fff88a89bc3 in SendMenuItemSelectedEvent () #43 0x00007fff88a89a4f in FinishMenuSelection () #44 0x00007fff88a65aab in MenuSelectCore () #45 0x00007fff88a650b8 in _HandleMenuSelection2 () #46 0x00007fff8c6349c6 in _NSHandleCarbonMenuEvent () #47 0x00007fff8c556b7f in _DPSNextEvent () #48 0x00007fff8c555ed2 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () #49 0x00007fff8c54d283 in -[NSApplication run] () #50 0x00000001044c0a80 in QEventDispatcherMac::processEvents () #51 0x00000001054ec114 in QEventLoop::processEvents () #52 0x00000001054ec4c4 in QEventLoop::exec () #53 0x00000001054eebac in QCoreApplication::exec () #54 0x00000001006cf497 in main (argc=1, argv=0x7fff5fbff148) at /Users/spu92482/Documents/mantid/mantid/Code/Mantid/MantidPlot/src/main.cpp:217

comment:2 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.5 to Release 2.6

Moved to r2.6 at the end of r2.5

comment:3 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned
  • Owner set to Owen Arnold

comment:4 Changed 7 years ago by Russell Taylor

I've seen this crash too and find that it goes away when I upgrade to Qt 4.8.5 (it was there with 4.8.4) so presumably the solution is to upgrade the build server that makes the package.

comment:5 Changed 7 years ago by Martyn Gigg

  • Owner changed from Owen Arnold to Martyn Gigg
  • Status changed from assigned to accepted

I'll make a note and upgrade the buildserver next week.

comment:6 Changed 7 years ago by Martyn Gigg

  • Status changed from accepted to verify
  • Resolution set to fixed

I've upgraded the package on the buildserver and following the instructions above with a package from develop doesn't seem to crash on our 10.8 box

comment:7 Changed 7 years ago by Russell Taylor

  • Status changed from verify to verifying
  • Tester set to Russell Taylor

comment:8 Changed 7 years ago by Russell Taylor

  • Status changed from verifying to closed

Tested it on my Mountain Lion machine with packages from the ISIS buildserver and printing now works fine with these.

Looking wider, this minor Qt upgrade should be a low risk change and this will be checked by the pre-release exploratory testing.

comment:9 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7317

Note: See TracTickets for help on using tickets.