I try to rebuild my G4 application as a multithread one. Originally it was compiled under Windows as a single-thread one and worked fine. Recently, I migrated to Ubuntu and try to change it to a multithreading application.
I did the required changes in the code to “G4MTRunManager”, “ConstructSDandField” etc…
Generally, it works but it crashed at exit at G4UIManager::GetCommansStack() with the message “Error: Index was outside the bounds of the array”
Did somebody experience this?