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
- Tile Palette grid is moved after entering Play Mode
- Tile Palette Edit mode turns off in Play Mode
- The Editor crashes when Generating Font Atlas in the Font Asset Creator with “9999999999” padding and 256x256 Atlas Resolution
- [iOS] An “ArgumentNullException” error is thrown when GetIntroductoryPriceDictionary() method is called
- Font Import Settings documentation page is missing when the documentation button is pressed in the Inspector window
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.