-
Notifications
You must be signed in to change notification settings - Fork 268
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
GATE 9.2 crashes with Water volume #505
Comments
Thank you for this precise description and minimal example! I think this is a "double free" problem. At some point of time,
The problem can be mitigated by removing the A better fix would require to make clear whether a |
Hi Max and Alex, thanks for reporting. I think the first solution is simpler, can you try with your examples and, if succeeded, propose PR, please ? |
Of course any memory issues should be fixed (btw @maxaehle I think that you are doing really awesome work with valgrind!) but apart from that, I remember that some time ago we decided to remove "Water" from the Gate material database because users should use G4_WATER instead, the standard geant4 material. But when I "git pull" the latest version of Gate, I see that "Water" is actually still in the database. Did I forget to remove it? I see that "Air" is definitely gone. |
It works with G4_WATER. I missed the memo about Water not being usable any longer. I will use this moving forward. If Water is not supposed to exist, we can see if the memory problem even needs fixing or if that is the solution. Air is still in Materials.xml, by the way. When removing Water, it should then also be removed from Materials.xml along with Air. Thanks for your help! |
If Actually right now, the body of the
I wonder if the |
Describe the bug
We are trying to migrate from version 9.1 to 9.2 and our simulation crashes with a segmentation violation. I identified that the issue is the Water material. As soon as the material changes to anything else, the simulation succeeds. We are using a standard water definition and the Materials.xml from the 9.2 tag in this repository. The error message looks as follows:
Desktop (please complete the following information):
Minimal example
I created a repository with a minimal example and instructions how to run it: https://github.com/alex-a-nerd/gate-9-2-water-issue.
Here is the main macro file:
Additional context
The example succeeds with any of the following changes:
The text was updated successfully, but these errors were encountered: