First of all thank you for this library. I'm so excited by what it can do. I've posted this on Stack Overflow, but I thought it should be here as well. I've tried to debug this using the Instruments Time Profiler and looking at threads. I'm just unsure what to look for. Here's my issue:
I can't seem to resolve with a semaphore_wait_trap in a camera app I'm developing. The camera works fine as long as I wait after shooting. If I press the shutter release more than once in a row too quickly I get a deadlock. Here is a picture of all the processes in main thread when it happens.
I'm using the GPUImage framework and I have created a shared camera resource as a singleton. I suspect this may be the culprit. This is how it's initialized:
Hello,
First of all thank you for this library. I'm so excited by what it can do. I've posted this on Stack Overflow, but I thought it should be here as well. I've tried to debug this using the Instruments Time Profiler and looking at threads. I'm just unsure what to look for. Here's my issue:
I can't seem to resolve with a semaphore_wait_trap in a camera app I'm developing. The camera works fine as long as I wait after shooting. If I press the shutter release more than once in a row too quickly I get a deadlock. Here is a picture of all the processes in main thread when it happens.
Here is the backtrace on Thread 1:
I'm using the GPUImage framework and I have created a shared camera resource as a singleton. I suspect this may be the culprit. This is how it's initialized:
In my camera manager singeton I have a capture image method:
And in my camera view controller I have the shutter connected using Interface Builder:
I'm at a loss for why this deadlock is happening. Any guidance would be greatly appreciated!