I recently attempted to install Allpix Squared locally on a Ubuntu 21.04 virtual machine. I downloaded all of the dependencies, and when I was to run a simulation (specifically, the example.conf configuration file), the framework threw me a segmentation fault (core dumped) error, while initializing the module installations. I tried to allocate more RAM and disk size (probably irrelevant) on my virtual machine but the error persisted. Any possible solutions to this? or possible reasons for the issue?
Thank you very much in advance,
PS: There is no urgency in fixing this issue, I can run simulations via CVMFS, but it would be ideal if I had fully-working local installation.
Thank you a lot for the reply. So with regards to dependency installations:
I built both Geant4 and Root manually (without the use of any package managers), I closely followed these installation instructions for ROOT. The only additional thing that I did was to add the -DCMAKE_CXX_STANDARD=17 flag, to make it compatible with allpix. As for Geant4, I closely followed the instructions on the standard installation manual (I note that I did install a lot of additional requirded dependencies, e.g. qt5 and the Xerces library), with the additional flags suggested from the AllpixSquared User’s Guide. I used the latest version for both ROOT and Geant. For building AllpixSquared, I did:
that all seems to be completely in order and there is nothing I do differently. Indeed the C++17 flag is currently missing from the user manual I shall add that!
great - that solves this mystery then - somehow our MT detection is broken then and we should check how to get it back working - we once had an error message displayed in case MT wasn’t available.
We are now properly checking for this and are printing a warning instead of attempting to instantiate the wrong run manager:
|13:57:25.682| (ERROR) [C:GeometryBuilderGeant4] Geant4 has been built without multithreading support, forcing multithreading off.
To allow multithreading, rebuild Geant4 with the GEANT4_BUILD_MULTITHREADED option enabled.
|13:57:25.686| (STATUS) Loaded 7 modules
|13:57:25.686| (STATUS) Initializing 27 module instantiations
|13:57:25.893| (STATUS) Initialized 27 module instantiations
|13:57:25.893| (ERROR) Multithreading disabled since the current module configuration does not support it
|13:57:25.893| (STATUS) Starting event loop
Also, the documentation has been updated to include not only the MULTIRHEADED flag but also the required CXX17 standard.
I am happy to see that this is now resolved. Sorry for being inactive on this question, but CVMFS worked fine for me and I completely forgot investigating further with gdb. I will recompile Geant4 with the additional flag and I will let you know if it works for me as well (probably during the weekend). It is nice to see that this is going to the next user’s guide!
Just wanted to let you know that I followed closely the updated manual on an Ubuntu 21.04 Virtual Machine, with Geant4-10.07.p02 and ROOT 6.24/06 and everything works flawlessly for me as well. Again, thank you a lot for the fix!