Search Issue Tracker
By Design
Votes
0
Found in
2019.2.0a13
2019.3.9f1
2019.4
2020.1
2020.2
Issue ID
1243035
Regression
Yes
Custom AssetImporterEditor Script throws errors when selecting a texture
How to reproduce:
1. Open the attached "1243035 repro" project
2. Select "NewImage.png" from the Assets > AdvancedTextureImporter > ExampleTexture folder
Expected result: no errors are thrown
Actual result: errors stating that the previous instance hasn't been disposed correctly are thrown
Reproducible with: 2019.2.0a13, 2019.2.21f1, 2019.4.0f1, 2020.1.0b13, 2020.2.0a15
Not reproducible with: 2018.4.23f1, 2019.2.0a12
Notes:
-On affected versions the bug doesn't necessarily reproduce on the first selection, deselect and repeat the 2nd step a few times to reproduce.
-Very rarely the Editor crashes after selecting the "NewImage.png"
-The Editor sometimes crashes when recompiling the "TextureImporterEditor.cs" Script
-The full error states: The previous instance of UnityEditor.TextureImporterInspector has not been disposed correctly. Make sure you are calling base.OnDisable() in your AssetImporterEditor implementation.
UnityEditor.Editor:CreateEditor (UnityEngine.Object[],System.Type)
AdvancedTextureImporter.TextureImporterEditor:OnEnable () (at Assets/AdvancedTextureImporter/Scripts/Editors/TextureImporterEditor.cs:22)
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
- Audio Mixer window cannot be scrolled when naming items
- [Android][Vulkan] Mesh flickers in portrait when Box Projection and Use Rendering Layers are enabled on Vulkan API with specific geometry in scene
- Scrollbar remains visible in the Imported Assets tab table after removing all columns
- Crash on MemoryManager::OutOfMemoryError when building a specific project for Android platform
- “NullReferenceException: Object reference not set to an instance of an object” error is thrown and no Neighbor Terrain is created when using “Create Neighbor Terrains” tool in Additional Editor Instance window
Resolution Note (2020.2.X):
This feature is not officially supported.