-
-
Notifications
You must be signed in to change notification settings - Fork 875
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
Deadlock #398
Comments
Hey @xissburg, thanks for the report. Stack trace here is definetly helpful. |
It looks like I will have to upgrade my project to Swift 2 and Xcode 7 first. |
I am almost sure everything is still going to work on Swift 1.2 and Xcode 6.4 with the current latest version, but let me know if it doesn't. |
I get the same problem described in this issue #298. |
I'm getting lots of Deadlocking as well. Next time I replicate, I'll post a stacktrace. |
Here's the stack trace - https://gist.github.com/kevflynn/3deb9da4628a48e49ec0 |
Thanks for the trace. Any chance you can post the output from all threads ( |
I'm also seeing similar deadlock issues. Here is the BT: https://gist.github.com/rudywen/31ec2f54574be20784ab This issue is blocking our app release. Is there anything we can do to help debug the issue? |
@rudywen That deadlock is actually not directly Parse's fault. What's happening here is that every thread in the default thread pool (usually there's 16 threads in the thread pool for iOS/OSX) is waiting on a task to be run in the same thread pool (in this case, it's attempting to create the PFFIle cache directory if necessary), but because all thread pools are going attempting to wait on the same thing at the same time, there's no thread available from the system to attempt to create the directory. You should probably rethink your architecture if you're trying to concurrently download so many parse files, or use your own network/caching stack using |
@richardjrossiii is right on this one, it's purely too many files being downloaded at the same time. |
@richardjrossiii @nlutsenko Thanks for the suggestions. We'll correct it on our end. |
After upgrading to Parse 1.9.0 I haven't experienced this issue again. Thanks for the great job guys! |
Glad it helped! |
I have no idea how and why this is happening but it's happening. Quite frequently now. It happens in different places, in different situations. I don't know an exact sequence of steps to reproduce. Here's a full backtrace: https://gist.github.com/xissburg/a65549d78abbe0a8572f
I am just accessing a PFObject property and the deadlock happens.
The text was updated successfully, but these errors were encountered: