Hi there, I've a big problem with the Camera in my ap. I don't know if it depends from me or not.
After I have taken more or less ten pictures with my app continuously, the camera is crashed, and the device is become very slow. It's also impossible to start the camera built-in or any other apps that use camera. >From the log: 06-03 12:40:52.510: INFO/ActivityManager(70): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera bnds=[5,410][115,528] } 06-03 12:40:52.550: INFO/ActivityManager(70): Start proc com.android.camera for activity com.android.camera/.Camera: pid=15556 uid=10017 gids={1015, 1006, 2001, 3003} 06-03 12:40:52.590: INFO/dalvikvm(15556): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) 06-03 12:40:52.600: INFO/WindowManager(70): Setting rotation to 1, animFlags=0 06-03 12:40:52.630: INFO/ActivityManager(70): Config changed: { scale=1.0 imsi=222/10 loc=it_IT touch=3 keys=1/1/2 nav=3/1 orien=2 layout=34} 06-03 12:40:52.690: VERBOSE/RenderScript_jni(140): surfaceChanged 06-03 12:40:52.690: VERBOSE/RenderScript(140): setSurface 800 480 0x38b828 06-03 12:40:52.690: ERROR/Surface(140): surface (id=0, identity=6482) is invalid, err=-19 (No such device) 06-03 12:40:52.690: ERROR/Surface(140): surface (id=0, identity=6482) is invalid, err=-19 (No such device) 06-03 12:40:52.700: INFO/dalvikvm(15556): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=40) 06-03 12:40:52.721: VERBOSE/RenderScript(131): setSurface 800 480 0x11be40 06-03 12:40:53.000: DEBUG/dalvikvm(15556): GC freed 1417 objects / 95952 bytes in 41ms 06-03 12:40:53.030: DEBUG/CameraService(52): CameraService::connect E (pid 15556, client 0x6eb78) 06-03 12:40:53.090: ERROR/Surface(140): invalid token (-1, identity=0) or client (0x0) 06-03 12:40:53.090: ERROR/Adreno200-EGL(140): egliGetNativeWindowSize: unable to dequeue native buffer 06-03 12:40:53.090: ERROR/Surface(140): invalid token (-1, identity=0) or client (0x0) 06-03 12:40:53.090: ERROR/Adreno200-EGL(140): egliGetNativeWindowSize: unable to dequeue native buffer 06-03 12:40:53.090: ERROR/RenderScript(140): EGL/Surface mismatch EGL (0 x 0) SF (800 x 480) 06-03 12:40:53.230: ERROR/RenderScript(140): Pending GL Error, 0x417cb0 06-03 12:40:53.280: VERBOSE/RenderScript_jni(140): surfaceDestroyed 06-03 12:40:53.280: VERBOSE/RenderScript(140): setSurface 0 0 0x0 06-03 12:40:57.618: WARN/WindowManager(70): App freeze timeout expired. 06-03 12:40:57.618: WARN/WindowManager(70): Force clearing freeze: AppWindowToken{44bac7a8 token=HistoryRecord{44b9a8e8 com.android.camera/.Camera}} >From my apps I can see that it is block on "surfaceCreate()" public void surfaceCreated(SurfaceHolder holder) { Log.d("DEBUG", "surfaceCreated"); mCamera = Camera.open(); Log.d("DEBUG", "Camera open()"); } I test my app on N1. Please help me to undertand this. Thanks to all. -- 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