[camera-app][mako] switching cameras crashes mm-qcamera-daemon

Bug #1204260 reported by Ricardo Salveti
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
camera-app
Invalid
High
Sergio Schvezov

Bug Description

Image: 20130723

HARDWARE=mako
JENKINS_BUILD=saucy-55
UBUNTU=ubuntu-touch-saucy-armhf
ubuntu/platform-api=:97
hybris=0.1.0+git20130606+c5d897a-0ubuntu11

Just open the camera-app and start switching cameras, you can easily reproduce the following crash:

E/mm-camera( 610): config_shutdown_pp Camera not in streaming mode. Returning.
E/mm-camera( 610): vfe_ops_deinit: E
E/qcom_sensors_hal( 607): hal_process_report_ind: Bad item quality: 11
E/mm-libcamera2( 554): mm_camera_util_private_s_ctrl: fd=104, S_CTRL, id=0x800000d, value = 0x42730a08, rc = -1
E/QCameraHWI_Parm( 554): native_set_parms failed: type 3 length 424 error Connection timed out
E/QCameraHWI_Parm( 554): MM_CAMERA_PARM_DIMENSION Failed.
F/ ( 2234): const VALUE& android::KeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = AutoFocusMode]: key not found
I/ubuntu::detail::ApplicationManager( 556): virtual void ubuntu::detail::ApplicationManager::binderDied(const android::wp<android::IBinder>&)():365
W/CameraService( 554): Disconnecting camera client 0x40104558 since the binder for it died (this pid 16)
I/ubuntu::detail::ApplicationManager( 556): virtual void ubuntu::detail::ApplicationManager::binderDied(const android::wp<android::IBinder>&)():371 -- remote_pid=2234 desktop_file=/usr/share/applications/camera-app.desktop
I/ubuntu::detail::ApplicationManager( 556): virtual void ubuntu::detail::ApplicationManager::binderDied(const android::wp<android::IBinder>&)():377
D/overlay ( 552): FROM_STATE = OV_BYPASS_2_LAYER TO_STATE = OV_CLOSED
I/ubuntu::detail::ApplicationManager( 556): virtual void ubuntu::detail::ApplicationManager::binderDied(const android::wp<android::IBinder>&)():383
I/ubuntu::detail::ApplicationManager( 556): virtual void ubuntu::detail::ApplicationManager::binderDied(const android::wp<android::IBinder>&)():387
I/ubuntu::detail::ApplicationManager( 556): virtual void ubuntu::detail::ApplicationManager::binderDied(const android::wp<android::IBinder>&)():391
I/ubuntu::detail::ApplicationManager( 556): virtual void ubuntu::detail::ApplicationManager::binderDied(const android::wp<android::IBinder>&)():395
D/overlay ( 552): FROM_STATE = OV_CLOSED TO_STATE = OV_BYPASS_1_LAYER
I/ubuntu::detail::ApplicationManager( 556): virtual void ubuntu::detail::ApplicationManager::binderDied(const android::wp<android::IBinder>&)():399
I/ubuntu::detail::ApplicationManager( 556): Raising application now for idx: 0 (stage_hint: 0)
I/CameraClient( 554): Destroying camera 0
I/ubuntu::detail::ApplicationManager( 556): system session - not raising it.
I/ubuntu::detail::ApplicationManager( 556): virtual void ubuntu::detail::ApplicationManager::binderDied(const android::wp<android::IBinder>&)():408
I/ubuntu::detail::ApplicationManager( 556): virtual void ubuntu::detail::ApplicationManager::binderDied(const android::wp<android::IBinder>&)():410
E/mm-camera( 610): config_shutdown_pp Camera not in streaming mode. Returning.
F/libc ( 610): Fatal signal 11 (SIGSEGV) at 0x0000e3e4 (code=1), thread 484 (mm-qcamera-daem)
W/InputDispatcher( 556): channel 'test' ~ Consumer closed input channel or an error occurred. events=0x9
E/InputDispatcher( 556): channel 'test' ~ Channel is unrecoverably broken and will be disposed!
I/DEBUG ( 550): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 550): Build fingerprint: 'google/occam/mako:4.2.1/JOP40D/533553:user/release-keys'
I/DEBUG ( 550): Revision: '11'
I/DEBUG ( 550): pid: 65, tid: 484, name: mm-qcamera-daem >>> /system/bin/mm-qcamera-daemon <<<
I/DEBUG ( 550): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000e3e4
I/DEBUG ( 550): r0 0000e200 r1 403ad1a8 r2 00000000 r3 403ad1a8
I/DEBUG ( 550): r4 0000000c r5 00000000 r6 00000000 r7 42b659b0
I/DEBUG ( 550): r8 00000042 r9 00100000 sl ffffffff fp 42ce493c
I/DEBUG ( 550): ip 403a5e8c sp 42ce4728 lr 403559e9 pc 40355b8a cpsr 60010030
I/DEBUG ( 550): d0 727473206e692074 d1 6d20676e696d6165
I/DEBUG ( 550): d2 746552202e65646f d3 202e676e696e7275
I/DEBUG ( 550): d4 0000000000000000 d5 0000000000000000
I/DEBUG ( 550): d6 0000000000000000 d7 0000000000000000
I/DEBUG ( 550): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 550): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 550): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 550): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 550): d16 3fe6666666666666 d17 3fefb8f8a0000000
I/DEBUG ( 550): d18 3ff4cccccccccccd d19 3fc5d9dce8bfb800
I/DEBUG ( 550): d20 3e54e7f84f2a92a0 d21 bf66bd6213a6601a
I/DEBUG ( 550): d22 3f11532f80055447 d23 bebbb813d18f57fa
I/DEBUG ( 550): d24 bf8f9d660edeb0f8 d25 4002fa766cb4e51e
I/DEBUG ( 550): d26 bfc7d3b365a728f0 d27 3c5048f0646b39c7
I/DEBUG ( 550): d28 bffd58a6e30d3498 d29 3f9cfe3a36f5b9ca
I/DEBUG ( 550): d30 4000000000000000 d31 3fc5d9dd04b93de0
I/DEBUG ( 550): scr 80000010
I/DEBUG ( 550):
I/DEBUG ( 550): backtrace:
I/DEBUG ( 550): #00 pc 00064b8a /system/lib/liboemcamera.so
I/DEBUG ( 550): #01 pc 0001bdd1 /system/lib/liboemcamera.so (mctl_release+52)
I/DEBUG ( 550): #02 pc 0001cfe5 /system/lib/liboemcamera.so
I/DEBUG ( 550): #03 pc 0000e46c /system/lib/libc.so (__thread_entry+72)
I/DEBUG ( 550):
I/DEBUG ( 550): stack:

Seems we need to handle the switch better, to avoid any sort of races, and making sure the hardware is ok for the switch (previous camera properly deactivated, etc).

Changed in touch-preview-images:
importance: Undecided → High
Paul Larson (pwlars)
Changed in camera-app:
status: New → Confirmed
Changed in touch-preview-images:
status: New → Confirmed
Omer Akram (om26er)
tags: added: qt-touch
tags: added: qa-touch
removed: qt-touch
Changed in camera-app:
assignee: nobody → Sergio Schvezov (sergiusens)
Julien Funk (jaboing)
tags: added: rls-t-incoming
Bill Filler (bfiller)
no longer affects: touch-preview-images
Revision history for this message
Florian Boucault (fboucault) wrote :

Is this still happening?

Revision history for this message
Florian Boucault (fboucault) wrote :

Closing as it's not happening anymore.

Changed in camera-app:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.