Kinect Crashing: EXC_BAD_ACCESS (SIGBUS) / KERN_PROTECTION_FAILURE
in
Integration and Hardware
•
2 years ago
hi processing community,
i've seen this exception discussed before in the forum, but i think this is a unique situation?...
i'm exhibiting an interactive work and consistently getting a crash at ~4 hours into running my processing app. i'm using a kinect camera with
shiffman's library to capture motion and optical flow to translate that movement into the system.
the application is running on a brand new mac mini (Model: Macmini5,2, Intel Core i5, 2.5 GHz, 4 GB) with lion and the latest installation of java, everything's updated. it runs great and everything's perfect for the first 4 hours and then it just crashes with an unexpectedly quit message and the java error report of
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
i think the biggest hint is that in the previous version that i had working fine at 8hours+ i was using frameRate(30) in setup(), and now i'm not using frameRate() at all because it made the movement more fluid. thought maybe this was causing a memory leak, but added in a
if (Runtime.getRuntime().freeMemory() < 10000000) {
System.gc();
}
and it still crashed. for people that get this error, how can you figure out what the problem is?
any ideas on what might be going on here? i have the full error log if that helps. thanks in advance...
1