Dear all experts,
I am trying to run my simulation to generate events and record in the root file, but this error is always showing…
My mentor provided me the source codes, including main.cc file, DetectorConstruction, PrimaryGeneratorAction, Recorder, and so on.
But she was using an old Geant4 version 10.05 and I am very new to Geant4, I was wonder if these errors are caused because of the gap of Geant4 versions, like some header files of Geant4 classes are different, new, or removed in my source codes.
Please guide me to figure it out, thanks for helping
### Run 0 starts.
### Run 0 start.
Create ROOT file to record data ......
G4WT4 > ### Run 0 starts on worker thread 4.
G4WT3 > ### Run 0 starts on worker thread 3.
G4WT7 > ### Run 0 starts on worker thread 7.
G4WT5 > ### Run 0 starts on worker thread 5.
G4WT5 > ### Run 0 start.
G4WT2 > ### Run 0 starts on worker thread 2.
G4WT5 > Create ROOT file to record data ......
G4WT1 > ### Run 0 starts on worker thread 1.
G4WT4 > ### Run 0 start.
G4WT4 > Create ROOT file to record data ......
G4WT3 > ### Run 0 start.
G4WT7 > ### Run 0 start.
G4WT7 > Create ROOT file to record data ......
G4WT6 > ### Run 0 starts on worker thread 6.
G4WT6 > ### Run 0 start.
G4WT6 > Create ROOT file to record data ......
G4WT1 > ### Run 0 start.
G4WT1 > Create ROOT file to record data ......
G4WT2 > ### Run 0 start.
sim(62396,0x16d4b3000) malloc: *** error for object 0x60000344a600: pointer being freed was not allocated
G4WT0 > ### Run 0 starts on worker thread 0.
sim(62396,0x16d4b3000) malloc: *** set a breakpoint in malloc_error_break to debug
G4WT2 > Create ROOT file to record data ......
G4WT3 > Create ROOT file to record data ......
G4WT0 > ### Run 0 start.
G4WT0 > Create ROOT file to record data ......
G4WT5 > --> Event 0 starts with initial seeds (15470735,58711377).
G4WT5 >
event: 0
Geant4 Version: 11.3.0
Operating System: macOS Sonoma 14.7.6
Compiler/Version: Apple clang Xcode 16.2
CMake Version: 4.0.3
ROOT Version: 6.36.00