Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yuxiXo opened this issue Dec 12, 2022 · 5 comments
Open

Comments

@yuxiXo
Copy link

yuxiXo commented Dec 12, 2022

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!

@kochebina
Copy link
Contributor

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
Copy link
Contributor

Thank you Olga, you're right. I accepted the PR: OpenGATE/GateContrib#64

@yuxiXo Does it work now?

@yuxiXo
Copy link
Author

yuxiXo commented Feb 6, 2023

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
Copy link
Author

yuxiXo commented Feb 6, 2023

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

@yuxiXo
Copy link
Author

yuxiXo commented Feb 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants