Skip to content

CE-132 Loading a project with many assets can fail #7111

@cwillisf

Description

@cwillisf

Expected Behavior

Any given project should either load correctly or should display a Scratch error messages. Repeated attempts to load the same project should be consistent.

Actual Behavior

If a project has many assets (>2000) it can cause bad behavior. For example:

  • the project might fail to load with a Scratch bluescreen on the first attempt, but succeed on a later attempt (once some of the assets are cached)
    • This has been observed on the website when some assets fail to load with net::ERR_INSUFFICIENT_RESOURCES in the network tab.
  • the project might crash Chrome / Chromium's rendering process
    • This has been observed in the desktop app. From a user perspective, the whole editor is replaced by a blank white window.

See also FreshDesk ticket 323025, especially the "Technical Issue Link" attached to that ticket.

Steps to Reproduce

  1. Find or create a project with >2000 assets
    • The example I have on hand has 2114 assets. It's possible the threshold is much lower; I haven't tested.
  2. Save the project on the website, or to an SB3 file
  3. Try to load the project

Operating System and Browser

White screen: Scratch desktop app on Windows
Other errors: Chrome / Chromium, any OS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions