Closed as-com closed 5 years ago
Bump?
@as-com included a sauce recording :).. Thank you this is very helpful https://saucelabs.com/tests/8b3f6c5ed6d94838bd739c8762716f87
Browser Chrome 40 OS Windows 8.1
Reloading the project in the sauce video causes google chrome to crash .
Firefox 35 freezes
The issue here is that the player is literally sending 4,000 or so requests all at once. This causes the errors and crashing.
For a visualization of this, I created a HAR (download: https://owncloud.andrewsun.com/public.php?service=files&t=25ad4f17c53e86816c2cd960512524cb) that can be visualized here: http://www.softwareishard.com/har/viewer/. There is a wall of requests for the project assets, which is bad.
I think the solution is to make the player send a small batch of requests, maybe 100, wait for them to finish, and send another batch.
Hi @as-com, thanks for submitting this issue. Your suggested fix seems like the right path - thank you for that too. Unfortunately, we're really busy with our current roadmap. We'll try to get to this soon but we're not exactly sure when.
Additional information: This issue is causing random "Aw Snap!" crashes on Chrome 41 on Xubuntu Linux 14.04 when loading some of my asdfscratch projects.
People in the comments also regularly complain about glitchiness or silence caused by missing assets.
https://scratch.mit.edu/projects/76759248/ Another project affected by the bug
When large projects with lots (thousands) of assets are loaded for the second time (assets are cached on disk), the console is spammed with those errors, and many assets disappear causing strange behavior in projects.
See the forum topic for more information: http://scratch.mit.edu/discuss/topic/88418/