[Gate-users] Qt crash on OS X 10.9 when using /vis/drawVolume

Marc Chamberland MarcChamberland at cmail.carleton.ca
Thu Mar 20 15:31:36 CET 2014


It's almost as simple as it gets:

Step 1:  Launch Gate with argument --qt

Step 2: Use the following commands.

/vis/open OGLSQt
/vis/drawVolume



Cheers,
Marc



On Mar 20, 2014, at 10:24, Jérôme Suhard <jerome at suhard.fr<mailto:jerome at suhard.fr>> wrote:

Hi,

can you give us the most minimal macro who shows this behaviour ?

Regards,
Jérôme



2014-03-20 15:11 GMT+01:00 Marc Chamberland <MarcChamberland at cmail.carleton.ca<mailto:MarcChamberland at cmail.carleton.ca>>:
Hi everyone,

With Gate 6.2 on OS X 10.9, I'm experiencing another Qt-related crash. I've already used the fix provided by Jérôme back in December (seehttp://article.gmane.org/gmane.comp.science.opengate.user/3434/match=jérôme+qt+os+x+10.9<http://article.gmane.org/gmane.comp.science.opengate.user/3434/match=j%C3%A9r%C3%B4me+qt+os+x+10.9>).

The crash happens after launching Gate with the --qt option and using the command /vis/drawVolume (or /vis/sceneHandler/attach).

I've included the backtrace below:

[Core-0] You are using Geant4 version 9.6.2
Process 10362 stopped
* thread #1: tid = 0x3ba302, 0x000000010084c10a libG4OpenGL.dylib`G4OpenGLQtViewer::isTouchableVisible(int) + 40, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x2)
   frame #0: 0x000000010084c10a libG4OpenGL.dylib`G4OpenGLQtViewer::isTouchableVisible(int) + 40
libG4OpenGL.dylib`G4OpenGLQtViewer::isTouchableVisible(int) + 40:
-> 0x10084c10a:  movq   (%rcx), %rdx
  0x10084c10d:  testq  %rdx, %rdx
  0x10084c110:  jne    0x10084c107               ; G4OpenGLQtViewer::isTouchableVisible(int) + 37
  0x10084c112:  jmp    0x10084c120               ; G4OpenGLQtViewer::isTouchableVisible(int) + 62
(lldb) bt
* thread #1: tid = 0x3ba302, 0x000000010084c10a libG4OpenGL.dylib`G4OpenGLQtViewer::isTouchableVisible(int) + 40, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x2)
 * frame #0: 0x000000010084c10a libG4OpenGL.dylib`G4OpenGLQtViewer::isTouchableVisible(int) + 40
   frame #1: 0x000000010082d1ef libG4OpenGL.dylib`G4OpenGLStoredViewer::DrawDisplayLists() + 371
   frame #2: 0x0000000100850c3d libG4OpenGL.dylib`G4OpenGLStoredQtViewer::ComputeView() + 217
   frame #3: 0x0000000100850da6 libG4OpenGL.dylib`G4OpenGLStoredQtViewer::paintGL() + 238
   frame #4: 0x00000001050b594f QtOpenGL`QGLWidget::glDraw() + 207
   frame #5: 0x0000000100850f0d libG4OpenGL.dylib`G4OpenGLStoredQtViewer::updateQWidget() + 33
   frame #6: 0x00000001008d9c11 libG4vis_management.dylib`G4VisCommandSceneHandlerAttach::SetNewValue(G4UIcommand*, G4String) + 387
   frame #7: 0x00000001028674da libG4intercoms.dylib`G4UIcommand::DoIt(G4String) + 2752
   frame #8: 0x000000010287a8e7 libG4intercoms.dylib`G4UImanager::ApplyCommand(char const*) + 1265
   frame #9: 0x00000001008b6532 libG4vis_management.dylib`G4VisCommandDrawVolume::SetNewValue(G4UIcommand*, G4String) + 158
   frame #10: 0x00000001028674da libG4intercoms.dylib`G4UIcommand::DoIt(G4String) + 2752
   frame #11: 0x000000010287a8e7 libG4intercoms.dylib`G4UImanager::ApplyCommand(char const*) + 1265
   frame #12: 0x0000000100a566e5 libG4interfaces.dylib`G4VBasicShell::ExecuteCommand(G4String const&) + 65
   frame #13: 0x0000000100a56e99 libG4interfaces.dylib`G4VBasicShell::ApplyShellCommand(G4String const&, bool&, bool&) + 1567
   frame #14: 0x0000000100a4f750 libG4interfaces.dylib`G4UIQt::CommandEnteredCallback() + 560
   frame #15: 0x0000000105e0ac5b QtCore`QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2299
   frame #16: 0x00000001055d6f98 QtGui`QLineEdit::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 296
   frame #17: 0x0000000105e0ac5b QtCore`QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2299
   frame #18: 0x00000001055dcf63 QtGui`QLineControl::processKeyEvent(QKeyEvent*) + 467
   frame #19: 0x00000001055d4192 QtGui`QLineEdit::keyPressEvent(QKeyEvent*) + 34
   frame #20: 0x00000001052879a0 QtGui`QWidget::event(QEvent*) + 3376
   frame #21: 0x00000001055d3c57 QtGui`QLineEdit::event(QEvent*) + 519
   frame #22: 0x000000010523857c QtGui`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 252
   frame #23: 0x000000010523a3d8 QtGui`QApplication::notify(QObject*, QEvent*) + 2728
   frame #24: 0x0000000105df30e5 QtCore`QCoreApplication::notifyInternal(QObject*, QEvent*) + 117
   frame #25: 0x000000010523bdec QtGui`qt_sendSpontaneousEvent(QObject*, QEvent*) + 44
   frame #26: 0x00000001052acaba QtGui`QKeyMapper::sendKeyEvent(QWidget*, bool, QEvent::Type, int, QFlags<Qt::KeyboardModifier>, QString const&, bool, int, unsigned int, unsigned int, unsigned int, bool*) + 410
   frame #27: 0x00000001052ac592 QtGui`QKeyMapperPrivate::translateKeyEvent(QWidget*, OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, bool) + 1138
   frame #28: 0x00000001051e62fc QtGui`qt_dispatchKeyEvent(void*, QWidget*) + 252
   frame #29: 0x00000001051dbdba QtGui`-[QCocoaView keyDown:] + 266
   frame #30: 0x00007fff90be565b AppKit`-[NSWindow sendEvent:] + 1843
   frame #31: 0x00000001051dee2e QtGui`-[QCocoaWindow sendEvent:] + 110
   frame #32: 0x00007fff90b86c42 AppKit`-[NSApplication sendEvent:] + 3395
   frame #33: 0x00007fff909d6b89 AppKit`-[NSApplication run] + 646
   frame #34: 0x00000001051ec820 QtGui`QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 528
   frame #35: 0x0000000105df03b7 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 487
   frame #36: 0x0000000105df3677 QtCore`QCoreApplication::exec() + 199
   frame #37: 0x0000000100a42a9f libG4interfaces.dylib`G4UIQt::SessionStart() + 271
   frame #38: 0x00000001000148e0 Gate`main(argc=1, argv=<unavailable>) + 3041 at Gate.cc<http://gate.cc/>:378
(lldb)



I realize this might be more of a Geant4 bug than anything, but if someone has experienced this and has a fix for it, I'd appreciate the help.

Cheers,
Marc

Marc



__________________________

Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)


_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto: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/20140320/66d5774c/attachment-0001.html>


More information about the Gate-users mailing list