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

Possible memory leak when refreshing the page #1006

Open
yaustar opened this issue Mar 27, 2023 · 6 comments
Open

Possible memory leak when refreshing the page #1006

yaustar opened this issue Mar 27, 2023 · 6 comments
Labels
bug Something isn't working 🔥‎

Comments

@yaustar
Copy link
Contributor

yaustar commented Mar 27, 2023

On iOS 16.3.1, refreshing a page multiple times will eventually cause a black screen on load and the page is locked. To load more WebGL content, the user must quit Safari and start it again.

Example. See top of the screen where we have content rendered until the last refresh where it's just black
https://user-images.githubusercontent.com/16639049/227916963-acbe769a-5898-425f-8ab4-a77951382b3a.mp4

Build: https://playcanv.as/p/S2r8lFwv/

Forum post: https://forum.playcanvas.com/t/ios-ipados-16-3-webgl-via-metal-feature-issue/30242/
Possible related issue in the Editor: #998

@yaustar yaustar added bug Something isn't working 🔥🔥‎ labels Mar 27, 2023
@yaustar
Copy link
Contributor Author

yaustar commented Mar 27, 2023

Tried to reproduce on three.js examples and have been unable to so far.

Also interestingly, I've been unable to reproduce with https://playcanvas.github.io/#/graphics/lights-baked-a-o

Maybe it's a hosting issue somehow on PlayCanvas.com/playcanv.as?

@yaustar
Copy link
Contributor Author

yaustar commented Mar 27, 2023

I've uploaded the same build that crashes the tab to https://yaustar.github.io/test-16.3.1-vConsole/

And that doesn't cause the tab to crash which feels more like an infrastructure issue somehow?

@yaustar yaustar transferred this issue from playcanvas/engine Mar 27, 2023
@willeastcott
Copy link
Contributor

willeastcott commented Mar 27, 2023

Can you repro this if you use the embed links? So: https://playcanv.as/e/p/S2r8lFwv/

I'm wondering if it's related to the iframe.

@yaustar
Copy link
Contributor Author

yaustar commented Mar 28, 2023

The OP in the forum said it still crashed, but I couldn't get the iframeless version to crash myself.

@LeXXik
Copy link

LeXXik commented Apr 12, 2023

Just before crashing out of memory, my debugger paused here. It was after a refresh, almost immediately after app loaded and I had a few frames on screen. Might not be related, but adding here anyway:

image

@LeXXik
Copy link

LeXXik commented May 2, 2023

Another one, crashing right after refresh. This time stopped at draco Wasm. Heap was at around 4 Gb.

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🔥‎
Projects
None yet
Development

No branches or pull requests

3 participants