MonoGame crashed with GL.GetError() returned 1286 in iOS when building the iOSCore.csproj with debug mode, like: ./build.sh --build-target=BuildiOS --build-configuration=Debug. But release mode is fine.
GL error 1286 should be Invalid framebuffer operation.
To use GLES3 is to use etc2 texture format in MonoGame, and the PR is here: #6864
What version of MonoGame does the bug occur on:
What operating system are you using:
What MonoGame platform are you using:
Test project
https://github.com/ryancheung/MonoGame.iOS13.GLES3.Test
The MonoGame library is built with PR #6864
The stackstrace
at Microsoft.Xna.Framework.Graphics.GraphicsExtensions.CheckGLError () [0x00014] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Graphics/GraphicsExtensions.cs:970
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.PlatformClear (Microsoft.Xna.Framework.Graphics.ClearOptions options, Microsoft.Xna.Framework.Vector4 color, System.Single depth, System.Int32 stencil) [0x0013a] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Platform/Graphics/GraphicsDevice.OpenGL.cs:423
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear (Microsoft.Xna.Framework.Color color) [0x0000b] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Graphics/GraphicsDevice.cs:548
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.ApplyRenderTargets (Microsoft.Xna.Framework.Graphics.RenderTargetBinding[] renderTargets) [0x000c5] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Graphics/GraphicsDevice.cs:906
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Initialize () [0x000d3] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Graphics/GraphicsDevice.cs:388
at Microsoft.Xna.Framework.Graphics.GraphicsDevice..ctor (Microsoft.Xna.Framework.Graphics.GraphicsAdapter adapter, Microsoft.Xna.Framework.Graphics.GraphicsProfile graphicsProfile, System.Boolean preferHalfPixelOffset, Microsoft.Xna.Framework.Graphics.PresentationParameters presentationParameters) [0x001aa] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Graphics/GraphicsDevice.cs:277
at Microsoft.Xna.Framework.GraphicsDeviceManager.Initialize () [0x00081] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Platform/GraphicsDeviceManager.Legacy.cs:372
at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice () [0x00001] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Platform/GraphicsDeviceManager.Legacy.cs:87
at Microsoft.Xna.Framework.Game.DoInitialize () [0x00020] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Game.cs:681
at Microsoft.Xna.Framework.Game.Run (Microsoft.Xna.Framework.GameRunBehavior runBehavior) [0x00040] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Game.cs:384
at Microsoft.Xna.Framework.Game.Run () [0x00001] in /Users/Ryan/monogame/MonoGame/MonoGame.Framework/Game.cs:370
at MonoGame.iOS13.GLES3.Test.Program.RunGame () [0x0000b] in /Users/Ryan/monogame/MonoGame.iOS13.GLES3.Test/MonoGame.iOS13.GLES3.Test/Program.cs:15
at MonoGame.iOS13.GLES3.Test.Program.FinishedLaunching (UIKit.UIApplication app) [0x00001] in /Users/Ryan/monogame/MonoGame.iOS13.GLES3.Test/MonoGame.iOS13.GLES3.Test/Program.cs:28
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.8.1.1/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.8.1.1/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at MonoGame.iOS13.GLES3.Test.Program.Main (System.String[] args) [0x00001] in /Users/Ryan/monogame/MonoGame.iOS13.GLES3.Test/MonoGame.iOS13.GLES3.Test/Program.cs:23
MonoGame crashed with
GL.GetError() returned 1286in iOS when building the iOSCore.csproj with debug mode, like:./build.sh --build-target=BuildiOS --build-configuration=Debug. But release mode is fine.GL error 1286 should be
Invalid framebuffer operation.To use GLES3 is to use etc2 texture format in MonoGame, and the PR is here: #6864
What version of MonoGame does the bug occur on:
PR: Add Etc2 texture format support. #6864
What operating system are you using:
What MonoGame platform are you using:
Test project
https://github.com/ryancheung/MonoGame.iOS13.GLES3.Test
The MonoGame library is built with PR #6864
The stackstrace