[Android Software Development] Wogz:
Hello,

Im the developer of https://market.android.com/details?id=com.frustaci.minersdemo.

Im trying to make the opengl render to work on in as many devices as

possible.

Currently, I know it's working in GalaxyS, Desire HD, Xperia Mini x10,

Motorola Defy and some other devices.

But in Nexus One (same gpu as xperia mini) the game starts up for a

few seconds, (loading starts everything looks fine) but shortly after

the game crashes and device dumps the memory.

It resolves to something crashing in libGLESv2_adreno200.so as you can

check below.

05-02 10:44:30.980 I/DEBUG ( 1087): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
05-02 10:44:30.980 I/DEBUG ( 1087): Build fingerprint: 'google/
passion/passion:2.3.3/GRI40/102588:user/release-keys'
05-02 10:44:30.980 I/DEBUG ( 1087): pid: 1116, tid: 1123 >>>
com.frustaci.minersdemo <<<
05-02 10:44:30.980 I/DEBUG ( 1087): signal 11 (SIGSEGV), code 1
(SEGV_MAPERR), fault addr 4627c000
05-02 10:44:30.980 I/DEBUG ( 1087): r0 46a25fc0 r1 4627bfe8 r2
00002000 r3 00000000
05-02 10:44:30.980 I/DEBUG ( 1087): r4 4463d8e0 r5 4463d8e0 r6
46116008 r7 000002fa
05-02 10:44:30.980 I/DEBUG ( 1087): r8 0036ae68 r9 000000f0 10
00000001 fp 00000780
05-02 10:44:30.980 I/DEBUG ( 1087): ip a2e081ac sp 4463d878 lr
8087caf3 pc afd0cd8c cpsr 28000010
05-02 10:44:30.980 I/DEBUG ( 1087): d0 0000000000000000 d1
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d2 0000000000000000 d3
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d4 0000000000000000 d5
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d6 0000000000000000 d7
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d8 0000000000000000 d9
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d10 0000000000000000 d11
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d12 0000000000000000 d13
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d14 0000000000000000 d15
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d16 ff000000ff000000 d17
ff000000ff000000
05-02 10:44:30.980 I/DEBUG ( 1087): d18 0707070703030303 d19
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d20 0100010001000100 d21
0100010001000100
05-02 10:44:30.980 I/DEBUG ( 1087): d22 0000000000000000 d23
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d24 0000000000000000 d25
0000000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): d26 0001000100010001 d27
0001000100010001
05-02 10:44:30.980 I/DEBUG ( 1087): d28 0001000100010001 d29
0001000100010001
05-02 10:44:30.980 I/DEBUG ( 1087): d30 0000000000000000 d31
3ff0000000000000
05-02 10:44:30.980 I/DEBUG ( 1087): scr 20000012
05-02 10:44:30.980 I/DEBUG ( 1087):
05-02 10:44:31.070 I/DEBUG ( 1087): #00 pc 0000cd8c /
system/lib/libc.so
05-02 10:44:31.070 I/DEBUG ( 1087): #01 pc 0007caf0 /
system/lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): #02 pc 0007cd56 /
system/lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): #03 pc 0007d54c /
system/lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): #04 pc 0007eb56 /
system/lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): #05 pc 0007ec44 /
system/lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): #06 pc 0007f8fc /
system/lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): #07 pc 0006a634 /
system/lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): #08 pc 0006a868 /
system/lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): #09 pc 0005b340 /
system/lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): #10 pc 0002fa8c /
system/lib/libandroid_runtime.so
05-02 10:44:31.070 I/DEBUG ( 1087): #11 pc 00017e34 /
system/lib/libdvm.so
05-02 10:44:31.070 I/DEBUG ( 1087):
05-02 10:44:31.070 I/DEBUG ( 1087): code around pc:
05-02 10:44:31.070 I/DEBUG ( 1087): afd0cd6c f5d1f000 f5d1f040
e2522040 3a000009
05-02 10:44:31.070 I/DEBUG ( 1087): afd0cd7c f5d1f080 f5d1f0c0
f5d1f100 f421020d
05-02 10:44:31.070 I/DEBUG ( 1087): afd0cd8c f421420d f5d1f100
e2522040 f400022d
05-02 10:44:31.070 I/DEBUG ( 1087): afd0cd9c f400422d 2afffff8
e2822040 e2522020
05-02 10:44:31.070 I/DEBUG ( 1087): afd0cdac 3a000003 f421020d
e2522020 f400022d
05-02 10:44:31.070 I/DEBUG ( 1087):
05-02 10:44:31.070 I/DEBUG ( 1087): code around lr:
05-02 10:44:31.070 I/DEBUG ( 1087): 8087cad0 0010f8d8 a008f8d1
f8d89007 9104100c
05-02 10:44:31.070 I/DEBUG ( 1087): 8087cae0 6960b1c3 f8d84619
ea4f2030 f7dd0959
05-02 10:44:31.070 I/DEBUG ( 1087): 8087caf0 087fecdc 0a5aea4f
0f01f1b9 f04fbf38
05-02 10:44:31.070 I/DEBUG ( 1087): 8087cb00 2f010901 2701bf38
0f01f1ba f04fbf38
05-02 10:44:31.070 I/DEBUG ( 1087): 8087cb10 26010a01 1c739a06
20182130 8503fb01
05-02 10:44:31.070 I/DEBUG ( 1087):
05-02 10:44:31.070 I/DEBUG ( 1087): stack:
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d838 a2e03094 /system/
lib/libgsl.so
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d83c c00c0923
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d840 4463d85c
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d844 0000000c
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d848 ffffffff
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d84c 00000000
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d850 002a80c0
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d854 00000001
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d858 00001000
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d85c 6695f000
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d860 468c0000
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d864 00000001
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d868 00000020
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d86c ffffffe0
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d870 df002777
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d874 e3a070ad
05-02 10:44:31.070 I/DEBUG ( 1087): #00 4463d878 468c0000
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d87c 8087caf3 /system/
lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): #01 4463d880 809aa954
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d884 00000001
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d888 fffff22c
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d88c fffff3a0
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d890 00000004
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d894 80879ac9 /system/
lib/egl/libGLESv2_adreno200.so
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d898 003682b4
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d89c 00000001
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8a0 0036b100
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8a4 000c0600
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8a8 00000000
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8ac 0036ae68
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8b0 4463d8e0
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8b4 002f4ae8
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8b8 0036ae68
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8bc 003682b0
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8c0 4463d8e0
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8c4 00000000
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8c8 0036ae68
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8cc 003682b4
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8d0 46116008
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8d4 809a855c
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8d8 00000780
05-02 10:44:31.070 I/DEBUG ( 1087): 4463d8dc 8087cd5b /system/
lib/egl/libGLESv2_adreno200.so

Manged to obtain this parsing the stack against

libGLESv2_adreno200.asm.

0x0000cd8c: memcpy + 0x001c
0x0007caf0: rb_surface_map_cubeface + 0x00a4
0x0007cd56: rb_surface_alloc + 0x0036
0x0007d54c:rb_texture_mipmap_to_pixel_surface + 0x0184
0x0007eb56: rb_texture_delete_hw_image + 0x0596
0x0007ec44: rb_texture_delete_hw_image + 0x0684
0x0007f8fc: rb_texture_make_resident + 0x0528
0x0006a634:qgl2DrvAPI_glExtGetTexSubImageQCOM + 0x02a0
0x0006a868:qgl2DrvAPI_glExtGetTexSubImageQCOM + 0x04d4
0x0005b340: glTestFenceNV + 0x0000

Any chance anyone has ever seen this? Has any ideia?