Message: Infinite Loop in G4SubtractionSolid::DistanceToIn() Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Infinite Loop in G4SubtractionSolid::DistanceToIn() 

Forum: Geometry
Date: 05 Sep, 2014
From: Stefan E. Mueller <Stefan E. Mueller>

Dear all,

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.

Stefan

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Makoto Asai - 08 Sep, 2014)
1 More: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Stefan E. Mueller - 09 Sep, 2014)
(_ None: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Makoto Asai - 09 Sep, 2014)
1 More: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Stefan E. Mueller - 10 Sep, 2014)
... 1 Message(s)
2 None: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Vladimir Grichine - 17 Jan, 2016)
... 1 Message(s)
2 Feedback: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Gabriele Cosmo - 10 Sep, 2014)
3 More: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Stefan E. Mueller - 10 Sep, 2014)
1 None: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (John Apostolakis - 10 Sep, 2014)
(_ More: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Stefan E. Mueller - 11 Sep, 2014)
4 News: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Stefan E. Mueller - 17 Sep, 2014)
5 More: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Stefan E. Mueller - 04 Dec, 2014)
6 More: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Stefan E. Mueller - 23 Jan, 2015)
1 None: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Paola Ferrario - 04 Dec, 2015)
(_ None: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Stefan E. Mueller - 13 Jan, 2016)
(_ None: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Marc Verderi - 13 Jan, 2016)
1 None: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Paola Ferrario - 14 Jan, 2016)
2 None: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Stefan E. Mueller - 14 Jan, 2016)
7 Ok: Re: Infinite Loop in G4SubtractionSolid::DistanceToIn()   (Stefan E. Mueller - 10 Mar, 2016)
 Add Message Add Message
to: "Infinite Loop in G4SubtractionSolid::DistanceToIn()"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]