Search Issue Tracker
Fixed in 2018.2.X
Votes
1
Found in
2017.2.0b8
Issue ID
947929
Regression
No
Unity crash when changing prefab script from MonoBehaviour to ScriptableObject with public variables
"the file 'none' is corrupted. Remove it and launch unity again [position out of bounds!] UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"
To reproduce:
1. Open new project, create any game object in a scene
2. Create a C# script and attach to created game object
3. Make the object a prefab by dragging it to Project window
4. Open your C# script and change class inheritance from MonoBehaviour to ScriptableObject
5. Add any kind of public variable to a mentioned script
6. Return to Unity, click the prefab in Project window if needed
Expected: Unity warns in console about possible crashes if script is not removed
Actual: Unity crashes before being able to remove the problematic script (check picture attached)
Reproduced in: 5.5.0a6, 5.5.4p4, 2017.1.1f1, 2017.2.0b10, 2017.3.0a7
Not reproduced in: 5.4.6f3
Regression starts in: 5.5.0a6
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Buttons in the Overlay Menu in the Scene View are all gray even if they're activated when Game View is maximized and minimized
- NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
- Editor crashes on PrepareSpriteTilingData when exiting Play mode
Add comment