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

🐞 [Bug] UIPageViewController crash fix #768

Merged
merged 3 commits into from Jul 26, 2019

Conversation

justinswart
Copy link
Contributor

@justinswart justinswart commented Jul 24, 2019

πŸ“² What

Attempts to fix an escalating crash that we've been seeing in our crash reports which appear to be linked to setViewControllers being called during a page transition. Although I have not been able to reproduce this crash myself, this is my suggested fix which I'd like to ship with the next release to see if it brings the reported crashes down.

πŸ€” Why

This crash has been rising in our crash reports (link below).

πŸ›  How

  • Added a ksr_setViewControllers extention to UIPageViewController which ensures this is always executed on the main thread.

πŸ‘€ See

https://fabric.io/kickstarter2/ios/apps/com.kickstarter.kickstarter/issues/5b8409046007d59fcdf6275f?time=last-seven-days
https://stackoverflow.com/questions/25740245/assertion-failure-in-uipageviewcontroller

βœ… Acceptance criteria

  • No regression on current functionality in the 3 affected VCs.

@justinswart
Copy link
Contributor Author

@justinswart justinswart merged commit 10094d1 into master Jul 26, 2019
@justinswart justinswart deleted the pageviewcontroller-crash-fix branch July 26, 2019 22:20
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.

None yet

2 participants