Search Issue Tracker
Fixed
Fixed in 5.2.X, 6.0.X
Votes
0
Found in [Package]
5.2.3
6.0.4
Issue ID
PBLD-199
Regression
No
[ProBuilder] NullReferenceException when using the Cut Tool
Reproduction steps:
1. Open the attached “ProBuilderError.zip” project
2. Open the “Sample Scene”
3. Select the “Cube” GameObject from the Hierarchy
4. In the Scene view tools change Active context to ProBuilder (Click the very top widget with an orange grid and a pencil)
5. Select the “Cut Tool”
6. Add a few cut points and connect the path
7. Observe the Console
Expected result: No errors
Actual result: “NullReferenceException: Object reference not set to an instance of an object” error
Reproducible with: 5.0.7 (2022.1.0b1), 5.2.3 (2021.3.47f1, 2022.3.56f1), 6.0.4 (6000.0.35f1, 6000.1.0b2)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
- Might need to repeat the 6th step a few times for the issue to appear
- Pressing CTRL+Z after the error, causes even more errors and exceptions to be thrown, like “GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.” and “IndexOutOfRangeException: Index was outside the bounds of the array.”. After that, the ProBuilder context appears to be non-interactable and gets stuck spamming errors, therefore project needs to be reopened
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
Resolution Note (fix version 6.0.X):
Fixes an issue where placing two vertices on the same edge with Cut Tool would throw a null reference exception.