Hey,
It’s been a year without using processing and now I have a render crash and don’t know what’s happening.
It just crash when I touch a knob, with this Java error.
A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fff41f63f34, pid=4516, tid=0x000000000000f907
#
# JRE version: Java(TM) SE Runtime Environment (8.0_202-b08) (build 1.8.0_202-b08)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.202-b08 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libGL.dylib+0x4f34] glBindBuffer+0x12
#
# 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/ernestbioscarojas/hs_err_pid4516.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help → Troubleshooting.
I’m using processing 3.5.3 on IOS 10.13.6, and using MiniBus library to conenct a midi input and oscP5.
My code is just the start, but can’t progress with this error.
import themidibus.*; //Import the library
MidiBus myBus; // The MidiBus
import codeanticode.syphon.*;
SyphonServer server;
void setup() {
size(600, 600, P2D);
background(0);
server = new SyphonServer(this, "Processing Syphon");
MidiBus.list();
myBus = new MidiBus(this, 0, 1);
}
void draw() {
//background(0);
int channel = 0;
int pitch = 64;
int velocity = 127;
int number = 0;
int value = 90;
myBus.sendNoteOn(channel, pitch, velocity); // Send a Midi noteOn
delay(100);
myBus.sendNoteOff(channel, pitch, velocity); // Send a Midi nodeOff
myBus.sendControllerChange(channel, number, value); // Send a controllerChange
delay(100);
server.sendScreen();
}
void noteOn(int channel, int pitch, int velocity) {
// Receive a noteOn
println();
println("Note On:");
println("--------");
println("Channel:"+channel);
println("Pitch:"+pitch);
println("Velocity:"+velocity);
}
void noteOff(int channel, int pitch, int velocity) {
// Receive a noteOff
println();
println("Note Off:");
println("--------");
println("Channel:"+channel);
println("Pitch:"+pitch);
println("Velocity:"+velocity);
}
void controllerChange(int channel, int number, int value) {
// Receive a controllerChange
println();
println("Controller Change:");
println("--------");
println("Channel:"+channel);
println("Number:"+number);
println("Value:"+value);
if (number == 48){
fill(204);
float y = map(value, 0, 127, 0, height);
ellipse(width/2, height/2, y*2, y*2);
}
}
void delay(int time) {
int current = millis();
while (millis () < current+time) Thread.yield();
}
Sure it’s simple, but I can catch it.
I apreciate any help and knowledge.