Search Issue Tracker
Fixed in 5.6.0
Votes
0
Found in
5.6.0
Issue ID
858462
Regression
Yes
[5.6] Dragging a ScriptableObject crashes the editor
In 5.6/trunk, dragging a ScriptableObject asset somewhere in the editor (over hierarchy, or over inspector etc.) crashes the editor. Looks like some new code does not handle the case of ScriptableObjects, which look a lot like MonoBehaviours, not actually being Components that are attached to game objects.
Repro steps:
1. open DragScriptableObject542.zip project (made with 5.4.2 for testing with earlier versions than 5.6)
2. drag MyScriptableObject.asset from project view over other views (e.g. hierarchy or inspector)
3. editor crashes in:
IsUserModifiable (EditorHelper.cpp:198)
MoveComponent (ComponentUtility.cpp:699)
HandleExtractComponentDragAndDrop (DragAndDropForwarding.cpp:1244)
CanHandleExtractComponentDragAndDrop (DragAndDropForwarding.cpp:1266)
DragAndDropForwarding::DispatchDragAndDrop (DragAndDropForwarding.cpp:349)
DragAndDropForwarding::CanHandleDragAndDrop (DragAndDropForwarding.cpp:364)
DragAndDropForwarding::CanHandleDragAndDrop (DragAndDropForwarding.cpp:376)
InternalEditorUtility_CUSTOM_HierarchyWindowDrag(...)
Doing the same in 5.4.2 and 5.5.0 does not crash.
Crashes in 5.6b1-ish build as of 2016 December 6 (6f87e0affcd2)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- AsyncReadManager.GetFileInfo fails to get files when they were created during runtime.
- UI elements are not visible on certain X-axis positions when the rotation of the Y-axis is 90 (or -90) degrees
- Crash on __pthread_kill when initializing Vuplex WebView while entering the Play Mode
- Crash on FindSurface when adding a custom Renderer Feature to a 2D Renderer Data Asset
- [Android] [Vulkan] [UI Toolkit] Application crashes when the device is rotated when it has UI Toolkit TextField on Vulkan devices
Add comment