Application crash on multiple stage resize on ios devices
See original GitHub issueSomething goes wrong on app.renderer.resize in safari or chrome on ios. Usual case for stage resize is device orientation change. App crash happened after 3-4 rotations. Here is example which just resize stage every 0.7s: https://codepen.io/Insi04/pen/XWKxwOe It crashed on ios devices after 3-10 cycles. Not reproduced on android or windows.
So, looks ios-side, but maybe any workarounds or other ideas:)
UPD: also reproduced on v4 (but maybe more iterations because of no autoDensity setting - more pixels more leaks i think) https://codepen.io/Insi04/pen/OJXaLLo UPD2: check samples without pixi: resizing empty canvas, canvas with 2d content, canvas with simple webgl content, canvas examples from https://webglsamples.org - no crashes found. UPD3: not reproduced on ios 13.6
Environment
pixi.js
version: 5.3.3, 4.4.4- Browser & Version: Chrome 86, Safari 14.1
- OS & Version: iOS 14.1, 14.2
- Running Example: https://codepen.io/Insi04/pen/XWKxwOe
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
As I think the only way is not resize canvas, e.g. create square oversized canvas and use just part of it for your render. But it will produce performance issues I think. Also you could investigate dependencies of crash, because its different on different apps - I need just 2-3 rotations in my app.
UPD: just checked ios 14.3 public beta - it’s already fixed
ios 14.3 released, canvas resize fixed.