haxenme / nme

A cross-platform native backend for Haxe projects
MIT License
479 stars 122 forks source link

Fix crash on iOS 13 after screen device unlock #694

Closed Beeblerox closed 3 years ago

Beeblerox commented 3 years ago

We had a problem on iOS 13 (and only on this version) when our application crashed after unlocking device screen after some time (about 1 minute or so): the app crashes with OpenGL resize failed exception which occurs only in createOGLFramebuffer method. I've googled info about potential source of the issue and found this thread on Apple developers forum. Suggested solution was to remove framebuffer update logic from layoutSublayers. So i've made similar changes in UIStageView and crash had gone. We also checked how it works on other iOS versions (12 and 14) and it works there fine too.

hughsando commented 3 years ago

looks good, thanks.