processing / processing-sound-archive

Archived Sound Library for Processing
125 stars 62 forks source link

Crash when escape a sketch #104

Open knupel opened 7 years ago

knupel commented 7 years ago

Hello, I move from Minim to Sound Libray yesterday, I've a problem to escape the sketch when I quit this one, all time I've a crash Message, and some time Java Runtime quit too, and I must relaunch.

I write a code to quit properly the sketch but same result.

void quit() {
  if(QUIT) {
    in.stop() ;
    exit() ;
  }
}

boolean QUIT ;
void keyPressed() {
  if (key == ESC) {
    key = 0 ;
    QUIT = true ;
  }
}

I try to find a guide with method like a Javadoc to find something, but I don't find this guide.

Processing 3.3 / OS sierra / iMac 2012

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000012467d04e, pid=88245, tid=0x0000000000016a03
#
# JRE version: Java(TM) SE Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libmethcla.dylib+0x5604e]  remove_free_block+0x3e
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/stanislasmarcais/hs_err_pid88245.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Could not run the sketch (Target VM failed to initialize).
Make sure that you haven't set the maximum available memory too high.
For more information, read revisions.txt and Help → Troubleshooting.
wirsing commented 7 years ago

hi @StanLepunK could you post a full example which I can try out and reproduce the error? thanks!