Search Issue Tracker
Fixed in 5.4.0
Votes
0
Found in
5.4.0b3
Issue ID
763518
Regression
No
[2D] Adding/importing a sprite to the project generates several errors (Matrix stack full depth reached) (GL.begin exception
Adding/importing a sprite to the project generates three errors.
- create a new 2D project
- drag an image file into the Project Assets or create a new 2D sprite in the Project Assets
- observe the error messages that appear in the Console
Matrix stack full depth reached
UnityEditor.AssetPreviewUpdater:CreatePreviewForAsset(Object, Object[], String)
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEditor.DockArea:OnGUI()
Exception: GL.Begin can only be invoked during a repaint event
UnityEngine.GL.Begin (Int32 mode) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/GraphicsBindings.gen.cs:2414)
UnityEditor.SpriteInspector.BuildPreviewTexture (Int32 width, Int32 height, UnityEngine.Sprite sprite, UnityEngine.Material spriteRendererMaterial, Boolean isPolygon) (at C:/buildslave/unity/build/Editor/Mono/Inspector/SpriteFrameInspector.cs:236)
UnityEditor.SpriteInspector.RenderStaticPreview (System.String assetPath, UnityEngine.Object[] subAssets, Int32 width, Int32 height) (at C:/buildslave/unity/build/Editor/Mono/Inspector/SpriteFrameInspector.cs:284)
UnityEditor.AssetPreviewUpdater.CreatePreviewForAsset (UnityEngine.Object obj, UnityEngine.Object[] subAssets, System.String assetPath) (at C:/buildslave/unity/build/Editor/Mono/AssetPreviewUpdater.cs:33)
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEditor.DockArea:OnGUI()
Matrix stack full depth reached
UnityEditor.DockArea:OnGUI()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment