Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.3.9f1
2023.1.12f1
2023.2.0b8
2023.3.0a4
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
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.