Skip to content
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 on mutation #81

Closed
graylikeme opened this issue Oct 9, 2018 · 3 comments
Closed

Deadlock on mutation #81

graylikeme opened this issue Oct 9, 2018 · 3 comments
Assignees
Labels
bug Something isn't working closing-soon-if-no-response This issue will be closed in 7 days unless further comments are made. requesting info Further information is needed before this is actionable

Comments

@graylikeme
Copy link

Describe the bug
I have a case where I have to fire mutations every few seconds. In a case when there are over 2 mutations and you go to background and then back to foreground the app is being deadlocked permanently (main thread is locked). The only way to fix the deadlock is to completely remove the app from the device and then install again.

To Reproduce
Steps to reproduce the behavior:

  1. Every 2 seconds fire 2 similar mutations (destroy client on entering background and recreate on getting back to foreground)
  2. Transfer app to background
  3. Bring the app back to the foreground
  4. You should see that the interface became unresponsive and upon pausing with the debugger there should be a stack trace.

Expected behavior
Shouldn't deadlock

Screenshots
image

Environment(please complete the following information):

  • AppSync SDK Version: [2.6.21]
  • Dependency Manager: [Carthage]
  • Swift Version : [4.2]

Device Information (please complete the following information):

  • Device: [iPhone7]
  • iOS Version: [iOS 12.0]
@frankmuellr frankmuellr added AppSync bug Something isn't working labels Oct 9, 2018
@palpatim palpatim assigned palpatim and unassigned scb01 and rohandubal Nov 12, 2018
@larryonoff
Copy link
Contributor

#109 may fix your issue

@palpatim palpatim added the pending-release Work is done, but issue can't be closed since the changes were not released yet label Jan 3, 2019
@palpatim
Copy link
Contributor

This should be fixed on 2.9.0. Please let us know if you continue to have any problems.

@palpatim palpatim added requesting info Further information is needed before this is actionable closing-soon-if-no-response This issue will be closed in 7 days unless further comments are made. and removed pending-release Work is done, but issue can't be closed since the changes were not released yet labels Jan 10, 2019
@stale
Copy link

stale bot commented Jan 18, 2019

This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.

@stale stale bot closed this as completed Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working closing-soon-if-no-response This issue will be closed in 7 days unless further comments are made. requesting info Further information is needed before this is actionable
Projects
None yet
Development

No branches or pull requests

6 participants