Search Issue Tracker

Active

Under Consideration for 1.4.X

Votes

0

Found in [Package]

1.4.0-exp.2 - Entities

Issue ID

ECSB-1654

Regression

No

Crash on mono_traverse_object_internal when building with a large amount of EntitySceneReferences or SubScenes

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the attached “IN-94731_SceneBuildTesting“ project
2. Open the Build Profiles window (File > Build Profiles)
3. Switch to the “Subscenes 512x512 x 256“ Profile
4. Build the project

Expected result: The “Subscenes 512x512 x 256“ and “Scenes 512x512 x 256“ Build Profiles take approximately the same amount of time to build
Actual result: Unity crashes or takes a very long time to build (1+ hours)

Reproducible with: 1.3.10 (6000.0.45f1), 1.4.0-pre.2 (6000.0.45f1, 6000.1.0b13, 6000.2.0a8)
Could not test with: 2022.3.60f1 (Errors in the Console)

Reproducible on: macOS 15.3.2 Sequoia (Intel), Windows 11 (by user)
Not reproducible on: No other environment tested

First few lines of the stack trace:
0x00007FFB0AA4C5B2 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\unity-liveness.c:388] mono_traverse_object_internal
0x00007FFB0AA4D0E0 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\unity-liveness.c:539] mono_traverse_array
0x00007FFB0AA4CE46 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\unity-liveness.c:486] mono_traverse_objects
0x00007FFB0AA4D6CE (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\unity-liveness.c:688] mono_unity_liveness_calculation_from_statics

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.