Search Issue Tracker
Duplicate
Votes
0
Found in
5.2.0f3
Issue ID
729290
Regression
Yes
Crash when using editor scripts and applying prefab
To reproduce:
1. Open project, open scene "player test" in "Prototyping/Scenes/Testing"
2. Select "player" object.
3. Press "revert" or "apply"
The script "PEPrefabScript" should produce a null reference error, and, after a few seconds, Unity should crash. The crash doesn't occur if you comment out line 434 in the script (the one that causes the null reference) (PrefabUtility.ReplacePrefab(instantiatedPrefab, PrefabUtility.GetPrefabParent(instantiatedPrefab), ReplacePrefabOptions.ConnectToPrefab);).
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
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
This is a duplicate of issue #728853