processing-sound-archive icon indicating copy to clipboard operation
processing-sound-archive copied to clipboard

FFT crashes Java

Open Galbi3000 opened this issue 8 years ago • 3 comments

Hi, I just started using Processing yesterday and decided to try out the sound library today.

I noticed while playing about with the FFT example that changing the number of bands to values that are not powers of 2 (2, 4, 8, 16, 32, 64, 128, 256, etc) will crash Java with the following error in the sketchbook console:

Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help ? Troubleshooting.

I am running the Windows version of Processing on Windows 10 Pro 64-bit with Java 8 runtime version 1.8.0_102-b14 installed for both 32-bit and 64-bit.

Galbi3000 avatar Dec 13 '16 04:12 Galbi3000

I also have issues when running the FFT example:

Problematic frame:
# C  [libmethcla.dylib+0x5604e]  remove_free_block+0x3e

Seems that this is the same error as #85 (and also reported elsewhere eg https://github.com/processing/processing-docs/issues/407), how can we solve or at least investigate this?

benparsons avatar Feb 14 '17 13:02 benparsons

@Galbi3000 FFT bands always have to be power 2 in processing sound. Bare FFT won't work if you don't pass blocks of power of 2 to it. I'll update the examples and help files. thanks!

wirsing avatar Aug 09 '17 15:08 wirsing

@benparsons could you post system + machine info? thx!

wirsing avatar Aug 09 '17 15:08 wirsing