I am getting random force closes. Here is the stacktrace:
08-01 22:49:49.381 E/mono-rt (13563): Stacktrace:
08-01 22:49:49.381 E/mono-rt (13563):
08-01 22:49:49.381 E/mono-rt (13563): at <0xffffffff>
08-01 22:49:49.381 E/mono-rt (13563): at (wrapper managed-to-native) OpenTK.Graphics.ES20.GL/Core.DrawElements (OpenTK.Graphics.ES20.BeginMode,int,OpenTK.Graphics.ES20.DrawElementsType,intptr) <0x00043>
08-01 22:49:49.381 E/mono-rt (13563): at OpenTK.Graphics.ES20.GL.DrawElements (OpenTK.Graphics.ES20.BeginMode,int,OpenTK.Graphics.ES20.DrawElementsType,intptr) <IL 0x00005, 0x0007f>
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Graphics.GraphicsDevice.PlatformDrawUserIndexedPrimitives<Microsoft.Xna.Framework.Graphics.VertexPositionColorTexture> (Microsoft.Xna.Framework.Graphics.PrimitiveType,Microsoft.Xna.Framework.Graphics.VertexPositionColorTexture[],int,int,int16[],int,int,Microsoft.Xna.Framework.Graphics.VertexDeclaration) <IL 0x000a3, 0x00417>
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Graphics.GraphicsDevice.DrawUserIndexedPrimitives<Microsoft.Xna.Framework.Graphics.VertexPositionColorTexture> (Microsoft.Xna.Framework.Graphics.PrimitiveType,Microsoft.Xna.Framework.Graphics.VertexPositionColorTexture[],int,int,int16[],int,int,Microsoft.Xna.Framework.Graphics.VertexDeclaration) <IL 0x000cf, 0x0056b>
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Graphics.SpriteBatcher.FlushVertexArray (int,int,Microsoft.Xna.Framework.Graphics.Effect,Microsoft.Xna.Framework.Graphics.Texture) <IL 0x000a0, 0x00577>
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Graphics.SpriteBatcher.DrawBatch (Microsoft.Xna.Framework.Graphics.SpriteSortMode,Microsoft.Xna.Framework.Graphics.Effect) <IL 0x0015b, 0x00d4b>
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Graphics.SpriteBatch.FlushIfNeeded () <IL 0x0001b, 0x000bb>
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Graphics.SpriteBatch.DrawInternal (Microsoft.Xna.Framework.Graphics.Texture2D,Microsoft.Xna.Framework.Vector4,System.Nullable1<Microsoft.Xna.Framework.Rectangle>,Microsoft.Xna.Framework.Color,single,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.SpriteEffects,single,bool) <IL 0x00246, 0x00d2b> 08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw (Microsoft.Xna.Framework.Graphics.Texture2D,Microsoft.Xna.Framework.Rectangle,System.Nullable
1<Microsoft.Xna.Framework.Rectangle>,Microsoft.Xna.Framework.Color,single,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.SpriteEffects,single) <IL 0x000b7, 0x00d8f>
08-01 22:49:49.381 E/mono-rt (13563): at Fireball.LevelTypes.TextureItem.DrawInternal (Microsoft.Xna.Framework.Graphics.SpriteBatch) [0x00000] in C:\Source\Fireball Adventures\Fireball\LevelTypes\TextureItem.cs:179
08-01 22:49:49.381 E/mono-rt (13563): at Fireball.LevelTypes.TextureItem.Draw (Microsoft.Xna.Framework.Graphics.SpriteBatch) [0x00009] in C:\Source\Fireball Adventures\Fireball\LevelTypes\TextureItem.cs:174
08-01 22:49:49.381 E/mono-rt (13563): at Fireball.LevelTypes.Layer.Draw (Microsoft.Xna.Framework.Graphics.SpriteBatch) [0x00016] in C:\Source\Fireball Adventures\Fireball\LevelTypes\Layer.cs:78
08-01 22:49:49.381 E/mono-rt (13563): at Fireball.LevelTypes.Level.Draw (Microsoft.Xna.Framework.Graphics.SpriteBatch) [0x00016] in C:\Source\Fireball Adventures\Fireball\LevelTypes\Level.cs:252
08-01 22:49:49.381 E/mono-rt (13563): at Fireball.Screens.GamePlay.DrawScene (Microsoft.Xna.Framework.Graphics.SpriteBatch) [0x00020] in C:\Source\Fireball Adventures\Fireball\Screens\GamePlay.cs:386
08-01 22:49:49.381 E/mono-rt (13563): at Fireball.Screens.GamePlay.Draw (Microsoft.Xna.Framework.GameTime) [0x00050] in C:\Source\Fireball Adventures\Fireball\Screens\GamePlay.cs:357
08-01 22:49:49.381 E/mono-rt (13563): at GameStateManagement.ScreenManager.Draw (Microsoft.Xna.Framework.GameTime) [0x00001] in C:\Source\Fireball Adventures\GameStateManagement\ScreenManager.cs:408
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Game.<.cctor>b__18 (Microsoft.Xna.Framework.IDrawable,Microsoft.Xna.Framework.GameTime) <IL 0x00002, 0x00087>
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Game/SortingFilteringCollection1<T_REF>.ForEachFilteredItem<TUserData_REF> (System.Action
2<T_REF, TUserData_REF>,TUserData_REF) <IL 0x0007e, 0x0046f>
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Game.Draw (Microsoft.Xna.Framework.GameTime) <IL 0x0000c, 0x0009f>
08-01 22:49:49.381 E/mono-rt (13563): at Fireball.GameManagement.Draw (Microsoft.Xna.Framework.GameTime) [0x00015] in C:\Source\Fireball Adventures\Fireball\GameManagement.cs:104
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Game.DoDraw (Microsoft.Xna.Framework.GameTime) <IL 0x0001e, 0x0012f>
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.Game.Tick () <IL 0x001f5, 0x00d6f>
08-01 22:49:49.381 E/mono-rt (13563): at Microsoft.Xna.Framework.AndroidGameWindow.OnUpdateFrame (object,OpenTK.FrameEventArgs) <IL 0x00059, 0x00283>
08-01 22:49:49.381 E/mono-rt (13563): at OpenTK.GameViewBase.OnUpdateFrame (OpenTK.FrameEventArgs) <IL 0x00014, 0x000b7>
08-01 22:49:49.381 E/mono-rt (13563): at OpenTK.Platform.Android.AndroidGameView.UpdateFrameInternal (OpenTK.FrameEventArgs) <IL 0x00013, 0x000c3>
08-01 22:49:49.381 E/mono-rt (13563): at OpenTK.Platform.Android.AndroidGameView.RunIteration (System.Threading.CancellationToken) <IL 0x00096, 0x00407>
08-01 22:49:49.381 E/mono-rt (13563): at OpenTK.Platform.Android.AndroidGameView/c__AnonStorey0.<>m__0 (object) <IL 0x0000d, 0x0009b>
08-01 22:49:49.381 E/mono-rt (13563): at Android.App.SyncContext/c__AnonStorey1.<>m__0 () <IL 0x0000c, 0x0008b>
08-01 22:49:49.381 E/mono-rt (13563): at Java.Lang.Thread/RunnableImplementor.Run () <IL 0x00011, 0x000c3>
08-01 22:49:49.381 E/mono-rt (13563): at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <IL 0x0000a, 0x000cf>
08-01 22:49:49.381 E/mono-rt (13563): at (wrapper dynamic-method) object.e435e89b-674d-41b5-b0ac-31b469005c1a (intptr,intptr) <IL 0x00011, 0x00043>
08-01 22:49:49.381 E/mono-rt (13563): at (wrapper native-to-managed) object.e435e89b-674d-41b5-b0ac-31b469005c1a (intptr,intptr) <IL 0x0001e, 0x0009f>
08-01 22:49:49.381 E/mono-rt (13563):
08-01 22:49:49.381 E/mono-rt (13563): Attempting native Android stacktrace:
08-01 22:49:49.381 E/mono-rt (13563):
Monogame 3.5.1.1679
OpenTK 0.9.9.3
Thanks,
Petar