Any2HRTF / Mesh2HRTF

Open software for the numerical calculation of head-related transfer functions
European Union Public License 1.2
103 stars 11 forks source link

unhandled std::bad_alloc #104

Closed chris-hld closed 1 year ago

chris-hld commented 1 year ago

Some instances may fail with

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
/bin/sh: line 1: 69311 Aborted                 /scratch/work/holdc1/HUBSI/Mesh2HRTF/mesh2hrtf/NumCalc/bin/NumCalc -istart 94 -iend 94 > NC94-94_log.txt

Not sure where exactly this occurs, but I'll report it here for reference. It might be also possible to handle this from the outside, i.e. in manage_numcalc().

f-brinkmann commented 1 year ago

Might this be a memory issue on the cluster? Can you maybe post or send me NC94-94_log.tx, manage_numcalc_xxx.txt

chris-hld commented 1 year ago

Seems resolved. Increasing the wait time to 60s in combination with the improved RAM handling seems to fix the issue.

f-brinkmann commented 1 year ago

Thanks for checking. I added some more information to the docstring in the hope that it will be easier to catch/understand for others if this issue comes up.