*** G4Exception : PART002 issued by : G4ParticleTable::CheckReadiness()

Dear all,
Within the AGATA collaboration we are using a geant4 simulation that has been validated with g4v10.05. I’m now trying to run it using g410.07 and it fails to start giving an exception (see title of topic). I also include a gdb trace.
The problem disappears if I remove all G4QGSM classes (including header files, just not using the classes was not enough). Any ideas?

best regards

Joa

r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/joa/Disk2/agata/branches/GANIL/trunk/build/Agata
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/usr/lib/x86_64-linux-gnu/libthread_db.so.1”.
Visualization Manager instantiating with verbosity “warnings (3)”…
Visualization Manager initialising…
Registering graphics systems…

You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRep (HepRepXML)
G4HepRepFile (HepRepFile)
RayTracer (RayTracer)
VRML1FILE (VRML1FILE)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
OpenGLImmediateQt (OGLIQt, OGLI)
OpenGLStoredQt (OGLSQt, OGL, OGLS)
OpenGLImmediateXm (OGLIXm, OGLIQt_FALLBACK)
OpenGLStoredXm (OGLSXm, OGLSQt_FALLBACK)
OpenGLImmediateX (OGLIX, OGLIQt_FALLBACK, OGLIXm_FALLBACK)
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
OpenInventorQt (OIQt, OI)
RayTracerX (RayTracerX)

Registering model factories…

You have successfully registered the following model factories.
Registered model factories:
generic
drawByAttribute
drawByCharge
drawByOriginVolume
drawByParticleID
drawByEncounteredVolume

Registered models:
None

Registered filter factories:
attributeFilter
chargeFilter
originVolumeFilter
particleFilter
encounteredVolumeFilter

Registered filters:
None

You have successfully registered the following user vis actions.
Run Duration User Vis Actions: none
End of Event User Vis Actions: none
End of Run User Vis Actions: none

Some /vis commands (optionally) take a string to specify colour.
“/vis/list” to see available colours.


Geant4 version Name: geant4-10-07 (4-December-2020)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
: NIM A 835 (2016), 186-225
WWW : http://geant4.org/


Breakpoint 1, main (argc=1, argv=0x7fffffffd828) at /home/joa/Disk2/agata/branches/GANIL/trunk/Agata.cc:201
201 AgataPhysicsList* pAgataPhysics = gtype!=3 ?
(gdb) s
G4String::G4String (str=…, this=0x7fffffffc6b0) at /home/joa/Disk2/agata/branches/GANIL/trunk/Agata.cc:201
201 AgataPhysicsList* pAgataPhysics = gtype!=3 ?
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string (__str="/Agata", this=0x7fffffffc6b0) at /home/joa/Disk2/agata/branches/GANIL/trunk/Agata.cc:201
201 AgataPhysicsList* pAgataPhysics = gtype!=3 ?
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char*> (__end=, __beg=, this=)
at /home/joa/Disk2/agata/branches/GANIL/trunk/Agata.cc:201
201 AgataPhysicsList* pAgataPhysics = gtype!=3 ?
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct_aux<char*> (__end=, __beg=, this=)
at /usr/include/c++/9/ext/new_allocator.h:83
83 new_allocator(const new_allocator&) _GLIBCXX_USE_NOEXCEPT { }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string (__str="/Agata", this=0x7fffffffc6b0) at /usr/include/c++/9/bits/basic_string.h:451
451 { _M_construct(__str._M_data(), __str._M_data() + __str.length()); }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char*> (__end=0x7fffffffc666 “”, __beg=0x7fffffffc660 “/Agata”, this=0x7fffffffc6b0)
at /usr/include/c++/9/bits/basic_string.h:451
451 { _M_construct(__str._M_data(), __str._M_data() + __str.length()); }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct_aux<char*> (__end=0x7fffffffc666 “”, __beg=0x7fffffffc660 “/Agata”, this=0x7fffffffc6b0)
at /usr/include/c++/9/bits/basic_string.h:936
936 length() const _GLIBCXX_NOEXCEPT
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char*> (this=0x7fffffffc6b0, __beg=0x7fffffffc660 “/Agata”, __end=0x7fffffffc666 “”)
at /usr/include/c++/9/bits/basic_string.tcc:206
206 basic_string<_CharT, _Traits, _Alloc>::
(gdb)
215 size_type __dnew = static_cast<size_type>(std::distance(__beg, __end));
(gdb)
std::distance<char*> (__last=, __first=) at /usr/include/c++/9/bits/basic_string.tcc:215
215 size_type __dnew = static_cast<size_type>(std::distance(__beg, __end));
(gdb)
std::__distance<char*> (__last=, __first=) at /usr/include/c++/9/bits/stl_iterator_base_funcs.h:138
138 distance(_InputIterator __first, _InputIterator __last)
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char*> (this=0x7fffffffc6b0, __beg=0x7fffffffc660 “/Agata”, __end=0x7fffffffc666 “”)
at /usr/include/c++/9/bits/basic_string.tcc:225
225 { this->_S_copy_chars(_M_data(), __beg, __end); }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_S_copy_chars (__k2=0x7fffffffc666 “”, __k1=0x7fffffffc660 “/Agata”, __p=0x7fffffffc6c0 “”)
at /usr/include/c++/9/bits/basic_string.tcc:225
225 { this->_S_copy_chars(_M_data(), __beg, __end); }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_S_copy (__n=6, __s=0x7fffffffc660 “/Agata”, __d=0x7fffffffc6c0 “”) at /usr/include/c++/9/bits/basic_string.h:392
392 _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) _GLIBCXX_NOEXCEPT
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char*> (this=0x7fffffffc6b0, __beg=0x7fffffffc660 “/Agata”, __end=0x7fffffffc666 “”)
at /usr/include/c++/9/bits/basic_string.tcc:225
225 { this->_S_copy_chars(_M_data(), __beg, __end); }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_S_copy_chars (__k2=0x7fffffffc666 “”, __k1=0x7fffffffc660 “/Agata”, __p=0x7fffffffc6c0 “”)
at /usr/include/c++/9/bits/basic_string.tcc:225
225 { this->_S_copy_chars(_M_data(), __beg, __end); }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_S_copy (__n=6, __s=0x7fffffffc660 “/Agata”, __d=0x7fffffffc6c0 “”) at /usr/include/c++/9/bits/basic_string.tcc:225
225 { this->_S_copy_chars(_M_data(), __beg, __end); }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_S_copy (__n=6, __s=0x7fffffffc660 “/Agata”, __d=0x7fffffffc6c0 “”) at /usr/include/c++/9/bits/basic_string.tcc:225
225 { this->_S_copy_chars(_M_data(), __beg, __end); }
(gdb)
std::char_traits::copy (__n=6, __s2=0x7fffffffc660 “/Agata”, __s1=0x7fffffffc6c0 “”) at /usr/include/c++/9/bits/char_traits.h:363
363 if (__n == 0)
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char*> (this=0x7fffffffc6b0, __beg=0x7fffffffc660 “/Agata”, __end=)
at /usr/include/c++/9/bits/basic_string.tcc:225
225 { this->_S_copy_chars(_M_data(), __beg, __end); }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_S_copy_chars (__k2=, __k1=0x7fffffffc660 “/Agata”, __p=0x7fffffffc6c0 “”)
at /usr/include/c++/9/bits/basic_string.tcc:225
225 { this->_S_copy_chars(_M_data(), __beg, __end); }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_S_copy (__n=6, __s=0x7fffffffc660 “/Agata”, __d=0x7fffffffc6c0 “”) at /usr/include/c++/9/bits/basic_string.tcc:225
225 { this->_S_copy_chars(_M_data(), __beg, __end); }
(gdb)
std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_S_copy (__n=6, __s=0x7fffffffc660 “/Agata”, __d=0x7fffffffc6c0 “”) at /usr/include/c++/9/bits/basic_string.tcc:225
225 { this->_S_copy_chars(_M_data(), __beg, __end); }
(gdb)
std::char_traits::copy (__n=6, __s2=0x7fffffffc660 “/Agata”, __s1=0x7fffffffc6c0 “”) at /usr/include/c++/9/bits/char_traits.h:365
365 return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n));
(gdb)

