AnsweredAssumed Answered

Google Camera App crashes in Android Lollipop

Question asked by san msk on Nov 3, 2015

Hi Everyone,

Recently I tried to test Google Camera Application in my custom sabresd board running on Android Lollipop. This application seems to crash when Camera Settings option is opened.

Following is the error log,

I/FslCameraHAL(  183): stopAllStreams end

I/FslCameraHAL(  183): handleRequest end...

period 66 ,timeout is 0, wake up is :0

V/CAM_LcyLocProvider( 1370): stopping location updates

D/CAM_LcyLocProvider( 1370): stopReceivingLocationUpdates

V/CAM_CameraActivity( 1370): onPause closing camera

V/CAM_CameraController( 1370): Closing camera

I/FslCameraHAL(  183): RequestManager releaseStream stream id:0

I/FslCameraHAL(  183): RequestManager releaseStream end...

I/FslCameraHAL(  183): RequestManager releaseStream stream id:3

I/FslCameraHAL(  183): RequestManager releaseStream end...

I/FslCameraHAL(  183): RequestManager release...

I/FslCameraHAL(  183): RequestManager release end...

I/FslCameraHAL(  183): RequestManager release...

I/FslCameraHAL(  183): RequestManager release end...

I/CAM_Profiler( 1370): [461.608ms][ui] GUARD: CameraActivity.onPause - STOP

V/CAM_QuickActivity( 1370): END onPause: Activity = com.android.camera.CameraActivity@45e5ff5

I/Camera2Client(  183): Camera 0: Closed

I/Camera2ClientBase(  183): Closed Camera 0. Client was: com.google.android.GoogleCamera (PID 1370, UID 10048)

D/NuPlayerDriver(  183): reset(0xb59a03a0)

D/NuPlayerDriver(  183): notifyResetComplete(0xb59a03a0)

D/NuPlayerDriver(  183): reset(0xb59a0280)

D/NuPlayerDriver(  183): notifyResetComplete(0xb59a0280)

D/CAM_Camera2OneCamMgr( 1370): Getting First FRONT Camera

W/CAM_Camera2OneCamMgr( 1370): No front-facing camera found.

D/CAM_Camera2OneCamMgr( 1370): Getting First BACK Camera

D/AndroidRuntime( 1370): Shutting down VM

E/AndroidRuntime( 1370): FATAL EXCEPTION: main

E/AndroidRuntime( 1370): Process: com.google.android.GoogleCamera, PID: 1370

E/AndroidRuntime( 1370): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.GoogleCamera/com.android.camera.settings.CameraSettingsActi

vity}: java.lang.IllegalArgumentException: Camera id null does not match any currently connected camera device

E/AndroidRuntime( 1370):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)

E/AndroidRuntime( 1370):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)

E/AndroidRuntime( 1370):        at android.app.ActivityThread.access$800(ActivityThread.java:151)

E/AndroidRuntime( 1370):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)

E/AndroidRuntime( 1370):        at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 1370):        at android.os.Looper.loop(Looper.java:135)

E/AndroidRuntime( 1370):        at android.app.ActivityThread.main(ActivityThread.java:5254)

E/AndroidRuntime( 1370):        at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 1370):        at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 1370):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

E/AndroidRuntime( 1370):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

E/AndroidRuntime( 1370): Caused by: java.lang.IllegalArgumentException: Camera id null does not match any currently connected camera device

E/AndroidRuntime( 1370):        at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:163)

E/AndroidRuntime( 1370):        at com.android.camera.one.v2.Camera2OneCameraManagerImpl.getCameraCharacteristics(Camera2OneCameraManagerImpl.java:116)

E/AndroidRuntime( 1370):        at com.android.camera.one.v2.Camera2OneCameraManagerImpl.getOneCameraCharacteristics(Camera2OneCameraManagerImpl.java:109)

E/AndroidRuntime( 1370):        at com.android.camera.settings.CameraSettingsActivity.onCreate(CameraSettingsActivity.java:98)

E/AndroidRuntime( 1370):        at android.app.Activity.performCreate(Activity.java:5990)

E/AndroidRuntime( 1370):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)

E/AndroidRuntime( 1370):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)

E/AndroidRuntime( 1370):        ... 10 more

W/ActivityManager(  451):   Force finishing activity 1 com.google.android.GoogleCamera/com.android.camera.settings.CameraSettingsActivity

W/ActivityManager(  451):   Force finishing activity 2 com.google.android.GoogleCamera/com.android.camera.CameraLauncher

I/OpenGLRenderer(  451): Initialized EGL, version 1.4

E/BufferQueueProducer(  178): [Application Error: com.google.android.GoogleCamera] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

W/ActivityManager(  451): Activity pause timeout for ActivityRecord{244dcb45 u0 com.google.android.GoogleCamera/com.android.camera.settings.CameraSettingsActivity t21 f}

E/BufferQueueProducer(  178): [com.android.launcher/com.android.launcher2.Launcher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

W/ResourceType(  543): No package identifier when getting value for resource number 0x00000

 

It seems that application passes out a null CameraId while getCameraCharacteristics is called. Where this issue needs to be fixed in Android Frameworks?

 

Regards,

Sandheep

Outcomes