Hey Guys,

We're still working on porting our iOS/WP7 app to Android and we're hitting
a road block...

Basically, the app crashes at random times when loading things, creating
shaders, parsing data, etc...
Most of it seems memory related since we're getting the errors mostly in
Array.Resize() or other methods that have to do with memory allocations.

I added some code to invoke the Runtime GC
(Java.Lang.Runtime.GetRuntime().Gc()) and it tends to make things better,
but we always crash further down the line.

The GC messages in the log seem to say that we still have a lot of
available memory though, ~40% out of 13MB when it crashes usually.

There are 2 types of crash we get, they both have call stacks, but one says
that the process has been terminated by signal (11).
The other types says nothing more than a call stack in the log.

Here's a typical log (through adb logcat):
[...] Normal application log...
D/dalvikvm( 5446): GC_EXPLICIT freed 242K, 39% free 7935K/12999K, paused
2ms+2ms
I/mono    ( 5446): Stacktrace:
I/mono    ( 5446):
I/mono    ( 5446):   at System.Collections.Generic.Dictionary`2<char,
Microsoft.Xna.Framework.Graphics.GlyphData>.Resize () <0x00247>
I/mono    ( 5446):   at System.Collections.Generic.Dictionary`2<char,
Microsoft.Xna.Framework.Graphics.GlyphData>.Add
(char,Microsoft.Xna.Framework.G
phics.GlyphData) <0x00193>
I/mono    ( 5446):   at Microsoft.Xna.Framework.Graphics.SpriteFont..ctor
(Microsoft.Xna.Framework.Graphics.Texture2D,System.Collections.Generic.List
<Microsoft.Xna.Framework.Rectangle>,System.Collections.Generic.List`1<Microsoft.Xna.Framework.Rectangle>,System.Collections.Generic.List`1<char>,int,
ngle,System.Collections.Generic.List`1<Microsoft.Xna.Framework.Vector3>,System.Nullable`1<char>)
<0x002bb>
I/mono    ( 5446):   at
Microsoft.Xna.Framework.Content.SpriteFontReader.Read
(Microsoft.Xna.Framework.Content.ContentReader,Microsoft.Xna.Framework.
aphics.SpriteFont) <0x00173>
I/SurfaceFlinger(  237): id=1183 Removed SurfaceView idx=1 Map Size=3
V/WindowManager(  312): Preventing status bar from hiding by policy
I/SurfaceFlinger(  237): id=1182 Removed
FDS.InfiniteFlight/fds.infiniterunway.Activity1 idx=1 Map Size=2
I/WindowManager(  312): WIN DEATH: Window{407340c8
FDS.InfiniteFlight/fds.infiniterunway.Activity1 paused=false}
I/ActivityManager(  312): Process FDS.InfiniteFlight (pid 5446) has died.
W/WindowManager(  312): Force-removing child win Window{41f510d0
SurfaceView paused=false} from container Window{407340c8
FDS.InfiniteFlight/fds.infi
terunway.Activity1 paused=false}
D/Zygote  (  238): Process 5446 terminated by signal (11)

Has anybody faced anything similar?
How can I get more information about the exception?

Thanks!
--
Matt
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to