Search Issue Tracker

Won't Fix

Votes

0

Found in

2022.3.9f1

2023.1.12f1

2023.2.0b8

2023.3.0a4

2024.1.0a1

Issue ID

UUM-49009

Regression

Yes

Crash on CachedWriter::Write when generating lighting

--

-

Reproduction steps:
1. Open the attached “CrashRepro” project
2. Open the “Assets/Flooded_Grounds/Scenes/HorrorScene.unity“ scene
3. Click Window > Rendering > Lighting
4. Click Generate Lighting

Expected result: Unity Editor successfully generates the lightmaps for the scene
Actual result: Unity Editor crashes

Reproducible with: 2022.3.9f1, 2023.1.12f1, 2023.2.0b8, 2023.3.0a4
Not reproducible with: 2021.3.30f1

Reproducible on: Ubuntu 23.04, Windows 10 Pro 22H2
Not reproducible on: No other environment tested on

First lines of the stack trace:
0x00007FFD1AC18B40 (Unity) memcpy
0x00007FFD1831C162 (Unity) CachedWriter::Write
0x00007FFD1990CDF8 (Unity) LightingDataAsset::Transfer<StreamedBinaryWrite>
0x00007FFD186FFA25 (Unity) SerializedFile::WriteObject
0x00007FFD186EBFFE (Unity) PersistentManager::WriteFile

Note: couldn’t test more versions to find the regression because baking takes around 10 hours

  1. Resolution Note:

    Thanks for submitting this issue!

    We were only able to reproduce this crash with the current project, which bakes a very high number of lightmaps and includes Enlighten Realtime GI. From our testing, lowering the lighting settings (and perhaps turning off realtime GI if it is not needed) was enough to avoid the crash. Really lighting settings have diminishing returns on the quality of the image.

    Beyond that, because of how unwieldy this reproduction project is, we are deciding not to look further into this particular issue/crash as it takes 12 hours per bake to reproduce the issue.

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.