Gate icon indicating copy to clipboard operation
Gate copied to clipboard

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

Open yuxiXo opened this issue 2 years ago • 5 comments

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!

yuxiXo avatar Dec 12 '22 06:12 yuxiXo

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

kochebina avatar Jan 23 '23 15:01 kochebina

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

@yuxiXo Does it work now?

tbaudier avatar Jan 25 '23 12:01 tbaudier

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 avatar Feb 06 '23 07:02 yuxiXo

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

yuxiXo avatar Feb 06 '23 07:02 yuxiXo

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

yuxiXo avatar Feb 06 '23 07:02 yuxiXo