SurfaceFlinger and permitions

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

SurfaceFlinger and permitions

Postby guian » Fri Apr 24, 2009 4:15 pm

I'm porting my app on the t-mobile G1. this app uses OpenGL (using the glSurfaceView from API demo )

my app works fine on the emulator with these minor errors :

04-24 16:57:04.957: ERROR/GLLogger(213): couldn't load <libhgl.so> library (Cannot find library)
04-24 16:57:05.147: DEBUG/SurfaceFlinger(45): pid 213 requesting gpu surface (current owner = -1)
04-24 16:57:05.157: ERROR/MemoryHeapBase(45): error opening /dev/pmem_gpu1: No such file or directory
04-24 16:57:05.157: ERROR/MemoryHeapBase(45): error opening /dev/pmem_gpu0: No such file or directory
04-24 16:57:05.157: DEBUG/SurfaceFlinger(45): pid 213 requesting gpu surface (current owner = -2)
04-24 16:57:05.157: ERROR/MemoryHeapBase(45): error opening /dev/pmem_gpu1: No such file or directory
04-24 16:57:05.157: ERROR/MemoryHeapBase(45): error opening /dev/pmem_gpu0: No such file or directory


when lauching it on the G1 errors become :
and the app simply close.

D/SurfaceFlinger(18083): pid 18620 requesting gpu core (owner = -1)
D/SurfaceFlinger(18083): pid 18620 requesting gpu surface (current owner = -1)
D/SurfaceFlinger(18083): gpu surface granted to pid 18620
D/SurfaceFlinger(18083): pid 18620 requesting gpu surface (current owner = 18620)
D/SurfaceFlinger(18083): gpu surface granted to pid 18620
I/ActivityManager(18083): Displayed activity com.mypackage.package/.Test: 11906 ms
D/EGL.oem (18620): SMI region at virtual=0x45648000, physical=0x0, size=7340032 offset=0
D/EGL.oem (18620): EBI1 region at virtual=0x45d48000, physical=0x16500000, size=8388608 offset=1228800
D/EGL.oem (18620): REGS region at virtual=0x44c44000, physical=0xa0000000, size=1048576, offset=0
D/dalvikvm(18620): GC freed 1754 objects / 95936 bytes in 108ms
D/dalvikvm(18620): GC freed 309 objects / 15832 bytes in 92ms
D/dalvikvm(18620): GC freed 63 objects / 2152 bytes in 93ms
D/dalvikvm(18620): GC freed 70 objects / 2592 bytes in 91ms
I/ActivityManager(18083): Process com.navigaia.android (pid 18319) has died.
D/dalvikvm(18620): GC freed 44 objects / 1576 bytes in 118ms
D/dalvikvm(18620): GC freed 52 objects / 1856 bytes in 93ms
D/dalvikvm(18620): GC freed 50 objects / 1784 bytes in 92ms
D/dalvikvm(18620): GC freed 52 objects / 1840 bytes in 91ms
D/dalvikvm(18620): GC freed 50 objects / 1784 bytes in 94ms
D/dalvikvm(18620): GC freed 44 objects / 1560 bytes in 95ms
D/dalvikvm(18620): GC freed 52 objects / 1840 bytes in 120ms
D/dalvikvm(18620): GC freed 50 objects / 1784 bytes in 92ms
D/dalvikvm(18620): GC freed 44 objects / 1568 bytes in 91ms
D/dalvikvm(18620): GC freed 44 objects / 1576 bytes in 92ms
D/dalvikvm(18620): GC freed 52 objects / 2576 bytes in 93ms
I/ActivityManager(18083): Process com.smartcapsules.cooking.android.taster (pid 18288) has died.
I/DEBUG ( 29): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 29): Build fingerprint: 'android-devphone1/dream_devphone/dream/trout:1.1/UNLOCKED/142608:userdebug/test-keys'
I/DEBUG ( 29): pid: 18620, tid: 18636 >>> com.myPackage.package <<<
I/DEBUG ( 29): signal 11 (SIGSEGV), fault addr 000000c0
I/DEBUG ( 29): r0 00000018 r1 001a94d8 r2 00000001 r3 00000000
I/DEBUG ( 29): r4 001aa4d8 r5 001a94d8 r6 ad31a3fc r7 00000000
I/DEBUG ( 29): r8 fffffffe r9 ffffffff 10 00000001 fp deadbeef
I/DEBUG ( 29): ip 00000000 sp 44c43d78 lr 8012eaac pc 80123250 cpsr 00000010
I/DEBUG ( 29): #00 pc 80123250 /system/lib/libhgl.so
I/DEBUG ( 29): #01 lr 8012eaac /system/lib/libhgl.so
I/DEBUG ( 29): stack:
I/DEBUG ( 29): 44c43d38 00000320
I/DEBUG ( 29): 44c43d3c afe35d78
I/DEBUG ( 29): 44c43d40 001e62d0 [heap]
I/DEBUG ( 29): 44c43d44 001aac70 [heap]
I/DEBUG ( 29): 44c43d48 ffffffcf
I/DEBUG ( 29): 44c43d4c 00000000
I/DEBUG ( 29): 44c43d50 ffffffe0
I/DEBUG ( 29): 44c43d54 8012eaac /system/lib/libhgl.so
I/DEBUG ( 29): 44c43d58 001aac70 [heap]
I/DEBUG ( 29): 44c43d5c 8012ea00 /system/lib/libhgl.so
I/DEBUG ( 29): 44c43d60 001aa4d8 [heap]
I/DEBUG ( 29): 44c43d64 001a94d8 [heap]
I/DEBUG ( 29): 44c43d68 ad31a3fc /system/lib/libandroid_runtime.so
I/DEBUG ( 29): 44c43d6c 00000000
I/DEBUG ( 29): 44c43d70 df002777
I/DEBUG ( 29): 44c43d74 e3a070ad
I/DEBUG ( 29): #00 44c43d78 44c43dc0
I/DEBUG ( 29): 44c43d7c 00000000
I/DEBUG ( 29): 44c43d80 ad31a3fc /system/lib/libandroid_runtime.so
I/DEBUG ( 29): 44c43d84 41016eb4
I/DEBUG ( 29): 44c43d88 44c43da0
I/DEBUG ( 29): 44c43d8c 41016eac
I/DEBUG ( 29): 44c43d90 41016e98
I/DEBUG ( 29): 44c43d94 00000001
I/DEBUG ( 29): 44c43d98 acb15524
I/DEBUG ( 29): 44c43d9c ad00d9f8 /system/lib/libdvm.so
I/DEBUG ( 29): 44c43da0 41092718
I/DEBUG ( 29): 44c43da4 001e0ee8 [heap]
I/DEBUG ( 29): 44c43da8 ad31a3fc /system/lib/libandroid_runtime.so
I/DEBUG ( 29): 44c43dac 00000000
I/DEBUG ( 29): 44c43db0 00003072
I/DEBUG ( 29): 44c43db4 001e0ee8 [heap]
I/DEBUG ( 29): 44c43db8 44c43dc0
I/DEBUG ( 29): 44c43dbc ad041211 /system/lib/libdvm.so
I/ActivityManager(18083): Process com.myPackagepackage (pid 18620) has died.
D/Zygote (18059): Process 18620 terminated by signal (11)
E/SurfaceFlinger(18083): HW3D_REVOKE_GPU failed (Operation not permitted), mFD=100, base=0x4b670000
I/WindowManager(18083): WIN DEATH: Window{4363a5f0 SurfaceView}
I/WindowManager(18083): WIN DEATH: Window{43611138 com.myPackage.package/com.myPackage.package.Test}


