|Message: Infinite Loop in G4SubtractionSolid::DistanceToIn()||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
when I try to run my application, at a certain point, an infinite loop is created with a call to G4SubtractionSolid::DistanceToIn(), and I obtain the message:
-------- WWWW ------- G4Exception-START -------- WWWW ------- *** G4Exception : GeomSolids1001 issued by : G4SubtractionSolid::DistanceToIn(p,v) Illegal condition caused by solids: B48 and B43 Looping detected in point (nan,nan,nan), from original point (nan,nan,nan) and direction (0.7903103663410459,-0.4908280694712698,0.3667387777055873) Computed candidate distance: 0*mm. Returning candidate distance.
*** This is just a warning message. ***
I made sure that the two bodies do not have touching surfaces, nevertheless the error did not go away. Also strange that the starting point is (nan,nan,nan). DistanceToIn is called from G4VoxelNavigation::ComputeStep in my case.
In problem 1304 on bugzilla-geant4.kek.jp, it was mentioned that there is still an issue with "Navigator". Since I am using GEANT4 Primitive Scorers in my code, I gave it a try and commented out the call to the G4ScoringManager in my main, as well as all scoring related commands in my input macro.
I rerun the application, using the same random seeds as before, and now the runs finish without problems (e.g. no infinite loops).
However, I don't have the scoring any more.
Anyone has any ideas why the Warning goes away when I switch of scoring? And how to get scoring without the warning (and the infinite loop)?
I am using Geant4.10p02 plus some additional patches provided by Geant4 developers to account for other problems.
|Inline Depth:||Outline Depth:||Add message:|