Search Issue Tracker
Won't Fix
Votes
3
Found in
2023.1.0a2
Issue ID
UUM-34572
Regression
Yes
TextureImporterInspector.OnInspectorGUI error after deselecting a texture in certain scenarios
Steps to reproduce:
1. Open the attached project
2. Select "New Material" in the Project Window
3. Select the texture next to the material
4. Select the material from step 3 again
5. Observe the console
Expected result: No errors
Actual result: The following error
TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour.
UnityEditor.TextureImporterInspector:OnDisable () (at /Users/bokken/build/output/unity/unity/Editor/Mono/ImportSettings/TextureImporterInspector.cs:98)
Reproducible with: 2023.1.0a2, 2023.1.0b15, 2023.2.0a13
Not reproducible: 2022.2.0a19, 2022.2.18f1
Comments (16)
-
josiahsrc
Nov 12, 2023 15:07
Same issue. Happens every time I select textures. Can't edit the texture because of it
-
Sphax84
Nov 07, 2023 12:43
Reproduced in 2022.3.12f1
As JoshuaMeurey said, I think the issue is due to Preview window being opened -
wirmachenbunt
Oct 05, 2023 18:27
version 2022.3.4f1 , same issue,really annoying and sometimes renders the inspector window empty, can't change any texture nor material properties
-
SixOneTwo612
Sep 21, 2023 02:47
I am having this error in 2022.3.8f1
-
JoshuaMeurey
Aug 10, 2023 08:13
Reproduced in 2022.3.3f1: I guess you should have the preview panel opened.
Steps are:
- select a sprite (displayed properly in preview)
- select another item in project (not a sprite, i.e. a folder)Then, this error is logged:
TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour.
UnityEditor.InspectorWindow:RedrawFromNative () -
Mellurboo
Jul 17, 2023 19:41
In typical unity style you guys refuse to fix an engine breaking bug
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
- Crashes in the wild on Vulkan in CreateDepthSurfaceImpl
- Position and rotation of a GameObject with Rigidbody reset when it is enabled and moved in the same Update call and the frame rate is low
- “Ignoring depth surface store action as it is memoryless” warnings thrown when Capturing new Snapshot while in Play Mode
- Certain textures are not loaded when using the "Load texture data on demand" feature
- [Android][OpenGL] The 2DLight is disproportionately bright on some Android devices when OpenGLES3 is used
Resolution Note:
Cannot reproduce on 23.3, 23.2 or 23.1. I looked at the code printing the exception and it could print this exception if Apply wasn't called when texture import settings had changed. I did a few tests with this and I always get the dialog asking to save. Maybe there is a texture import settings that doesn't trigger a Dialog? I would need more precise repro steps in this case.