OpenGATE / Gate

Official public repository of Gate
http://www.opengatecollaboration.org
GNU Lesser General Public License v3.0
232 stars 262 forks source link

Illegal application state </gate/crystal/surfaces/insert Electronics> #557

Open yuxiXo opened 1 year ago

yuxiXo commented 1 year ago

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):

Minimal example /GateContrib/imaging/Optical/

Thank you so much in advance!

kochebina commented 1 year ago

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

tbaudier commented 1 year ago

Thank you Olga, you're right. I accepted the PR: https://github.com/OpenGATE/GateContrib/pull/64

@yuxiXo Does it work now?

yuxiXo commented 1 year ago

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"?

yuxiXo commented 1 year ago

@tbaudier It's my problem, I downloaded the wrong file. Thank you!

yuxiXo commented 1 year ago

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