Search Issue Tracker
Fixed
Fixed in 6000.3.0b10
Votes
0
Found in
6000.3.0b8
Issue ID
UUM-125154
Regression
Yes
Crash on GameObject::QueryComponentByType when creating a Prefab containing a Sorting Group component with 'Sort 3D as 2D' enabled
Steps to reproduce:
1. Open the “user’s attached project”
2. Observe the crash
Alternatively:
1. Create a new Universal 3D project
2. Create a new “Rendering/URP 2D Renderer” through the Project window
3. Select the “PC_RPAsset” Asset
4. Under “Rendering” select the created “URP 2D Renderer” for the Renderer List through the Inspector
5. Create an Empty GameObject through the Hierarchy
6. Add a “Sorting Group” component through the Inspector
7. Enable the “Sort 3D as 2D” option under the “Sorting Group” component
8. Drag the created GameObject to the Project Window to create a Prefab
9. If no crash has occurred, open the created Prefab and delete the “Sorting Group” component
10. Observe the crash
Reproducible with versions: 6000.3.0a5(f9a1fab5607a), 6000.3.0b8
Not reproducible with versions: 6000.0.61f1, 6000.2.10f1, 6000.3.0a4, 6000.4.0a4
Reproducible on: macOS 15.7.1 (M1 Max), Windows 10
Not reproducible on: no other environment tested
First few lines of StackTrace:
#0 0x000001028d9364 in GameObject::QueryComponentByType(Unity::Type const) const
#1 0x00000103e01064 in RenderAs2D::RenderAs2DPlayerLoopUpdate()
#2 0x00000103e01e98 in RenderAs2D::InitializeClass()::PostLateUpdateRenderAs2DUpdateRegistrator::Forward()
#3 0x00000102ceb948 in ExecutePlayerLoop(NativePlayerLoopSystem)
#4 0x00000102ceb97c in ExecutePlayerLoop(NativePlayerLoopSystem*)
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
- Icon section shows incomplete message and unusable check box in Build Profiles and Player Settings window instead of “Not applicable for this platform” for Dedicated Server Platform
- "Editor unavailable" message is displayed when navigating to "Get set up" tab in Unity Hub
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
Resolution Note (fix version 6000.3.0b10):
Fixed in
https://github.cds.internal.unity3d.com/unity/unity/pull/83743