UI Command Causing Crash

Hi! I’m putting together my first Geant4 code from scratch, and the application runs up until the point in my main.cc script where the UImanager->ApplyCommand line is in the main.cc, at which point it crashes when run in both UI and batch modes. I have commented out this line in the UI mode and tried to run commands such as /run/initialize directly in the window, but this still crashes. The terminal says ‘segmentation fault:11’ upon crash. Any ideas what the issue is here would be appreciated!!

Update to this: I think it is the /run/initialize line that is crashing the system. Does this just indicate a fundamental error somewhere within the code?

It does indicate; yes. Check if you pass a nullptr somewhere as an object pointer, e.g., to some Action Init.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.