-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : PART002
issued by : G4ParticleTable::CheckReadiness()
Illegal use of G4ParticleTable :
Access to G4ParticleTable for finding a particle or equivalent
operation occurs before G4VUserPhysicsList is instantiated and
assigned to G4RunManager. Such an access is prohibited since
Geant4 version 8.0. To fix this problem, please make sure that
your main() instantiates G4VUserPhysicsList and set it to
G4RunManager before instantiating other user classes such as
G4VUserPrimaryParticleGeneratorAction.
*** Fatal Exception *** core dump ***
**** Track information is not available at this moment
**** Step information is not available at this moment

-------- EEEE -------- G4Exception-END --------- EEEE -------

*** G4Exception: Aborting execution ***

Program received signal SIGABRT, Aborted.
0x00007ffff021418b in raise () from /usr/lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ffff021418b in raise () from /usr/lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff01f3859 in abort () from /usr/lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff083fe66 in G4Exception (originOfException=originOfException@entry=0x7ffff0e19a78 “G4ParticleTable::CheckReadiness()”, exceptionCode=exceptionCode@entry=0x7ffff0e19c43 “PART002”,
severity=severity@entry=FatalException,
description=0x555555b93d80 "Illegal use of G4ParticleTable :\nAccess to G4ParticleTable for finding a particle or equivalent\noperation occurs before G4VUserPhysicsList is instantiated and\nassigned to G4RunManager. Such an access "…) at /home/joa/Disk2/builds/geant4.10.07/source/global/management/src/G4Exception.cc:88
#3 0x00007ffff0da3f47 in G4ParticleTable::CheckReadiness (this=) at /usr/include/c++/9/bits/basic_string.h:2300
#4 0x00007ffff0da3fe2 in G4ParticleTable::FindParticle (this=0x7ffff0e3f4c0 G4ParticleTable::GetParticleTable()::theParticleTable, aPDGEncoding=111)
at /home/joa/Disk2/builds/geant4.10.07/source/particles/management/src/G4ParticleTable.cc:588
#5 0x00007ffff234bc7e in G4VLongitudinalStringDecay::FindParticle (this=this@entry=0x555555b7bdb0, Encoding=Encoding@entry=111)
at /home/joa/Disk2/builds/geant4.10.07/source/processes/hadronic/models/parton_string/hadronization/src/G4VLongitudinalStringDecay.cc:297
#6 0x00007ffff234d7ef in G4VLongitudinalStringDecay::SetMinMasses (this=this@entry=0x555555b7bdb0)
at /home/joa/Disk2/builds/geant4.10.07/source/processes/hadronic/models/parton_string/hadronization/src/G4VLongitudinalStringDecay.cc:623
#7 0x00007ffff234f108 in G4VLongitudinalStringDecay::G4VLongitudinalStringDecay (this=0x555555b7bdb0, name=…)
at /home/joa/Disk2/builds/geant4.10.07/source/processes/hadronic/models/parton_string/hadronization/src/G4VLongitudinalStringDecay.cc:119
#8 0x00007ffff234a2af in G4QGSMFragmentation::G4QGSMFragmentation (this=0x555555b7bdb0) at /usr/include/c++/9/ext/new_allocator.h:89
#9 0x00005555556fb83f in AgataPhysicsList::AgataPhysicsList (this=0x555555b7bd00, name=…, hadr=, lowE=, lowEH=, polar=, lecs=false,
usescreennuclear=false, intern=true, usrDef=false, scuts=false) at /home/joa/Disk2/agata/branches/GANIL/trunk/src/AgataPhysicsList.cc:212
#10 0x00005555555c376e in main (argc=1, argv=0x7fffffffd828) at /usr/include/c++/9/bits/basic_string.h:936
(gdb) quit