question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application crash on multiple stage resize on ios devices

See original GitHub issue

Something 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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
selirion04commented, Nov 18, 2020

Any workaround for this?

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

1reaction
selirion04commented, Jan 15, 2021

ios 14.3 released, canvas resize fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application crash on multiple stage resize on ios devices #6987
The resizing of the renderer increases the memory usage each time, until it runs out of memory and crashes. On a new iPad...
Read more >
Crash in app window resizing code | Apple Developer Forums
When I enable resizing of app window in our macOS app, (new?) users get a crash at launch that I can't reproduce. On...
Read more >
How to Fix Crashing Apps on an iPhone or Android?
10 Solutions to fix App Crashes and Keep Apps Running: For Apple iPhone, Samsung Galaxy, LG, Lenovo and Sony Xperia smartphones. If you've...
Read more >
iOS development app startup crash - iphone - Stack Overflow
The most weird thing is, the crashing issue starts exactly the same time on both different device, but the "no-problem interval" is never...
Read more >
iPadOS 16 Stage Manager: How to Arrange, Resize and ...
iPadOS 16 is available today! It's the one feature in iPadOS 16 that has the actual potential to change the way you use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found