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
- Different colors are present when Alpha channel is unclamped
- Visual Effects Forums link leads to generic Unity Forums
- The dithering node returns a blocky effect when the Render Scale is set to some values below 1
- [Android Module] Unity double writes files in the "StreamingAssets" folder when they are deleted using "IPostGenerateGradleAndroidProject" after the Grandle project is generated
- IndexOutOfRangeException and InvalidOperationException when clicking on the HTML log in the Console
Add comment