Search Issue Tracker
Fixed
Votes
0
Found in
6000.0.47f1
Issue ID
UUM-103219
Regression
Yes
"NullReferenceException" thrown and scene corrupted when build is canceled with changes in the scene
How to reproduce:
1. Create and open a new project
2. In the Hierarchy select the “MainCamera” GameObject
3. In the Inspector change the “Position” X value to 10, in the Transform component
4. In the title bar navigate to File > Build And Run, alternatively use the Ctrl + B shortcut
5. In the "Scene(s) Have Been Modified" dialog box, press Cancel
6. Observe the Editor and the Console
Expected result: No changes in the scene, couple of warnings in the Console
Actual result: Scene is corrupted, couple of warnings and errors are thrown in the Console
Reproducible with: 6000.0.35f1 (ed4dc7af2c82), 6000.0.47f1
Not reproducible with: 2022.3.61f1, 6000.0.34f1, 6000.1.0b15, 6000.2.0a9
Reproducible on: Windows 11, macOS 15.3 (M2 Ultra)
Not reproducible on: No other environments tested
Notes:
- Any changes made to the scene reproduce the issue
- “NullReferenceException: Object reference not set to an instance of an object” are thrown in the Console
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
- Build fails when building a project containing an 18+ dimension array with IL2CPP
- [Android][Sentis] Human poses are not detected when using the BlazePose model
- Sprite Editor Outline Tool Overlay is not displayed when no Sprite is selected
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-93124