[Gate-users] Qt crash on OS X 10.9.2 when visualizing geometry

Jérôme Suhard jerome at suhard.fr
Fri May 9 18:44:47 CEST 2014


Hi,

could you reproduce it with "transforms" example from G4 ? it is a minimal
visualisation example with no physics...
If you have the same problem with it, it is a G4 bug.

Keep me updated.

best regards,


2014-05-09 18:06 GMT+02:00 Marc Chamberland <
MarcChamberland at cmail.carleton.ca>:

> Hi,
>
> This might be more of a Geant4 problem than strictly a Gate one, but if
> someone can help, I'd appreciate it.
>
> Some time ago, I reported a crash, but it wasn't reproduceable by the Gate
> team (
> http://article.gmane.org/gmane.comp.science.opengate.user/3770/match=qt+crash).
> After re-installing everything on my system, I could not reproduce it
> either. Instead, I experience a different crash now.
>
> This crash happens when I launch Gate with the --qt option and then run
> the following minimum macro:
>
> /vis/open OGLSQt
> /vis/drawVolume
> /vis/scene/add/axes
>
> I'm using Geant4.9.6.p03 and Qt 4.8.6 installed with Macports on OS X
> 10.9.2.
>
> The backtrace is included below.
>
>
> Marc
>
>
>
> __________________________
>
> Marc Chamberland, MSc
> PhD candidate
> Department of Physics
> Carleton University
> Ottawa (ON)
>
>
>
> [~/opengate-install/bin] Marc$ lldb ./Gate
> Current executable set to './Gate' (x86_64).
> (lldb) r --qt
> Process 84195 launched: './Gate' (x86_64)
> [G4]
> [G4] *************************************************************
> [G4]  Geant4 version Name: geant4-09-06-patch-03    (14-March-2014)
> [G4]                       Copyright : Geant4 Collaboration
> [G4]                       Reference : NIM A 506 (2003), 250-303
> [G4]                             WWW : http://cern.ch/geant4
> [G4] *************************************************************
> [G4]
> [Core-0] Initialization of geometry
> [Core-0] Initialization of physics
> [Core-0] Initialization of actors
> [G4] Available UI session types: [ Qt, GAG, tcsh, csh ]
> [Core-0]
> [Core-0]
> **********************************************************************
> [Core-0]  GATE version name: beta_gate_v7.0
> [Core-0]                     Copyright : OpenGATE Collaboration
> [Core-0]                     Reference : Phys. Med. Biol. 49 (2004)
> 4543-4561
> [Core-0]                     Reference : Phys. Med. Biol. 56 (2011) 881-901
> [Core-0]                     WWW : http://www.opengatecollaboration.org
> [Core-0]
> **********************************************************************
> [Core-0]
> [Core-0] You are using Geant4 version 9.6.3
> Process 84195 stopped
> * thread #1: tid = 0x310a36, 0x0000000100841284
> libG4OpenGL.dylib`G4OpenGLQtViewer::getOldTreeWidgetItem(int) + 54, queue =
> 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1)
>     frame #0: 0x0000000100841284
> libG4OpenGL.dylib`G4OpenGLQtViewer::getOldTreeWidgetItem(int) + 54
> libG4OpenGL.dylib`G4OpenGLQtViewer::getOldTreeWidgetItem(int) + 54:
> -> 0x100841284:  movq   (%rcx), %rdx
>    0x100841287:  testq  %rdx, %rdx
>    0x10084128a:  jne    0x100841281               ;
> G4OpenGLQtViewer::getOldTreeWidgetItem(int) + 51
>    0x10084128c:  jmp    0x10084129a               ;
> G4OpenGLQtViewer::getOldTreeWidgetItem(int) + 76
> (lldb) bt
> * thread #1: tid = 0x310a36, 0x0000000100841284
> libG4OpenGL.dylib`G4OpenGLQtViewer::getOldTreeWidgetItem(int) + 54, queue =
> 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1)
>   * frame #0: 0x0000000100841284
> libG4OpenGL.dylib`G4OpenGLQtViewer::getOldTreeWidgetItem(int) + 54
>     frame #1: 0x0000000100840bb3
> libG4OpenGL.dylib`G4OpenGLQtViewer::changeOpenCloseVisibleHiddenSelectedColorSceneTreeElement(QTreeWidgetItem*)
> + 69
>     frame #2: 0x000000010083f09c
> libG4OpenGL.dylib`G4OpenGLQtViewer::createTreeWidgetItem(std::__1::vector<G4PhysicalVolumeModel::G4PhysicalVolumeNodeID,
> std::__1::allocator<G4PhysicalVolumeModel::G4PhysicalVolumeNodeID> >
> const&, QString const&, int, int, QString const&, Qt::CheckState,
> QTreeWidgetItem*, G4Colour const&) + 1676
>     frame #3: 0x0000000100841e7b
> libG4OpenGL.dylib`G4OpenGLQtViewer::addNonPVSceneTreeElement(G4String
> const&, int, std::__1::basic_string<char, std::__1::char_traits<char>,
> std::__1::allocator<char> > const&, G4Visible const&) + 1027
>     frame #4: 0x0000000100846034
> libG4OpenGL.dylib`G4OpenGLStoredQtSceneHandler::ExtraPOProcessing(G4Visible
> const&, unsigned long) + 490
>     frame #5: 0x0000000100825ca5
> libG4OpenGL.dylib`G4OpenGLStoredSceneHandler::AddPrimitivePreamble(G4Visible
> const&) + 2619
>     frame #6: 0x0000000100826114
> libG4OpenGL.dylib`G4OpenGLStoredSceneHandler::AddPrimitive(G4Polyhedron
> const&) + 22
>     frame #7: 0x000000010096fbaa
> libG4modeling.dylib`G4ArrowModel::DescribeYourselfTo(G4VGraphicsScene&) +
> 168
>     frame #8: 0x000000010097d8f2
> libG4modeling.dylib`G4AxesModel::DescribeYourselfTo(G4VGraphicsScene&) + 34
>     frame #9: 0x000000010089f980
> libG4vis_management.dylib`G4VSceneHandler::ProcessScene() + 312
>     frame #10: 0x00000001008275c5
> libG4OpenGL.dylib`G4OpenGLSceneHandler::ProcessScene() + 21
>     frame #11: 0x0000000100846bb7
> libG4OpenGL.dylib`G4OpenGLStoredQtViewer::ComputeView() + 83
>     frame #12: 0x0000000100846da6
> libG4OpenGL.dylib`G4OpenGLStoredQtViewer::paintGL() + 238
>     frame #13: 0x00000001051352bf QtOpenGL`QGLWidget::glDraw() + 207
>     frame #14: 0x0000000100846f0d
> libG4OpenGL.dylib`G4OpenGLStoredQtViewer::updateQWidget() + 33
>     frame #15: 0x00000001008b9791
> libG4vis_management.dylib`G4VisCommandSceneNotifyHandlers::SetNewValue(G4UIcommand*,
> G4String) + 1671
>     frame #16: 0x000000010285b3ea
> libG4intercoms.dylib`G4UIcommand::DoIt(G4String) + 2752
>     frame #17: 0x000000010286e887
> libG4intercoms.dylib`G4UImanager::ApplyCommand(char const*) + 1265
>     frame #18: 0x00000001008a31ea
> libG4vis_management.dylib`G4VVisCommand::UpdateVisManagerScene(G4String
> const&) + 320
>     frame #19: 0x00000001008bc644
> libG4vis_management.dylib`G4VisCommandSceneAddAxes::SetNewValue(G4UIcommand*,
> G4String) + 1126
>     frame #20: 0x000000010285b3ea
> libG4intercoms.dylib`G4UIcommand::DoIt(G4String) + 2752
>     frame #21: 0x000000010286e887
> libG4intercoms.dylib`G4UImanager::ApplyCommand(char const*) + 1265
>     frame #22: 0x0000000100a4c585
> libG4interfaces.dylib`G4VBasicShell::ExecuteCommand(G4String const&) + 65
>     frame #23: 0x0000000100a4cd39
> libG4interfaces.dylib`G4VBasicShell::ApplyShellCommand(G4String const&,
> bool&, bool&) + 1567
>     frame #24: 0x0000000100a455f0
> libG4interfaces.dylib`G4UIQt::CommandEnteredCallback() + 560
>     frame #25: 0x0000000105ea2e7d QtCore`QMetaObject::activate(QObject*,
> QMetaObject const*, int, void**) + 1693
>     frame #26: 0x0000000105673591
> QtGui`QLineEdit::qt_static_metacall(QObject*, QMetaObject::Call, int,
> void**) + 257
>     frame #27: 0x0000000105ea2e7d QtCore`QMetaObject::activate(QObject*,
> QMetaObject const*, int, void**) + 1693
>     frame #28: 0x000000010567960a
> QtGui`QLineControl::processKeyEvent(QKeyEvent*) + 554
>     frame #29: 0x00000001056708c2
> QtGui`QLineEdit::keyPressEvent(QKeyEvent*) + 34
>     frame #30: 0x0000000105309d87 QtGui`QWidget::event(QEvent*) + 4231
>     frame #31: 0x0000000105670388 QtGui`QLineEdit::event(QEvent*) + 552
>     frame #32: 0x00000001052ba79c
> QtGui`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 252
>     frame #33: 0x00000001052bd49f QtGui`QApplication::notify(QObject*,
> QEvent*) + 6431
>     frame #34: 0x0000000105e8af96
> QtCore`QCoreApplication::notifyInternal(QObject*, QEvent*) + 118
>     frame #35: 0x00000001052be04d QtGui`qt_sendSpontaneousEvent(QObject*,
> QEvent*) + 45
>     frame #36: 0x000000010532ea71 QtGui`QKeyMapper::sendKeyEvent(QWidget*,
> bool, QEvent::Type, int, QFlags<Qt::KeyboardModifier>, QString const&,
> bool, int, unsigned int, unsigned int, unsigned int, bool*) + 401
>     frame #37: 0x000000010532e528
> QtGui`QKeyMapperPrivate::translateKeyEvent(QWidget*,
> OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, bool) + 1128
>     frame #38: 0x00000001052685e4 QtGui`qt_dispatchKeyEvent(void*,
> QWidget*) + 244
>     frame #39: 0x000000010525ddf1 QtGui`-[QCocoaView keyDown:] + 257
>     frame #40: 0x00007fff8de8365b AppKit`-[NSWindow sendEvent:] + 1843
>     frame #41: 0x0000000105260f21 QtGui`-[QCocoaWindow sendEvent:] + 113
>     frame #42: 0x00007fff8de24c42 AppKit`-[NSApplication sendEvent:] + 3395
>     frame #43: 0x0000000105265d2e QtGui`-[QNSApplication sendEvent:] + 78
>     frame #44: 0x00007fff8dc74b89 AppKit`-[NSApplication run] + 646
>     frame #45: 0x000000010526e7d0
> QtGui`QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
> + 528
>     frame #46: 0x0000000105e8832d
> QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 477
>     frame #47: 0x0000000105e8b547 QtCore`QCoreApplication::exec() + 199
>     frame #48: 0x0000000100a3893f
> libG4interfaces.dylib`G4UIQt::SessionStart() + 271
>     frame #49: 0x0000000100014e10 Gate`main(argc=1, argv=<unavailable>) +
> 3041 at Gate.cc:378
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>



-- 
Jérôme Suhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140509/848c0e57/attachment-0001.html>


More information about the Gate-users mailing list