Gate
Gate copied to clipboard
Illegal application state </gate/crystal/surfaces/insert Electronics>
Hello folks,
I am a very new user of Gate and am learning all of the uses and capabilities of the program. I am currently using version Gate-9.2 and am running into trouble trying to run optical imaging example.
A clear and concise description of what the bug is. G4-cerr] ***** Illegal application state </gate/crystal/surfaces/insert Electronics> ***** [Gate] Sorry, error in a macro command : abort.
Desktop (please complete the following information):
- OS: [e.g. Ubuntu 20.04]
- Gate version or commit hash: [v9.2]
- Geant4 version: [cd 11.0.3]
- Root version: [ v6-26-06]
Minimal example /GateContrib/imaging/Optical/
Thank you so much in advance!
Dear yuxiXo,
Thank you for your message. I had the same issue recently.
It seems that now the surfaces must be defined AFTER (not before) /gate/run/initialize
A PR is opened to correct this mistake in /GateContrib/imaging/Optical/
Cheers, Olga
Thank you Olga, you're right. I accepted the PR: https://github.com/OpenGATE/GateContrib/pull/64
@yuxiXo Does it work now?
Thank you Olga and tbaudier I run Optical_System.mac successfully.But encountered the following problem when running the bioluminescence.mac and fluorescence.mac. "[G4-cerr] Error: the number of pixels that were read from the data file (129) is inferior to the number computed from its header file (2025)!"
Is there any problem with the file of "voxelized-source-phantom"?
@tbaudier It's my problem, I downloaded the wrong file. Thank you!
But encountered the following problem when running the bioluminescence.mac and fluorescence.mac.
[Core-0] End of macro bioluminescence.mac GateToOpticalRaw deleting... Graphics systems deleted. Visualization Manager deleting...
CAUGHT SIGNAL: 11 ### address: 0x55a1aa45c600, signal = SIGSEGV, value = 11, description = segmentation violation. Invalid permissions for mapped object.
Backtrace: [PID=250973, TID=-1][0/1]> ▒F▒▒U
: Segmentation fault (Invalid permissions for mapped object [0x55a1aa45c600]) Aborted (core dumped)
Cheers, Yuxixi