Search Issue Tracker

Duplicate

Under Consideration for 2022.3.X, 2023.2.X

Votes

0

Found in

2022.3.4f1

2023.1.2f1

2023.2.0a21

2023.3.0a3

Issue ID

UUM-41429

Regression

Yes

[WebGL] Build crashes on CachedWriter::Write when building a project for WebGL

--

-

Reproduction steps:
1. Open the attached “repro-project“
2. Open the Assets/Scenes/TestScene.unity scene
3. Build And Run
4. Observe the crash

Reproducible with: 2022.1.0a15, 2022.3.4f1, 2023.1.2f1, 2023.2.0a21
Not reproducible with: 2021.3.28f1, 2022.1.0a14

Reproduced on: Windows 10 Pro

Note: Not reproducible on Standalone Build

First few lines of the stack trace:
{{0x00007ff7c92a2ed3 (Unity) CachedWriter::Write }}
{{0x00007ff7c9678691 (Unity) StreamedBinaryWrite::TransferTypelessData }}
{{0x00007ff7c9092f1d (Unity) Texture2D::Transfer<StreamedBinaryWrite> }}
{{0x00007ff7c9662b57 (Unity) SerializedFile::WriteObject }}
{{0x00007ff7c964c377 (Unity) PersistentManager::WriteFile}}

  1. Resolution Note:

    This case is a duplicate of UUM-43771 which observes this issue for both Android and WebGL (the observed crash for Standalone builds in UUM-43771 is an unrelated issue). It is caused by the Editor setting to "Load texture data on demand"; as a workaround, the crash disappears by simply disabling that option before building. An actual fix for this is underway.
    Duplicate of https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-43771

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.