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

Crash in TabmanViewController.calculateRequiredInsets() #449

Closed
3 tasks done
sasojadrovski opened this issue Aug 7, 2019 · 3 comments · Fixed by #487
Closed
3 tasks done

Crash in TabmanViewController.calculateRequiredInsets() #449

sasojadrovski opened this issue Aug 7, 2019 · 3 comments · Fixed by #487

Comments

@sasojadrovski
Copy link

New Issue Checklist

Issue Description

Hi @msaps,

Once again, thank you for this great library and for continuing your great work on it, which also includes exceptional support. Keep it up! 🎉

Recently I've noticed a lot of crashes that seem to have something to do with the calculateRequiredInsets method. From the crash logs it also seems like it invokes an indefinite loop of some sort. I can also say that 100% of the crashes happened on an iPhone X, 99% of which happen on iOS 11 and 1% on iOS 12. Also, 25% of the devices are Jailbroken.

It looks like that calling tabmanViewController.view.layoutIfNeeded() in the for(tabmanViewController:) method might cause the indefinite cycle.

I would appreciate if you could take a look into this. Unfortunately, except for the crashlogs, I am unable to provide a sample app that demonstrates the crash, since I cannot seem to reproduce it on my end.

Other useful things

Stack trace

I have attached a raw text file of the stack trace. Hope it helps.

Looking forward to hearing from you.

Cheers!

@sasojadrovski
Copy link
Author

Just to add, a similar crash has been noticed on iPhone XS Max, 100% on iOS 12, all devices are non jailbroken.

This time, the crash happens in TabmanViewController on line 376 inside setNeedsInsetsUpdate(to:), and once again, an indefinite cycle occurs.

I hope this feedback helps. :)

@msaps
Copy link
Member

msaps commented Aug 24, 2019

@sasojadrovski thanks for all the info - will take a look and try and get this fixed 👍

@msaps msaps added this to the 2.5.1 milestone Aug 24, 2019
@sasojadrovski
Copy link
Author

@sasojadrovski thanks for all the info - will take a look and try and get this fixed 👍

You are welcome! Thank you very much for looking into this and please feel free to let me know if you need anything else or if there's something I could do to help :)

@msaps msaps modified the milestones: 2.6.0, 2.6.1 Sep 11, 2019
@msaps msaps closed this as completed in #487 Jan 2, 2020
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 a pull request may close this issue.

2 participants