Sound library crashing with std::bad_alloc

Hello all,

I'm interested in using processing.sound.* in some projects, but the examples crash. I'm running Processing 3.3.6 on Windows 32 bit. I can include the library without error, but I get a crash when I try to instantiate any of the Noise or Oscillator classes e.g. with the example code at https://processing.org/reference/libraries/sound/WhiteNoise.html

terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help ? Troubleshooting.

Tagged:

Answers

  • I will suggest you try the Minim library. You need to isntall it first through the library manager In the Processing IDE.

    Kf

Sign In or Register to comment.