Skip to content

chromium shows question marks for more than 1350 costumes #312

@slyi

Description

@slyi

Migrated from scratch-vm as github readme states scratch-vm is outdated. scratchfoundation/scratch-vm#5439

Expected Behavior

All costumes load correctly on chromium https://scratch.mit.edu/projects/1205610476/

Actual Behavior

chromium fails to load more 1350 costumes due limit of 2700 pending network requests and falls back to default unknown webgl texture for network cancelled costumes

Steps to Reproduce

Save a project with more than 1350 costumes

System Details

This occurs on all chromium based browsers (chrome, edge, brave etc...) for sb3 saved projects. Works fine on scrach3.0 win32 app, firefox and webkit.
Scratch VM creates async web request to download the 2048 images but chromium limits pending web requests to NetworkContext::CanCreateLoader returning false. Chrome dislike having more than (kMaxOutstandingRequestsPerProcess = 2700) concurrent loading attempts at a time from a single process (max_loaders_per_process_)
Turbowarp works as batches the downloads. This is a regression from scratch 2.0

Screenshots
Image>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe Scratch team has verified that this is indeed a bug/defect, probably by reproducing the issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions