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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-93124