I have written an openFrameworks application in Xcode which communicates with an Arduino Nano board using ofArduino.cpp.
When I first start up my computer, then the first time I compile the code it works fine, and the application runs and can be closed as expected. However, if I then compile/launch the app again, the whole system crashes and I have to turn the computer off by holding down the power button.
When this happens, it SOMETIMES flashes up with this error:
GBD: Program received signal: “EXC_BAD_ACCESS”
But this is not consistent, and appears in a different place each time (sometimes in the ofArduino.cpp file, sometimes in the ofTrueTypeFont code…)
Program received signal: EXC_BAD_ACCESS.
sharedlibrary apply-load-rules all
warning: Could not find object file “/Users/theo/Documents/CODE/__OPENFRAMEWORKS/SANDBOX/COMPILE_LIBRARIES/buildGlutFramework/libForeground.a(macx_foreground.o)” - no debug information available for “/Users/mcast/Code/GLUT-ToPost/macx_foreground.m”.
warning: Could not find object file “/Developer/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_eprintf.o)” - no debug information available for “/var/tmp/gcc/gcc-5493~1/src/gcc/libgcc2.c”.
And Xcode is pointing to line 453 of ofArduino and processSysExData method.
I have the same problem “EXC_BAD_ACCESS” on line 506 of ofArduino.cpp. I’m using of 0.8.1. on Yosemite.
Any idea?
It appears 8 times on 10, when i run my app.
Hi Zach, the code is from the example “firmataExample”. I just changed the string of my serial port. Sometimes works, sometimes not.
But here you can find the code of my project and there is the same problem: