Hi there,
I have a wierd crash going on, on my mac.
The stack trace is below. The piece of code that fails is triggered when the
application loads a file, and tries to set up the geometry of the views.
However the sequence of events is:
1. Launch application.
2. Launch my own plugin - which contains a QmitkStdMultiWidget subclass and a
few other things.
3. Close my own plugin
4. Load a .img file.
When the image has loaded the trace below happens. So, it looks like something
I am doing is "corrupting" either the geometry that is calculated from the
bounding box of all items in the data store, or the registered views that are
initialized by the rendering manager.
But I can't think of anything that I have done that would cause this.... and
the problem appears to be when setting the geometry in the operator = bit.????
It must be my fault, as it is only caused after I launch and close my own
plugin, but I cant think of what I must have done to break the piece of code
shown below.
Has anyone seen anything like this?
Thanks
Matt
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libMitk.dylib 0x0000000100fac191
itk::SmartPointer<mitk::Geometry3D const>::operator=(mitk::Geometry3D const*) +
87 (itkSmartPointer.h:123)
1 libMitk.dylib 0x0000000100fe28c8
mitk::SliceNavigationController::SetInputWorldGeometry(mitk::Geometry3D const*)
+ 518 (mitkSliceNavigationController.cpp:110)
2 libMitk.dylib 0x0000000100fcfff8
mitk::RenderingManager::InitializeViews(mitk::Geometry3D const*,
mitk::RenderingManager::RequestType, bool) + 3054 (mitkRenderingManager.cpp:549)
3 liborg_mitk_gui_common.dylib 0x0000000125c1ac77
mitk::RenderingManagerInterface::InitializeViews(mitk::Geometry3D const*,
mitk::RenderingManager::RequestType, bool) + 77 (mitkIRenderingManager.cpp:63)
4 liborg_mitk_gui_common.dylib 0x0000000125c1f5e5
mitk::WorkbenchUtil::LoadFiles(QStringList const&,
berry::SmartPointer<berry::IWorkbenchWindow>) + 2329 (mitkWorkbenchUtil.cpp:159)
5 ...tk_gui_qt_application.dylib 0x000000012d71fd66
QmitkFileOpenAction::Run() + 530 (QmitkFileOpenAction.cpp:119)
6 ...tk_gui_qt_application.dylib 0x000000012d749a2f
QmitkFileOpenAction::qt_metacall(QMetaObject::Call, int, void**) + 109
(moc_QmitkFileOpenAction.cxx:75)
7 QtCore 0x000000010ca2ff36
QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 710
8 QtGui 0x000000010bd79821 QAction::triggered(bool) +
49
9 QtGui 0x000000010bd7abb4
QAction::activate(QAction::ActionEvent) + 180
10 QtGui 0x000000010bd3068a -[QCocoaMenuLoader
qtDispatcherToQAction:] + 106
11 com.apple.AppKit 0x00007fff87b94eda -[NSApplication
sendAction:to:from:] + 95
12 com.apple.AppKit 0x00007fff87bb946a -[NSMenuItem
_corePerformAction] + 365
13 com.apple.AppKit 0x00007fff87bb91d4 -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:] + 121
14 com.apple.AppKit 0x00007fff87e3ecf4 -[NSMenu
_internalPerformActionForItemAtIndex:] + 35
15 com.apple.AppKit 0x00007fff87cf09e9 -[NSCarbonMenuImpl
_carbonCommandProcessEvent:handlerCallRef:] + 136
16 com.apple.AppKit 0x00007fff87b9b99c NSSLMMenuEventHandler +
321
17 com.apple.HIToolbox 0x00007fff887c67f7
DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) +
1002
18 com.apple.HIToolbox 0x00007fff887c5d46
SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*,
HandlerCallRec*) + 395
19 com.apple.HIToolbox 0x00007fff887e3a81 SendEventToEventTarget + 45
20 com.apple.HIToolbox 0x00007fff88812c35
SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int,
unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*,
OpaqueEventRef**) + 387
21 com.apple.HIToolbox 0x00007fff8883fa0a
SendMenuCommandWithContextAndModifiers + 56
22 com.apple.HIToolbox 0x00007fff8883f9c2 SendMenuItemSelectedEvent
+ 101
23 com.apple.HIToolbox 0x00007fff8883f8d2
FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 150
24 com.apple.HIToolbox 0x00007fff88820c27 MenuSelectCore(MenuData*,
Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 467
25 com.apple.HIToolbox 0x00007fff8882037c _HandleMenuSelection2 + 453
26 com.apple.AppKit 0x00007fff87a6c851 _NSHandleCarbonMenuEvent
+ 236
27 com.apple.AppKit 0x00007fff87a40362 _DPSNextEvent + 1908
28 com.apple.AppKit 0x00007fff87a3f801 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
29 com.apple.AppKit 0x00007fff87a0568f -[NSApplication run] + 395
30 QtGui 0x000000010bd3aee4
QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1588
31 QtCore 0x000000010cb159d4
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
32 QtCore 0x000000010cb15cf4
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 180
33 QtCore 0x000000010cb1731c QCoreApplication::exec()
+ 188
34 liborg_blueberry_ui_qt.dylib 0x000000012adebcc3
berry::QtDisplay::RunEventLoop() + 17 (berryQtDisplay.cpp:46)
35 liborg_blueberry_ui.dylib 0x000000012b159f5b berry::Workbench::RunUI()
+ 321 (berryWorkbench.cpp:763)
36 liborg_blueberry_ui.dylib 0x000000012b15a784
berry::Workbench::CreateAndRunWorkbench(berry::Display*,
berry::WorkbenchAdvisor*) + 80 (berryWorkbench.cpp:190)
37 liborg_blueberry_ui.dylib 0x000000012aff0b55
berry::PlatformUI::CreateAndRunWorkbench(berry::Display*,
berry::WorkbenchAdvisor*) + 29 (berryPlatformUI.cpp:60)
38 ...cmic_gui_qt_niftyview.dylib 0x000000012dd279a2
QmitkNiftyViewApplication::Start() + 58 (QmitkNiftyViewApplication.cpp:46)
39 liborg_blueberry_osgi.dylib 0x000000010006aaae berry::Starter::Run(int&,
char**, Poco::Util::AbstractConfiguration*) + 5868 (berryStarter.cpp:167)
4
------------------------------------------------------
Matt Clarkson Ph.D.
CMIC Software Manager
Senior Research Associate
m.clark...@ucl.ac.uk<mailto:m.clark...@ucl.ac.uk>
Skype: drmattclarkson
Centre For Medical Image Computing
http://cmic.cs.ucl.ac.uk/staff/matt_clarkson/<http://cmic.cs.ucl.ac.uk/>
Tel: 020 7679 0177
Fax: 020 7679 0255
Dementia Research Centre
http://dementia.ion.ucl.ac.uk/
Tel: 08451 555 000 ext. 723653
Fax: 020 7676 2066
------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users