[android-developers] Re: 1.5 quits for apparently no reason whilst animating (WIN DEATH)

2010-11-25 Thread Muleskinner
SOLVED! The issue appears to have been caused by keeping pointers for drawing on offscreen images. I have a six or seven small offscreen images in memory that are updated periodically. I was maintaining a Canvas pointer for each of them, e.g.: Bitmap bitmap = Bitmap.createBitmap( 128, 32,

[android-developers] Re: 1.5 quits for apparently no reason whilst animating (WIN DEATH)

2010-11-24 Thread Muleskinner
Hi, After some more experimentation it appears that this is nothing to do with the drawing per se. The app still crashes even if I just load a fullscreen image at a certain point (though it doesn't actually crash at the moment the image is loaded but about a second after) even if I remove all

Re: [android-developers] Re: 1.5 quits for apparently no reason whilst animating (WIN DEATH)

2010-11-24 Thread Kostya Vasilyev
SIGSEGV is a memory access violation. Some piece of code somewhere has a stray pointer, and accesses memory pages that it doesn't own. And from the information you posted, it looks like it's Dalvik (libdvm.so) that makes a call to C language utilities (libcutils.so). How complex is your

[android-developers] Re: 1.5 quits for apparently no reason whilst animating (WIN DEATH)

2010-11-23 Thread Jason
Can you post some code? Specifically the portion that does the drawing. On Nov 23, 1:44 am, Muleskinner ja...@maturusmobile.com wrote: Hi, I have an app that is working fine in 1.6 and up but crashing for apparently no reason in 1.5. The app suddenly quits with the following message...

[android-developers] Re: 1.5 quits for apparently no reason whilst animating (WIN DEATH)

2010-11-23 Thread Muleskinner
Hi Jason, Thanks for the reply. It's quite difficult to post code as there's a whole bunch of APIs I've ported over from JavaME that make up what's going on. I am going to try and whittle everything down to a simple test case. The basic 'draw' loop is the same as in the 'Lunar Lander' source,