Open nuclearGoblin opened 1 month ago
Reducing the length by an order of magnitude (1000000000000 instead of 10000000000000) makes the error a bit more clear (same place, no -v2
flag for brevity):
Seed used: 657501263
MT Result: 0.319352
terminate called after throwing an instance of 'std::length_error'
what(): cannot create std::vector larger than max_size()
fish: Job 1, 'realizeCascades -n 100000000000…' terminated by signal SIGABRT (Abort)
At some point in the past we were able to generate larger files -- not sure what has changed? Anyway, we should probably write code that detects the size issue and does one of the following:
I am submitting a bug report.
This bug occurs in: realizeCascades
Expected behavior: realizeCascades should run without crashing.
Current behavior: realizeCascades instead terminates by
SIGABRT
after throwingstd::bad_alloc
.Steps to reproduce:
realizeCascades -n 10000000000000 -o ~/Si_big_file.root ~/git/nrCascadeSim/levelfiles/v3_natSi.txt
Other Information: It is unclear what part of the process is causing this signal. At first glance, it appears to be able to read the levelfile file but not to produce any data before crashing.
Relevant Output: Output with
-v2
flag added below: