[Gate-users] Attaching the sensitive detectors (SD) to trapezoid volume

Xinjie Zeng xinjie.zeng at stonybrook.edu
Mon Nov 8 21:43:22 CET 2021


Dear Gate-users,

I am defining a "general trapezoid" volume to the crystal and it works fine
when I only look at the geometry. However, when I try to attach the
sensitive detector to the crystal, the simulation breaks and fails. Please
see below the set-up:

/gate/systems/cylindricalPET/crystal/attach   crystal
/gate/crystal/attachCrystalSD

The Break message is attached. Nevertheless, when I define the geometry to
"box", everything is fine. Does someone have experience with this or is
there a bug in the trapezoid volume for attachCrystalSD? I have also tried
"wedge" volume and the simulation breaks, too. Any suggestions would be
highly appreciated!

Thank you!
-- 
Xinjie Zeng
Ph.D. student
Department of Electrical and Computer Engineering & Radiology
Stony Brook University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20211108/11a42576/attachment.html>
-------------- next part --------------
[Core-0] You are using Geant4 version 10.5.1

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================

Thread 6 (Thread 0x7fb6d0ec5700 (LWP 5385)):
#0  0x00007fb6ef6c7c3d in poll () at /lib64/libc.so.6
#1  0x00007fb6ec1f237c in g_main_context_iterate.isra.19 () at /lib64/libglib-2.0.so.0
#2  0x00007fb6ec1f24ac in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007fb6ec1f24e9 in glib_worker_main () at /lib64/libglib-2.0.so.0
#4  0x00007fb6ec219540 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007fb6fa1b4ea5 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fb6ef6d28dd in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7fb6cbfff700 (LWP 5386)):
#0  0x00007fb6ef6c7c3d in poll () at /lib64/libc.so.6
#1  0x00007fb6ec1f237c in g_main_context_iterate.isra.19 () at /lib64/libglib-2.0.so.0
#2  0x00007fb6ec1f26ca in g_main_loop_run () at /lib64/libglib-2.0.so.0
#3  0x00007fb6d7a9bc36 in gdbus_shared_thread_func () at /lib64/libgio-2.0.so.0
#4  0x00007fb6ec219540 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007fb6fa1b4ea5 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fb6ef6d28dd in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7fb6ca7fc700 (LWP 5389)):
#0  0x00007fb6ef6ccbf9 in syscall () at /lib64/libc.so.6
#1  0x00007fb6ec23712e in g_cond_wait_until () at /lib64/libglib-2.0.so.0
#2  0x00007fb6ec1c5c71 in g_async_queue_pop_intern_unlocked () at /lib64/libglib-2.0.so.0
#3  0x00007fb6ec1c622b in g_async_queue_timeout_pop () at /lib64/libglib-2.0.so.0
#4  0x00007fb6ec219f9c in g_thread_pool_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007fb6ec219540 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#6  0x00007fb6fa1b4ea5 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fb6ef6d28dd in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7fb6caffd700 (LWP 5393)):
#0  0x00007fb6ef6c7c3d in poll () at /lib64/libc.so.6
#1  0x00007fb6f75fbc18 in qt_safe_poll(pollfd*, int, int, bool) () at /lib64/libQtCore.so.4
#2  0x00007fb6f75ab548 in QProcessManager::run() () at /lib64/libQtCore.so.4
#3  0x00007fb6f74c559f in QThreadPrivate::start(void*) () at /lib64/libQtCore.so.4
#4  0x00007fb6fa1b4ea5 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fb6ef6d28dd in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fb6c95bf700 (LWP 5395)):
#0  0x00007fb6fa1b8a35 in pthread_cond_wait

GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fb6b0b5581b in util_queue_thread_func () at /usr/lib64/dri/nouveau_dri.so
#2  0x00007fb6b0b55567 in impl_thrd_routine () at /usr/lib64/dri/nouveau_dri.so
#3  0x00007fb6fa1b4ea5 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fb6ef6d28dd in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fb700885ec0 (LWP 5367)):
#0  0x00007fb6ef6994b9 in waitpid () at /lib64/libc.so.6
#1  0x00007fb6ef616f62 in do_system () at /lib64/libc.so.6
#2  0x00007fb6ef617311 in system () at /lib64/libc.so.6
#3  0x00007fb6fe48f0c4 in TUnixSystem::StackTrace() () at /home/goldan/GATE/root/lib/libCore.so.6.18
#4  0x00007fb6fe4917fc in TUnixSystem::DispatchSignals(ESignals) () at /home/goldan/GATE/root/lib/libCore.so.6.18
#5  0x00007fb6fa1bc630 in <signal handler called> () at /lib64/libpthread.so.0
#6  0x00000000008517fd in GateBoxComponent::IsValidAttachmentRequest(GateVVolume*) const ()
#7  0x0000000000915896 in GateSystemComponent::SetCreator(GateVVolume*) ()
#8  0x000000000091b9a0 in GateSystemComponentMessenger::SetNewValue(G4UIcommand*, G4String) ()
#9  0x00007fb6f0753221 in G4UIcommand::DoIt(G4String) (this=0x473f250, parameterList=...) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UIcommand.cc:232
#10 0x00007fb6f0769f89 in G4UImanager::ApplyCommand(char const*) (this=0x374d130, aCmd=<optimized out>) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UImanager.cc:543
#11 0x00007fb6f076aa88 in G4UImanager::ApplyCommand(G4String const&) (this=<optimized out>, aCmd=...) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UImanager.cc:460
#12 0x00007fb6f07445a7 in G4UIbatch::ExecCommand(G4String const&) (this=this
entry=0x4579df0, command=...) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UIbatch.cc:170
#13 0x00007fb6f07457ae in G4UIbatch::SessionStart() (this=0x4579df0) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UIbatch.cc:215
#14 0x00007fb6f076aac2 in G4UImanager::ExecuteMacroFile(char const*) (this=this
entry=0x374d130, fileName=0x4495c10 "/home/goldan/Desktop/share/Experimental_Decagon/Sensi/testgeo.mac") at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UImanager.cc:315
#15 0x00007fb6f075b83e in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) (this=this
entry=0x374d540, command=command
entry=0x374de10, newValue=...) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UIcontrolMessenger.cc:377
#16 0x00007fb6f0753221 in G4UIcommand::DoIt(G4String) (this=0x374de10, parameterList=...) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UIcommand.cc:232
#17 0x00007fb6f0769f89 in G4UImanager::ApplyCommand(char const*) (this=this
entry=0x374d130, aCmd=<optimized out>) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UImanager.cc:543
#18 0x00007fb6ff4b607e in G4UIQt::OpenIconCallback(QString const&) (this=0x3d4ba40, aParam=...) at /home/goldan/GATE/geant4.10.05.p01/source/interfaces/basic/src/G4UIQt.cc:4345
#19 0x00007fb6f75e430a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /lib64/libQtCore.so.4
#20 0x00007fb6f75ebd65 in QSignalMapper::mapped(QString const&) () at /lib64/libQtCore.so.4
#21 0x00007fb6f75ebef0 in QSignalMapper::map(QObject*) () at /lib64/libQtCore.so.4
#22 0x00007fb6f75e430a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /lib64/libQtCore.so.4
#23 0x00007fb6f7afa962 in QAction::triggered(bool) () at /lib64/libQtGui.so.4
#24 0x00007fb6f7afc4f7 in QAction::activate(QAction::ActionEvent) () at /lib64/libQtGui.so.4
#25 0x00007fb6f7ecbd36 in QAbstractButtonPrivate::click() () at /lib64/libQtGui.so.4
#26 0x00007fb6f7ecbe7c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /lib64/libQtGui.so.4
#27 0x00007fb6f7f8d78a in QToolButton::mouseReleaseEvent(QMouseEvent*) () at /lib64/libQtGui.so.4
#28 0x00007fb6f7b570b8 in QWidget::event(QEvent*) () at /lib64/libQtGui.so.4
#29 0x00007fb6f7b010ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQtGui.so.4
#30 0x00007fb6f7b07b01 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQtGui.so.4
#31 0x00007fb6f75cf87d in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /lib64/libQtCore.so.4
#32 0x00007fb6f7b07277 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /lib64/libQtGui.so.4
#33 0x00007fb6f7b7facb in QETWidget::translateMouseEvent(_XEvent const*) () at /lib64/libQtGui.so.4
#34 0x00007fb6f7b7e53c in QApplication::x11ProcessEvent(_XEvent*) () at /lib64/libQtGui.so.4
#35 0x00007fb6f7ba5f24 in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQtGui.so.4
#36 0x00007fb6ec1f2099 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#37 0x00007fb6ec1f23f8 in g_main_context_iterate.isra.19 () at /lib64/libglib-2.0.so.0
#38 0x00007fb6ec1f24ac in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#39 0x00007fb6f75fe3ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#40 0x00007fb6f7ba60a6 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtGui.so.4
#41 0x00007fb6f75ce30f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#42 0x00007fb6f75ce65d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#43 0x00007fb6f75d3d29 in QCoreApplication::exec() () at /lib64/libQtCore.so.4
#44 0x00007fb6ff4c6510 in G4UIQt::SessionStart() (this=0x3d4ba40) at /home/goldan/GATE/geant4.10.05.p01/source/interfaces/basic/src/G4UIQt.cc:1911
#45 0x0000000000501901 in main ()
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  0x00000000008517fd in GateBoxComponent::IsValidAttachmentRequest(GateVVolume*) const ()
#7  0x0000000000915896 in GateSystemComponent::SetCreator(GateVVolume*) ()
#8  0x000000000091b9a0 in GateSystemComponentMessenger::SetNewValue(G4UIcommand*, G4String) ()
#9  0x00007fb6f0753221 in G4UIcommand::DoIt(G4String) (this=0x473f250, parameterList=...) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UIcommand.cc:232
#10 0x00007fb6f0769f89 in G4UImanager::ApplyCommand(char const*) (this=0x374d130, aCmd=<optimized out>) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UImanager.cc:543
#11 0x00007fb6f076aa88 in G4UImanager::ApplyCommand(G4String const&) (this=<optimized out>, aCmd=...) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UImanager.cc:460
#12 0x00007fb6f07445a7 in G4UIbatch::ExecCommand(G4String const&) (this=this
entry=0x4579df0, command=...) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UIbatch.cc:170
#13 0x00007fb6f07457ae in G4UIbatch::SessionStart() (this=0x4579df0) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UIbatch.cc:215
#14 0x00007fb6f076aac2 in G4UImanager::ExecuteMacroFile(char const*) (this=this
entry=0x374d130, fileName=0x4495c10 "/home/goldan/Desktop/share/Experimental_Decagon/Sensi/testgeo.mac") at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UImanager.cc:315
#15 0x00007fb6f075b83e in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) (this=this
entry=0x374d540, command=command
entry=0x374de10, newValue=...) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UIcontrolMessenger.cc:377
#16 0x00007fb6f0753221 in G4UIcommand::DoIt(G4String) (this=0x374de10, parameterList=...) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UIcommand.cc:232
#17 0x00007fb6f0769f89 in G4UImanager::ApplyCommand(char const*) (this=this
entry=0x374d130, aCmd=<optimized out>) at /home/goldan/GATE/geant4.10.05.p01/source/intercoms/src/G4UImanager.cc:543
#18 0x00007fb6ff4b607e in G4UIQt::OpenIconCallback(QString const&) (this=0x3d4ba40, aParam=...) at /home/goldan/GATE/geant4.10.05.p01/source/interfaces/basic/src/G4UIQt.cc:4345
#19 0x00007fb6f75e430a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /lib64/libQtCore.so.4
#20 0x00007fb6f75ebd65 in QSignalMapper::mapped(QString const&) () at /lib64/libQtCore.so.4
#21 0x00007fb6f75ebef0 in QSignalMapper::map(QObject*) () at /lib64/libQtCore.so.4
#22 0x00007fb6f75e430a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /lib64/libQtCore.so.4
#23 0x00007fb6f7afa962 in QAction::triggered(bool) () at /lib64/libQtGui.so.4
#24 0x00007fb6f7afc4f7 in QAction::activate(QAction::ActionEvent) () at /lib64/libQtGui.so.4
#25 0x00007fb6f7ecbd36 in QAbstractButtonPrivate::click() () at /lib64/libQtGui.so.4
#26 0x00007fb6f7ecbe7c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /lib64/libQtGui.so.4
#27 0x00007fb6f7f8d78a in QToolButton::mouseReleaseEvent(QMouseEvent*) () at /lib64/libQtGui.so.4
#28 0x00007fb6f7b570b8 in QWidget::event(QEvent*) () at /lib64/libQtGui.so.4
#29 0x00007fb6f7b010ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQtGui.so.4
#30 0x00007fb6f7b07b01 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQtGui.so.4
#31 0x00007fb6f75cf87d in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /lib64/libQtCore.so.4
#32 0x00007fb6f7b07277 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /lib64/libQtGui.so.4
#33 0x00007fb6f7b7facb in QETWidget::translateMouseEvent(_XEvent const*) () at /lib64/libQtGui.so.4
#34 0x00007fb6f7b7e53c in QApplication::x11ProcessEvent(_XEvent*) () at /lib64/libQtGui.so.4
#35 0x00007fb6f7ba5f24 in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQtGui.so.4
#36 0x00007fb6ec1f2099 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#37 0x00007fb6ec1f23f8 in g_main_context_iterate.isra.19 () at /lib64/libglib-2.0.so.0
#38 0x00007fb6ec1f24ac in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#39 0x00007fb6f75fe3ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#40 0x00007fb6f7ba60a6 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtGui.so.4
#41 0x00007fb6f75ce30f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#42 0x00007fb6f75ce65d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#43 0x00007fb6f75d3d29 in QCoreApplication::exec() () at /lib64/libQtCore.so.4
#44 0x00007fb6ff4c6510 in G4UIQt::SessionStart() (this=0x3d4ba40) at /home/goldan/GATE/geant4.10.05.p01/source/interfaces/basic/src/G4UIQt.cc:1911
#45 0x0000000000501901 in main ()
===========================================================


[crystal::IsValidAttachmentRequest]:



More information about the Gate-users mailing list