the error is :
E/SurfaceFlinger(18083): HW3D_REVOKE_GPU failed (Operation not permitted), mFD=100, base=0x4b670000

what should I do to avoid this to happen?
thx for helping.
guian
Developer
Developer
 
Posts: 35
Joined: Tue Nov 18, 2008 3:43 pm

Top

?

Postby guian » Thu Apr 30, 2009 2:14 pm

nobody can help ?

The error is a little bit different since I moved from OpenGL ES 1.1 to OpenGL ES 1.0, but still here on the GPU surface request :

E/SurfaceFlinger( 65): HW3D_REVOKE_GPU failed (Invalid argument), mFD=146, base=0x499f8000
guian
Developer
Developer
 
Posts: 35
Joined: Tue Nov 18, 2008 3:43 pm

Permission Denial: can't access SurfaceFlinger pid=1080, ui

Postby spoorti » Tue Oct 13, 2009 11:09 am

Hi,
I am trying to use surface flinger in middle ware for playing vedio and getting the below error

Permission Denial: can't access SurfaceFlinger pid=1080, uid=10020

If any body knows how to overcome this please hep me..
spoorti
Junior Developer
Junior Developer
 
Posts: 12
Joined: Mon Jul 06, 2009 6:36 am

Postby guian » Tue Oct 13, 2009 1:04 pm

hi !

did tyou try to add the permission in your manifest.xml :

<uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" />

?
guian
Developer
Developer
 
Posts: 35
Joined: Tue Nov 18, 2008 3:43 pm

hi

Postby spoorti » Tue Oct 13, 2009 2:14 pm

yes I have added.. Still there is an error.
spoorti
Junior Developer
Junior Developer
 
Posts: 12
Joined: Mon Jul 06, 2009 6:36 am

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests