I've created an application for the Freon DSP that runs audio in one thread and video in another. Everything seems to run fine for several minutes, but the audio thread eventually crashes. Unfortunately, it does not return an error code or print an error message to a log. Instead, it just seems to lock up in one of my SIO_issue/reclaim calls and consume a lot of cycles. My CPU utilization jumps to 100%, but the video thread is still able to run at a reduced framerate. The only clue I have as to what might be happening is this message, which appears in the "Excecution Graph Details" log:
1725628 SWI: end KNL_swi (TSK scheduler) (0xc0877510) state = , ERROR: Invalid thread state transition
I'm attaching my source code to this post. If you run it, it should seem fine for several minutes. You will hear audio loop back, and video is passed through with Sobel edge detection applied. Then, several minutes later, the audio will cut out and the video framerate will drop. At this point, you will be able to insert breakpoints in the video thread, but not in the audio thread.