mono/MonoGame — Issue #167: LZxDecoder error under android
Author: dellis1972
Created: 2011-12-10 22:52:10+00:00
State: open

There is a problem with the LZxDecode under android , Here is the stack trace and a link to the test project.

System.Diagnostics.Debugger.Mono_UnhandledException (Parameters=) in /home/jon/Development/xamarin/mono/mcs/class/corlib/System.Diagnostics/Debugger.cs:124
System.Object.817f673d-fa27-427f-bd3c-83536ddb0844 (Parameters=) in
Android.Runtime.InputStreamInvoker.get_Position (Parameters=) in /home/jpobst/Desktop/monodroid/Mono.Android/src/Runtime/InputStreamInvoker.cs:50
Microsoft.Xna.Framework.Content.LzxDecoder.Decompress (inData=, inLen=, outData=, outLen=) in c:\Sandbox\Development\MonoGame\MonoGame.Framework\Content\LzxDecoder.cs:126
Microsoft.Xna.Framework.Content.ContentManager.ReadAsset (Parameters=) in c:\Sandbox\Development\MonoGame\MonoGame.Framework\Content\ContentManager.cs:278
Microsoft.Xna.Framework.Content.ContentManager.Load (Parameters=) in c:\Sandbox\Development\MonoGame\MonoGame.Framework\Content\ContentManager.cs:139
Test.Game1.LoadContent (Parameters=) in c:\Users\d_ellis\Desktop\Test\Game1.cs:22
Microsoft.Xna.Framework.Game.Initialize (Parameters=) in c:\Sandbox\Development\MonoGame\MonoGame.Framework\Android\Game.cs:372
Microsoft.Xna.Framework.Game.DoUpdate (Parameters=) in c:\Sandbox\Development\MonoGame\MonoGame.Framework\Android\Game.cs:200
Microsoft.Xna.Framework.AndroidGameWindow.OnUpdateFrame (Parameters=) in c:\Sandbox\Development\MonoGame\MonoGame.Framework\Android\AndroidGameWindow.cs:190
OpenTK.Platform.Android.AndroidGameView.RunIteration (Parameters=) in /home/jpobst/Desktop/monodroid/OpenGLES/OpenTK/Platform/Android/AndroidGameView.cs:1207
OpenTK.Platform.Android.RepeatTimerTask.Run (Parameters=) in /home/jpobst/Desktop/monodroid/OpenGLES/OpenTK/Platform/Android/AndroidGameView.cs:1668
Java.Util.TimerTask.n_Run (Parameters=) in /home/jpobst/Desktop/monodroid/Mono.Android/platforms/android-8/src/generated/Java.Util.TimerTask.cs:80
System.Object.817f673d-fa27-427f-bd3c-83536ddb0844 (Parameters=) in

http://liquidfirearts.com/download/Test.zip

Looks like the underlying Stream does not support the Position property.