Search Issue Tracker
Fixed in 2018.1.X
Fixed in 2017.2.X, 2017.3.X
Votes
0
Found in
2017.1.0f3
Issue ID
950172
Regression
Yes
Crash on scripting_object_get_class when dragging empty Script component to a GameObject in Hierarchy
How to reproduce:
1. Open "ScriptCrash" project and "Repro" scene
2. Click on the "GameObject" in Hierarchy, notice that it has an empty Script component
3. Drag the component from Inspector window onto one of the GameObjects in Hierarchy
Expected result - Component does not get added, some warning in the console appears
Actual result - Crash occurs on:
========== OUTPUTING STACK TRACE ==================
0x0000000141197982 (Unity) scripting_object_get_class
0x000000014187C078 (Unity) HandleCopyMonoBehaviourToGameObjectDragAndDrop
0x000000014187C93E (Unity) DragAndDropForwarding::ForwardDragAndDrop
0x000000014149A129 (Unity) InternalEditorUtility_CUSTOM_HierarchyWindowDrag
0x000000006376297B (Mono JIT Code) (wrapper managed-to-native) UnityEditorInternal.InternalEditorUtility:HierarchyWindowDrag (UnityEditor.HierarchyProperty,bool,UnityEditorInternal.InternalEditorUtility/HierarchyDropMode)
0x0000000063760CA4 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\GUI\TreeView\AssetOrGameObjectTreeViewDragging.cs:149] UnityEditor.GameObjectsTreeViewDragging:DoDrag (UnityEditor.IMGUI.Controls.TreeViewItem,UnityEditor.IMGUI.Controls.TreeViewItem,bool,UnityEditor.IMGUI.Controls.TreeViewDragging/DropPosition)
Regression introduced in - 2017.1.0a5
Reproducible with - 2017.3.0a7, 2017.2.0b11, 2017.1.1p1, 2017.1.0a5
Not reproducible with - 2017.1.0a4, 2017.1.1p5, 5.6.3p3
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Random values are showing in the Transform Position when snapping the object to the grid after moving it slightly
- Leading bracket is left behind on the previous line when text wraps in TextMeshPro
- Crash on AudioMixer::GetFMODChannelGroup when entering Play Mode in a specific project
- Prefabs with "Flags" enum properties result in "IndexOutOfRangeException" when trying to commit/revert
- The Camera first person mode in Cameras overlay is greyed out and not clickable when the Editor is restarted with the Game View focused
Add comment