Search Issue Tracker
Fixed in 2020.1.X
Votes
0
Found in
2020.1.0a13
Issue ID
1199206
Regression
No
Editor window becomes uncloseable when the script creating it is removed, then added again
Steps to reproduce:
1. Open new project
2. Create a script that opens an editor window (Or just use the example script from https://docs.unity3d.com/ScriptReference/EditorWindow.html)
3. Open the window
4. Copy the script to another location in your disk
5. Delete the original
6. Observe the window saying it "Failed to Load"
7. Add the script again to your project
8. The window loses it's docking tab and you can not close it anymore (Getting an error in the console every time)
Short version of the Error: (full version attached to case)
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <437ba245d8404784b9fbab9b439ac908>:0)
Use case: Having a window created by a package open when updating to a different package version (Remove and then Add via package manager)
Reproduced on: 2019.1.14f1, 2019.2.13f1, 2019.3.0b12, 2020.1.0a14
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment