-
Notifications
You must be signed in to change notification settings - Fork 146
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
tutor7pp error: Track 2026 has length -1717986918 < 2.Segmentation fault #745
Comments
Thank you for reporting this @Vitigis, we will try to reproduce this behaviour at our end! |
Hi @Vitigis, it looks like the problem is that you have included two |
Hi @rtownson, sorry to barge in on this issue. Is this the case for all ausgab objects or just tracks? Maybe we could add a check in diff --git a/HEN_HOUSE/egs++/egs_application.cpp b/HEN_HOUSE/egs++/egs_application.cpp
index c4159c3d..bc840ef9 100644
--- a/HEN_HOUSE/egs++/egs_application.cpp
+++ b/HEN_HOUSE/egs++/egs_application.cpp
@@ -929,6 +929,12 @@ void EGS_Application::addAusgabObject(EGS_AusgabObject *o) {
if (!o) {
return;
}
+ for (int j=0; j<a_objects_list.size(); ++j) {
+ if (a_objects_list[j]->getObjectType() == o->getObjectType()) {
+ egsFatal("error: only one ausgab object of type '%s' is allowed\n",
+ o->getObjectType().c_str());
+ }
+ }
o->setApplication(this);
a_objects_list.add(o);
//int ncall = 1 + (int)AugerEvent; |
@mxxo barge in any time! Actually this is only the case for EGS_trackScoring (I believe all other ausgab objects are allowed to have multiple and good reasons to do so), but you're right that we should add a catch. I don't see a reason to allow multiple ptrack files since there really aren't any important options that would make them different, other than particle type which you can already filter in egs_view. Would you like to submit a PR for it? |
Sure thing, thanks Reid! :) |
As discussed in nrc-cnrc#745, ensure that multiple EGS_TrackScoring objects are not defined as this can lead to bugs at write time when the objects try to write to the same file.
As discussed in issue nrc-cnrc#745 ensure that one EGS_TrackScoring object is define to prevent bugs at write time when multiple objects try to write to the same file.
As discussed in issue #745 ensure that one EGS_TrackScoring object is define to prevent bugs at write time when multiple objects try to write to the same file.
Hello Everyone,
I´m new to EGSnrc and I´m trying to recreate the task of the "getting started"-PDF. In Chapter 5.4 "Generate particles tracks" there is a task where you simulate ptracks in an air box with an water cylinder in it (tutor7pp -i test2.egsinp -p 521icru). When I want to see the result in egs_view i get the error message: "Track 2025 has length 0 < 2.Track 2026 has length -1717986918 < 2.Segmentation fault". When I change the material of the air box to water instead it works properly.
So does anyone has a clue why the ptrack-lenght is negative and how to fix it? The .egsinp-File is attached.
Greetings and thanks for help
test2.txt
The text was updated successfully, but these errors were encountered: