I’m using a thread to load a sequence of images one-by-one with timed delay and extract pixel color for use elsewhere in my app. I have 5 images (all 360x360 JPG files) in a source folder that I’m loading one by one at sixty second intervals.
The app runs through the loop multiple times, then unexpectedly crashes at unpredictable points.
The crash report shows:
Crashed Thread: 3 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000001198e0000 Exception Note: EXC_CORPSE_NOTIFY
with the culprit being:
0 cc.openFrameworks.ofapp 0x000000010fba2726 ofPixels_<unsigned char>::Pixel::getColor() const + 502 1 cc.openFrameworks.ofapp 0x000000010fba2520 ofPixels_<unsigned char>::getColor(int, int) const + 128
as I mentioned, the images themselves don’t appear to be corrupted in any way, and each image loads several times before the crash eventually happens.
Anyone experienced anything like this before?