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

Bandaid for empty operationSetQueue during _mergeAfterSaveWithResult: #1376

Merged
merged 1 commit into from
Dec 10, 2018
Merged

Bandaid for empty operationSetQueue during _mergeAfterSaveWithResult: #1376

merged 1 commit into from
Dec 10, 2018

Conversation

ceramicatheist
Copy link
Contributor

Seen in the wild: many repeated crashes, by just a few users, where _mergeAfterSaveWithResult crashes due to operationSetQueue being empty and assuming that it has at least one item to pop.

No idea what triggers it.

Band-aid: pre-check and, if the queue is empty at this point, add a dummy empty PFOperationSet.

Results: that particular crash no longer appears in our Crashlytics reports. Whether the people in question are now having other difficulties, we don't know. This is obviously a state that shouldn't be reached in the first place, so the band-aid is covering a deeper problem.

ref issue #1262

Copy link
Contributor

@flovilmart flovilmart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s good enough for me.

@flovilmart
Copy link
Contributor

Thanks for the PR! This is not perfect, but good enough for me now

@flovilmart flovilmart merged commit 8740d31 into parse-community:master Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants