-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application freezes after taking many pictures #14
Comments
Does it happen with the demo app? More generally, you may be doing some picture processing in the main thread, try using Grand Dispatch Central to do it in other threads with lower priority. |
I was not able to get down to the bottom of what seems like a deadlock. I am doing some image processing on the main thread. Here is my code:
And here is the method in my UIImage category:
With this code, I would assume that the main thread would only temporarily be blocked until the processing is finished. Am I missing something? |
Yes, it should "just" temporarily freeze your app, which isn't good, but shouldn't stop the app altogether. Try debugging in Xcode by hitting pause when your app gets frozen. Then check the stack trace to see what it was doing. As for the picker, once it calls your |
The application freezes after taking/posting many pictures. UI locks up, basically. No exception, though. Any suggestions on fix?
The text was updated successfully, but these errors were encountered: