[Bug] std::bad_alloc and core dumped
See original GitHub issueDescription
Run results in std::bad_alloc
and core dump.
(spleeter-cpu) abe@mill:~/git/github/deezer$ spleeter separate -i ~/play/music/bin/BOY\ HARSHER\ -\ Fate-1162083825.mp3 -p spleeter:2stems -o boyharsher
OMP: Info #212: KMP_AFFINITY: decoding x2APIC ids.
OMP: Info #210: KMP_AFFINITY: Affinity capable, using global cpuid leaf 11 info
OMP: Info #154: KMP_AFFINITY: Initial OS proc set respected: 0-3
OMP: Info #156: KMP_AFFINITY: 4 available OS procs
OMP: Info #157: KMP_AFFINITY: Uniform topology
OMP: Info #179: KMP_AFFINITY: 1 packages x 4 cores/pkg x 1 threads/core (4 total cores)
OMP: Info #214: KMP_AFFINITY: OS proc to physical thread map:
OMP: Info #171: KMP_AFFINITY: OS proc 0 maps to package 0 core 0
OMP: Info #171: KMP_AFFINITY: OS proc 1 maps to package 0 core 1
OMP: Info #171: KMP_AFFINITY: OS proc 2 maps to package 0 core 2
OMP: Info #171: KMP_AFFINITY: OS proc 3 maps to package 0 core 3
OMP: Info #250: KMP_AFFINITY: pid 17599 tid 17599 thread 0 bound to OS proc set 0
OMP: Info #250: KMP_AFFINITY: pid 17599 tid 17842 thread 1 bound to OS proc set 1
INFO:spleeter:Loading audio b'/home/abe/play/music/bin/BOY HARSHER - Fate-1162083825.mp3' from 0.0 to 600.0
INFO:spleeter:Audio data loaded successfully
OMP: Info #250: KMP_AFFINITY: pid 17599 tid 17841 thread 2 bound to OS proc set 2
OMP: Info #250: KMP_AFFINITY: pid 17599 tid 17873 thread 3 bound to OS proc set 3
OMP: Info #250: KMP_AFFINITY: pid 17599 tid 17874 thread 4 bound to OS proc set 0
OMP: Info #250: KMP_AFFINITY: pid 17599 tid 17875 thread 5 bound to OS proc set 1
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
The song is Boy Harsher’s “Fate”.
Step to reproduce
youtube-dl 'https://boyharsher.bandcamp.com/track/fate'
conda activate spleeter-cpu
spleeter separate -i ./BOY\ HARSHER\ -\ Fate-1162083825.mp3 -p spleeter:2stems -o boyharsher
Output
(base) abe@mill:~/git/github/deezer$ conda activate spleeter-cpu
(spleeter-cpu) abe@mill:~/git/github/deezer$ spleeter separate -i ./BOY\ HARSHER\ -\ Fate-1162083825.mp3 -p spleeter:2stems -o boy^C
(spleeter-cpu) abe@mill:~/git/github/deezer$ spleeter separate -i ./BOY\ HARSHER\ -\ Fate-1162083825.mp3 -p spleeter:2stems -o boy
OMP: Info #212: KMP_AFFINITY: decoding x2APIC ids.
OMP: Info #210: KMP_AFFINITY: Affinity capable, using global cpuid leaf 11 info
OMP: Info #154: KMP_AFFINITY: Initial OS proc set respected: 0-3
OMP: Info #156: KMP_AFFINITY: 4 available OS procs
OMP: Info #157: KMP_AFFINITY: Uniform topology
OMP: Info #179: KMP_AFFINITY: 1 packages x 4 cores/pkg x 1 threads/core (4 total cores)
OMP: Info #214: KMP_AFFINITY: OS proc to physical thread map:
OMP: Info #171: KMP_AFFINITY: OS proc 0 maps to package 0 core 0
OMP: Info #171: KMP_AFFINITY: OS proc 1 maps to package 0 core 1
OMP: Info #171: KMP_AFFINITY: OS proc 2 maps to package 0 core 2
OMP: Info #171: KMP_AFFINITY: OS proc 3 maps to package 0 core 3
OMP: Info #250: KMP_AFFINITY: pid 18464 tid 18464 thread 0 bound to OS proc set 0
OMP: Info #250: KMP_AFFINITY: pid 18464 tid 18519 thread 1 bound to OS proc set 1
INFO:spleeter:Loading audio b'./BOY HARSHER - Fate-1162083825.mp3' from 0.0 to 600.0
INFO:spleeter:Audio data loaded successfully
OMP: Info #250: KMP_AFFINITY: pid 18464 tid 18518 thread 2 bound to OS proc set 2
OMP: Info #250: KMP_AFFINITY: pid 18464 tid 18555 thread 3 bound to OS proc set 3
OMP: Info #250: KMP_AFFINITY: pid 18464 tid 18556 thread 4 bound to OS proc set 0
OMP: Info #250: KMP_AFFINITY: pid 18464 tid 18557 thread 5 bound to OS proc set 1
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
Environment
OS | Linux “Ubuntu 16.04.6 LTS” |
Installation type | Conda 4.7.12 |
RAM available | Mem: 8043652 2265104 4506872 394280 1271676 5052192, Swap: 8257532 2849108 5408424 |
Hardware spec | no GPU, 4 CPUs (Intel® Core™ i5-3330 CPU @ 3.00GHz) |
Additional context
I followed the quick start
guide from the repo.
The test mp3
that came with the repo successfully ran.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
c++: what(): std::bad_alloc error - Stack Overflow
I got the above error when my size was 9033 and this loop got stuck at 5923. I think memory should not be...
Read more >terminate called after throwing an instance of 'std::bad_alloc?
std ::bad_alloc is the C++ error code for when a new operator tries to allocate something, but fails. As C++ cannot dynamically allocate ......
Read more >Bug #1594344 “lshw crashes with 'std::bad_alloc' and core ...
lshw crashes with 'std::bad_alloc' and core dump if not run as root. Bug #1594344 reported by Byte Commander on 2016-06-20.
Read more >IJ10792: CRASH DURING COMPILATION WITH STD - IBM
Error Message: The JVM core dumps with the current thread running a compilation. The stderr output indicates the JVM crashed due to an...
Read more >1706 – SparseMatrix reallocation throws std::bad_alloc when ...
Bug 1706 - SparseMatrix reallocation throws std::bad_alloc when ... of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped) ``` The ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am seeing this too with the docker image. I can split the test audio file but all other files regardless how they are encoded fail with
terminate called after throwing an instance of ‘std::bad_alloc’ what(): std::bad_alloc
@mickdekkers I reduced the track length to 60 seconds and it worked, so looks like you are right. Will need to test it some more. Thanks for the tip.