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 application at this point?
Can you remove code piece by piece to see what might make a difference?
Or perhaps take the opposite track - start over again with HelloWorld,
build it up, until you see the crash again?
-- Kostya
24.11.2010 18:07, 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 drawing code and pretty much all run loop code!
This would seem to indicate a heap issue - could Android be shutting
down the app because it perceives it to be using too much memory? I
have tried setting vm.heapSize for the avd to 64megs and this makes no
difference. Also a test app I ran loads ten fullscreen images with no
problems (and the app that's crashing loads considerably less than
this).
Does this sort of issue ring any bells with anyone? Are there any
known limits on java code size, offscreen image size, class code size,
size for static variables or anything like this that could be causing
me problems?
Still completely stumped and any help appreciated. Stack trace from
the crash below if this means anything to anyone...
I/DEBUG ( 539): signal 11 (SIGSEGV), fault addr 00000004
I/DEBUG ( 539): r0 00000004 r1 4001d040 r2 00000004 r3 ad3296c5
I/DEBUG ( 539): r4 00000000 r5 00000000 r6 ad33cce1 r7 41039fb8
I/DEBUG ( 539): r8 100ffd00 r9 41039fb0 10 41039fa0 fp 00000001
I/DEBUG ( 539): ip ad35b874 sp 100ffce8 lr ad3296cf pc
afb045a8 cpsr 00000010
I/DEBUG ( 539): #00 pc 000045a8 /system/lib/libcutils.so
I/DEBUG ( 539): #01 lr ad3296cf /system/lib/
libandroid_runtime.so
I/DEBUG ( 539): stack:
I/DEBUG ( 539): 100ffca8 00000000
I/DEBUG ( 539): 100ffcac 00000000
I/DEBUG ( 539): 100ffcb0 00000000
I/DEBUG ( 539): 100ffcb4 00000000
I/DEBUG ( 539): 100ffcb8 00000000
I/DEBUG ( 539): 100ffcbc 41f84728
I/DEBUG ( 539): 100ffcc0 00000001
I/DEBUG ( 539): 100ffcc4 41f84728
I/DEBUG ( 539): 100ffcc8 00000001
I/DEBUG ( 539): 100ffccc 00000000
I/DEBUG ( 539): 100ffcd0 00000000
I/DEBUG ( 539): 100ffcd4 410903b0
I/DEBUG ( 539): 100ffcd8 100ffd30
I/DEBUG ( 539): 100ffcdc 00000005
I/DEBUG ( 539): 100ffce0 df002777
I/DEBUG ( 539): 100ffce4 e3a070ad
I/DEBUG ( 539): #00 100ffce8 00000000
I/DEBUG ( 539): 100ffcec ad3296cf /system/lib/
libandroid_runtime.so
I/DEBUG ( 539): 100ffcf0 100ffd20
I/DEBUG ( 539): 100ffcf4 ad33ccf1 /system/lib/
libandroid_runtime.so
I/DEBUG ( 539): 100ffcf8 4001d040
I/DEBUG ( 539): 100ffcfc ad00e3b8 /system/lib/libdvm.so
I/DEBUG ( 539): 100ffd00 410903b0
I/DEBUG ( 539): 100ffd04 001015a8 [heap]
I/DEBUG ( 539): 100ffd08 ad33cce1 /system/lib/
libandroid_runtime.so
I/DEBUG ( 539): 100ffd0c 4001d040
I/DEBUG ( 539): 100ffd10 00001071
I/DEBUG ( 539): 100ffd14 001015a8 [heap]
I/DEBUG ( 539): 100ffd18 100ffd20
I/DEBUG ( 539): 100ffd1c ad040a8d /system/lib/libdvm.so
I/DEBUG ( 539): 100ffd20 41039fb0
I/DEBUG ( 539): 100ffd24 420000f8
I/DEBUG ( 539): 100ffd28 ad33cce1 /system/lib/
libandroid_runtime.so
I/DEBUG ( 539): 100ffd2c 100ffd98
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en