< Back to IRCAM Forum

Bug "error: can't allocate region" with supervp

Hi all,

I am writing to report a bug using generalized cross-synthesis: for some parameters and file combinations, I get the following message:

supervp(1649,0xb0093000) malloc: *** mach_vm_map(size=8388608) failed (error code=3)
*** error: can’t allocate region
*** set a breakpoint in malloc_error_break to debug
std::bad_alloc
std::bad_alloc

I was not able yet to really find out exactly which kind of soundfiles make supervp stop, but I can give you examples (the original sound files are attached to this post):

1/ The following command (cross-synthesis of a sound file with itself, transients detection enabled) makes supervp crash:

supervp -t -Z -norm -SVibra-Fa6.aif -sVibra-Fa6.aif -M0.341333001852036s -m0.341333001852036s -oversamp 8 -Wblackman -wblackman -Afft -afft -P1 -p1 -N16384 -Gcross -X0 -x0 -Y0.280000001192093 -y0.720000028610229 -q1 -cross_exp 1 Vibra-Fa6-out-withTransientDetection.aif

2/ The following command (the same as 1/ without transients detection enabled) is processed without problem:

supervp -t -Z -norm -SVibra-Fa6.aif -sVibra-Fa6.aif -M0.341333001852036s -m0.341333001852036s -oversamp 8 -Wblackman -wblackman -Afft -afft -P0 -p0 -N16384 -Gcross -X0 -x0 -Y0.280000001192093 -y0.720000028610229 -q1 -cross_exp 1 Vibra-Fa6-out-noTransientDetection.aif

3/ The following command (same 2nd source file and parameters as 1/, different 1st source file) runs without problem:

supervp -t -Z -norm -SVc-on-bridge.aif -sVibra-Fa6.aif -M0.341333001852036s -m0.341333001852036s -oversamp 8 -Wblackman -wblackman -Afft -afft -P1 -p1 -N16384 -Gcross -X0 -x0 -Y0.280000001192093 -y0.720000028610229 -q1 -cross_exp 1 SF-out-withTransientDetection.aif

Best,

Alexis

Vc-on-bridge.aif (1020 KB)

Hello Alexis,

Many thanks for the detailed report. I was able to reproduce your problem. We’ll see how to fix it.

Best
Axel