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

bitmaps array crashing the browser on iOs #2

Open
valentinilas opened this issue Apr 27, 2023 · 0 comments
Open

bitmaps array crashing the browser on iOs #2

valentinilas opened this issue Apr 27, 2023 · 0 comments

Comments

@valentinilas
Copy link

Hi man, I've been playing around with your code and tried to stress test it a bit.

I noticed that when fetching the image sequence from the server and then pushing them to the calls array as bitmaps, using createImageBitmap(blob).

If the array is too large and you open the page in Safari on iOs, it will crash the browser.

I found that using document.createElement('img') instead of createImageBitmap works better, the browser no longer crashes. However, I'm not sure if this is any good from an efficiency point of view.

I wonder if it's something to do with memory size limits on iOS.

Any idea what's going on?

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

No branches or pull requests

1 participant