You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Scott J. Pearson (JIRA)" <ji...@apache.org> on 2016/02/15 15:43:18 UTC

[jira] [Created] (CB-10617) Follow-up: Periodic crashing on close of Camera plugin on SOME Androids

Scott J. Pearson created CB-10617:
-------------------------------------

             Summary: Follow-up: Periodic crashing on close of Camera plugin on SOME Androids
                 Key: CB-10617
                 URL: https://issues.apache.org/jira/browse/CB-10617
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Camera
            Reporter: Scott J. Pearson


CB-10507

I implemented the fixes in CB-10507. The researcher in Botswana said that it fixes the code crashes in 50% of the cases, but 50% crash as follows. I wonder if you have any ideas. Thanks.

Scott

I/sensor_drv_u(  156): L 1514, _Sensor_SetId: SENSOR: add I2C driver OK.
I/sensor_drv_u(  156): L 1077, Sensor_PowerOn_Ex: SENSOR:  power_down_level = 0,
 avdd_val = 3
I/sensor_drv_u(  156): L 1743, _Sensor_SetStatus: _Sensor_SetStatus: 2
I/sensor_drv_u(  156): L 1486, _Sensor_SetId: _Sensor_SetId:sensor_id=0,is_regis
ter_sensor=1,is_main_sensor=1
I/sensor_drv_u(  156): L 1747, _Sensor_SetStatus: _Sensor_SetStatus: 3
I/sensor_drv_u(  156): L 1135, Sensor_SetExportInfo: SENSOR: Sensor_SetExportInf
o.
I/sensor_drv_u(  156): L 1750, _Sensor_SetStatus: _Sensor_SetStatus: 4
I/sensor_drv_u(  156): L 2528, Sensor_Open: 2, sensor set status
I/sensor_drv_u(  156): L 1529, Sensor_GetCurId: Sensor_GetCurId,sensor_id =0
I/sensor_drv_u(  156): L 2536, Sensor_Open: 3:sensor_id :0,addr=0x28
I/sensor_drv_u(  156): L 688, Sensor_SetI2CClock: Sensor_SetI2CClock: clock = 40
0000
I/        (  156): L 1824, _sr541_set_vendorid: _sr541_set_vendorid
I/        (  156): L 1828, _sr541_set_vendorid: _sr541_set_vendorid : Vendor ID
is already set (0x0A05)
I/        (  156): L 1471, _sr541_InitExifInfo: _sr541_InitExifInfo
I/sensor_drv_u(  156): L 1135, Sensor_SetExportInfo: SENSOR: Sensor_SetExportInf
o.
D/cmr_msg (  156): L 190, cmr_msg_post: queue_handle 0xb7836d40, msg type 0x8000
1 num 0 cnt 10
D/cmr_msg (  156): L 190, cmr_msg_post: queue_handle 0xb7836d40, msg type 0x8000
7 num 1 cnt 10
D/cmr_msg (  156): L 98, cmr_msg_get: queue_handle 0xb7836d40, msg type 0x80001
num 1 cnt 10
I/sensor_drv_u(  156): L 3711, _Sensor_ThreadProc: Msg, 0x80001
I/sensor_drv_u(  156): L 3712, _Sensor_ThreadProc: timestamp = 6318007.
I/sensor_drv_u(  156): L 2588, _Sensor_SetMode: _Sensor_SetMode : mode = 0
I/sensor_drv_u(  156): L 1529, Sensor_GetCurId: Sensor_GetCurId,sensor_id =0
I/sensor_drv_u(  156): L 936, Sensor_SetMCLK: Sensor_SetMCLK mclk = 24
I/sensor_drv_u(  156): L 938, Sensor_SetMCLK: Sensor_SetMCLK Done mclk = 24, ret
 = 0
I/sensor_drv_u(  156): L 1418, Sensor_SendRegTabToSensor: Sensor_SendRegTabToSen
sor
E/        (  156): L 169, isp_raw_para_update_from_file: sensor is not raw farma
t!!
D/cmr_msg (  156): L 190, cmr_msg_post: queue_handle 0xb7836d40, msg type 0x8000
1 num 1 cnt 10
I/sensor_drv_u(  156): L 2565, Sensor_Open: 4 open success
I/sensor_drv_u(  156): L 2976, Sensor_GetInfo: Sensor_GetInfo: info=b78311b8
I/SprdOEMCamera(  156): L 443, camera_sensor_init: It's YUV Sensor, 0
I/cmr_oem (  156): L 875, camera_sensor_inf: lane_num 2, bits_per_pxl 8, is_loos
e 1
I/SprdOEMCamera(  156): L 2053, camera_init_internal: timestamp = 6318010.
I/cmr_v4l2(  156): L 106, cmr_v4l2_init: Start to open V4L2 device.
I/cmr_v4l2(  156): L 113, cmr_v4l2_init: OK to open device.
I/cmr_v4l2(  156): L 657, cmr_v4l2_scale_capability: width 4096, sc_factor 4
I/SprdOEMCamera(  156): L 9040, camera_cb_thread_init: inited, 0
I/SprdOEMCamera(  156): L 9042, camera_cb_thread_init: timestamp = 6318011.
D/cmr_msg (  156): L 33, cmr_msg_queue_create: count 0x28
D/cmr_msg (  156): L 56, cmr_msg_queue_create: queue_handle 0xb78372a0
I/SprdOEMCamera(  156): L 9093, camera_cb_thread_proc: timestamp = 6318013.
D/cmr_msg (  156): L 190, cmr_msg_post: queue_handle 0xb78372a0, msg type 0x2008
00 num 0 cnt 40
I/SprdOEMCamera(  156): L 1028, camera_cap_thread_init: inited, 0
I/SprdOEMCamera(  156): L 1030, camera_cap_thread_init: timestamp = 6318013.
D/cmr_msg (  156): L 33, cmr_msg_queue_create: count 0x14
D/cmr_msg (  156): L 56, cmr_msg_queue_create: queue_handle 0xb7c58200
I/SprdOEMCamera(  156): L 9095, camera_cb_thread_proc: timestamp = 6318013.
I/SprdOEMCamera(  156): L 9105, camera_cb_thread_proc: timestamp = 6318013.
I/SprdOEMCamera(  156): L 9106, camera_cb_thread_proc: callback thread inited
I/SprdOEMCamera(  156): L 9107, camera_cb_thread_proc: timestamp = 6318013.
I/cmr_v4l2(  156): L 742, cmr_v4l2_thread_proc: cmr_v4l2_thread_proc : In
I/SprdOEMCamera(  156): L 1635, camera_cap_thread_proc: timestamp = 6318014.
D/cmr_msg (  156): L 190, cmr_msg_post: queue_handle 0xb7c58200, msg type 0x2002
00 num 0 cnt 20
I/SprdOEMCamera(  156): L 1081, camera_cap_subthread_init: inited, 0
I/SprdOEMCamera(  156): L 1083, camera_cap_subthread_init: timestamp = 6318014.
D/cmr_msg (  156): L 33, cmr_msg_queue_create: count 0x14
D/cmr_msg (  156): L 56, cmr_msg_queue_create: queue_handle 0xb78377c0
I/SprdOEMCamera(  156): L 1637, camera_cap_thread_proc: timestamp = 6318014.
D/cmr_msg (  156): L 98, cmr_msg_get: queue_handle 0xb7c58200, msg type 0x200200
 num 0 cnt 20
I/SprdOEMCamera(  156): L 1645, camera_cap_thread_proc: capture thread: message.
msg_type 0x200200, data 0x0
I/SprdOEMCamera(  156): L 1650, camera_cap_thread_proc: timestamp = 6318014.
I/SprdOEMCamera(  156): L 1651, camera_cap_thread_proc: capture_thread inited
I/SprdOEMCamera(  156): L 1652, camera_cap_thread_proc: timestamp = 6318014.
I/SprdOEMCamera(  156): L 1886, camera_cap_subthread_proc: timestamp = 6318015.
D/cmr_msg (  156): L 190, cmr_msg_post: queue_handle 0xb78377c0, msg type 0x2002
00 num 0 cnt 20
I/SprdOEMCamera(  156): L 844, camera_prev_thread_init: inited, 0
I/SprdOEMCamera(  156): L 846, camera_prev_thread_init: timestamp = 6318015.
D/cmr_msg (  156): L 33, cmr_msg_queue_create: count 0x14
D/cmr_msg (  156): L 56, cmr_msg_queue_create: queue_handle 0xb78377e8
I/SprdOEMCamera(  156): L 1888, camera_cap_subthread_proc: timestamp = 6318015.
D/cmr_msg (  156): L 98, cmr_msg_get: queue_handle 0xb78377c0, msg type 0x200200
 num 0 cnt 20
I/SprdOEMCamera(  156): L 1897, camera_cap_subthread_proc: capture subthread: me
ssage.msg_type 0x200200, data 0x0
I/SprdOEMCamera(  156): L 1901, camera_cap_subthread_proc: timestamp = 6318015.
I/SprdOEMCamera(  156): L 1902, camera_cap_subthread_proc: capture sub thread in
ited
I/SprdOEMCamera(  156): L 1903, camera_cap_subthread_proc: timestamp = 6318016.
I/SprdOEMCamera(  156): L 922, camera_prev_thread_proc: timestamp = 6318016.
D/cmr_msg (  156): L 190, cmr_msg_post: queue_handle 0xb78377e8, msg type 0x2000
00 num 0 cnt 20
I/SprdOEMCamera(  156): L 547, camera_isp_init: timestamp = 6318016.
D/SprdOEMCamera(  156): L 550, camera_isp_init: No need to init ISP 1 0
D/cmr_msg (  156): L 33, cmr_msg_queue_create: count 0x28
D/cmr_msg (  156): L 56, cmr_msg_queue_create: queue_handle 0xb7837810
E/jpeg_codec(  156): L 684, _create_thread: Start
D/cmr_msg (  156): L 190, cmr_msg_post: queue_handle 0xb7837810, msg type 0x1000
000 num 0 cnt 40
I/cmr_rotate(  156): L 96, cmr_rot_open: handle=0xb7c59048
D/cmr_msg (  156): L 33, cmr_msg_queue_create: count 0x14
D/cmr_msg (  156): L 56, cmr_msg_queue_create: queue_handle 0xb7835e70
I/SprdOEMCamera(  156): L 924, camera_prev_thread_proc: timestamp = 6318016.
D/cmr_msg (  156): L 98, cmr_msg_get: queue_handle 0xb78377e8, msg type 0x200000
 num 0 cnt 20
I/SprdOEMCamera(  156): L 940, camera_prev_thread_proc: timestamp = 6318016.
I/SprdOEMCamera(  156): L 941, camera_prev_thread_proc: preview_thread inited
I/SprdOEMCamera(  156): L 942, camera_prev_thread_proc: timestamp = 6318017.
I/jpeg_codec(  156): L 807, _thread_proc: JPEG Thread In
D/cmr_msg (  156): L 98, cmr_msg_get: queue_handle 0xb7837810, msg type 0x100000
0 num 0 cnt 40
I/jpeg_codec(  156): L 816, _thread_proc: jpeg: message.msg_type 0x1000000
I/JPG     (  156): JPEGEncDec_Init, In
E/JPG     (  156): JPEGENC jpg addr 0xb277a000
I/JPG     (  156): JPEGEncDec_Init, Out
I/Cmr_scale(  156): L 306, cmr_scale_open: scale handle: b7837838
I/Cmr_scale(  156): L 465, cmr_scale_capability: scale width=4096, sc_factor=4
I/cmr_copy(  156): L 42, cmr_dma_copy_init: OK to open dma copy device.
I/SprdOEMCamera(  156): L 9869, camera_cap_sub2_thread_init: inited 0
I/SprdOEMCamera(  156): L 9871, camera_cap_sub2_thread_init: timestamp = 6318018
.
D/cmr_msg (  156): L 33, cmr_msg_queue_create: count 0x14
D/cmr_msg (  156): L 56, cmr_msg_queue_create: queue_handle 0xb7835e98
I/Cmr_scale(  156): L 107, cmr_scale_thread_proc: scale thread: In
I/SprdOEMCamera(  156): L 9808, camera_cap_sub2_thread_proc: timestamp = 6318020
.
I/SprdOEMCamera(  156): L 9810, camera_cap_sub2_thread_proc: timestamp = 6318020
.
D/cmr_msg (  156): L 190, cmr_msg_post: queue_handle 0xb7835e98, msg type 0x2002
00 num 0 cnt 20
D/cmr_set (  156): L 692, camera_setting_init: 0xffffffff 0x0 0x0
D/cmr_msg (  156): L 98, cmr_msg_get: queue_handle 0xb7835e98, msg type 0x200200
 num 0 cnt 20
E/SprdOEMCamera(  156): L 9821, camera_cap_sub2_thread_proc: message.msg_type 0x
200200, sub-type 0x0
I/SprdOEMCamera(  156): L 3855, camera_create_main_thread: timestamp = 6318020.
I/SprdOEMCamera(  156): L 9452, camera_is_sensor_support_zsl: ret=1
I/SprdCameraHardware(  156): waiting for camera_start.g_camera_id: 0.
I/SprdOEMCamera(  156): L 2541, camera_start: OK to init_device.
I/SprdCameraHardware(  156): getCameraState: SPRD_INIT
I/SprdCameraHardware(  156): HandleCameraStart in : cb = 10, parm4 = 0x0, state
= SPRD_INIT
I/SprdCameraHardware(  156): transitionState E
I/SprdCameraHardware(  156): transitionState: owner = 0, lock = 1
I/SprdCameraHardware(  156): changeState: SPRD_INIT --> SPRD_IDLE
I/SprdCameraHardware(  156): transitionState X
I/SprdCameraHardware(  156): getCameraState: SPRD_IDLE
I/SprdCameraHardware(  156): HandleCameraStart out : state = SPRD_IDLE
I/SprdOEMCamera(  156): L 2544, camera_start: OK to change the status from INIT
to IDLE.
I/SprdCameraHardware(  156): OK to camera_start.
I/SprdCameraHardware(  156): WaitForCameraStart E.
I/SprdCameraHardware(  156): WaitForCameraStart X.
I/SprdCameraHardware(  156): set_ddr_freq to 200 now count 0 freq 0 E
E/SprdCameraHardware(  156): set_ddr_freq Failed to open /sys/devices/platform/s
cxx30-dmcfreq.0/devfreq/scxx30-dmcfreq.0/ondemand/set_freq X
I/SprdCameraHardware(  156): init camera: initializing parameters
I/SprdCameraHardware(  156): startCameraIfNecessary X.
I/SprdCameraHardware(  156): setCameraParameters : Preview FPS range : min = 100
0, max = 30000
I/SprdCameraHardware(  156): setCameraParameters : preview size : 640x480
I/SprdCameraHardware(  156): setCameraParameters : mIsRotCapture : 0
D/cmr_set (  156): L 1308, camera_set_ctrl: camera_set_ctrl : CAMERA_PARAM_ROTAT
ION_CAPTURE : is_cfg_rot_cap(0), camera preview_status(0), capture_status(0)
I/SprdCameraHardware(  156): setCameraParameters : Rotation not specified or is
invalid, defaulting to 0
D/cmr_set (  156): L 1445, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_ENCODE
_ROTATION : parm(0), camera preview_status(0), capture_status(0), is_cfg_rot_cap
(0), rot(0)
D/cmr_set (  156): L 1732, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_ORIENT
ATION : Orientation(0), camera preview_status(0), capture_status(0)
D/cmr_set (  156): L 1449, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_SENSOR
_ROTATION : parm(0), camera preview_status(0), capture_status(0)
D/cmr_set (  156): L 1177, camera_set_rot_angle: front cam orientation 0,back ca
m orientation 0.orientation 0.
I/SprdCameraHardware(  156): switchBufferMode ret=1
D/cmr_set (  156): L 1373, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_SHOT_N
UM : Capture number(1), camera preview_status(0), capture_status(0)
I/SprdOEMCamera(  156): L 9299, camera_get_preview_rect: camera_get_preview_rect
: x=0, y=0, w=0, h=0
D/cmr_set (  156): L 1780, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_FOCUS_
RECT : parm(b31679bc), camera preview_status(0), capture_status(0)
E/cmr_set (  156): L 1278, camera_set_ctrl: camera_set_ctrl : Invalid ID(49) or
Parameter(-0.000000)
D/cmr_set (  156): L 1785, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_AF_MOD
E : AF mode(0), camera preview_status(0), capture_status(0)
D/cmr_set (  156): L 1737, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_FLASH
: parm(0), camera preview_status(0), capture_status(0)
D/cmr_set (  156): L 2638, camera_set_flashdevice: test flash:0x0.
I/cmr_set (  156): L 609, camera_set_flash: ret 0, flash 0, flash_mode 0
I/SprdCameraHardware(  156): setCameraParameters : mTimeCoeff : 1
D/cmr_set (  156): L 1555, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_WB : W
hite balance(0), camera preview_status(0), capture_status(0)
D/cmr_set (  156): L 1722, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_JPEGCO
MP : parm(100), camera preview_status(0), capture_status(0)
D/cmr_set (  156): L 1727, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_THUMBC
OMP : parm(80), camera preview_status(0), capture_status(0)
D/cmr_set (  156): L 1582, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_EFFECT
 : Effect(0), camera preview_status(0), capture_status(0)
D/cmr_set (  156): L 1609, camera_set_ctrl: camera_set_ctrl : CAMERA_PARM_SCENE_
MODE : Scene mode(0), Pre scene mode is -1. camera preview_status(0), capture_st
atus(0)
I/sensor_drv_u(  156): L 2976, Sensor_GetInfo: Sensor_GetInfo: info=b78311b8
V/AlarmManager(  608): waitForAlarm result :4
V/AlarmManager(  608): AlarmManager_setLocked to type=2 curELAPSED = 6404246 as
=6415 ans=709000000
V/AlarmManager(  608): sending alarm Alarm{42bc3300 type 0 com.google.android.gm
s}
I/ActivityManager(  608): Start proc com.google.android.gms for service com.goog
le.android.gms/com.google.android.libraries.social.mediamonitor.MediaMonitorInte
ntService: pid=18806 uid=10007 gids={50007, 3003, 1007, 1028, 1015, 3002, 3001,
3007, 2001, 3006}
V/AlarmManager(  608): trigger ELAPSED_REALTIME_WAKEUP or RTC_WAKEUP
W/ActivityManager(  608): Activity pause timeout for ActivityRecord{427d41c8 u0
com.sec.android.app.camera/.Camera t20 f}
I/ActivityManager(  608): Start proc edu.vanderbilt.redcap for activity edu.vand
erbilt.redcap/.MainActivity: pid=18818 uid=10117 gids={50117, 3003, 1028, 1015}
D/ActivityThread(18806): handleBindApplication:com.google.android.gms
D/ActivityThread(18818): handleBindApplication:edu.vanderbilt.redcap
D/Tethering(  608): TetherModeAliveState.processMessage what=5
D/Tethering(  608): Exception adding default nw to upstreamIfaceTypes: java.lang
.NullPointerException
D/Tethering(  608): setOemDunRequired
D/gralloc.sc8830(  152): fb_post fps = 0.227012
D/STATUSBAR-StatusBarManagerService(  608): manageDisableList what=0x0 pkg=Windo
wManager.LayoutParams
W/Settings(  608): Setting tether_dun_required has moved from android.provider.S
ettings.System to android.provider.Settings.Global
E/Tethering(  608): Set dun requiered as 0
D/Tethering(  608): chooseUpstreamType has upstream iface types:
D/Tethering(  608):  0
D/Tethering(  608):  1
D/Tethering(  608):  5
D/Tethering(  608):  6
D/Tethering(  608):  7
D/Tethering(  608):  100
D/Tethering(  608):  104
D/Tethering(  608):  105
D/Tethering(  608):  200
D/Tethering(  608):  204
D/Tethering(  608):  205
D/PhoneStatusBar(  774): Status bar WINDOW_STATE_SHOWING
D/Tethering(  608): chooseUpstreamType(false), preferredApn =-1, got type=-1
D/Tethering(  608): notifying tethered with iface =null
D/Tethering(  608): TetheredState.processMessage what=12
D/Tethering(  608): Connection changed noop - dropping
W/dalvikvm(18806): VFY: unable to resolve static field 560 (PR_SET_DUMPABLE) in
Landroid/system/OsConstants;
W/ActivityManager(  608): Permission Denial: getCurrentUser() from pid=18818, ui
d=10117 requires android.permission.INTERACT_ACROSS_USERS
D/dalvikvm(18806): VFY: replacing opcode 0x60 at 0x000b
W/ApplicationPackageManager(18818): getCSCPackageItemText()
D/DisplayManager(18818): DisplayManager()
W/ActivityManager(  608): Permission Denial: getCurrentUser() from pid=18818, ui
d=10117 requires android.permission.INTERACT_ACROSS_USERS
I/dalvikvm(18806): Could not find method com.google.android.gms.common.app.GmsAp
plication.getSystemService, referenced from method com.google.android.gms.common
.app.GmsApplication.onCreate
W/dalvikvm(18806): VFY: unable to resolve virtual method 11562: Lcom/google/andr
oid/gms/common/app/GmsApplication;.getSystemService (Ljava/lang/Class;)Ljava/lan
g/Object;
D/dalvikvm(18806): VFY: replacing opcode 0x6e at 0x00cd
I/MultiDex(18806): VM with version 1.6.0 does not have multidex support
I/MultiDex(18806): install
I/MultiDex(18806): MultiDexExtractor.load(/data/app/com.google.android.gms-3.apk
, false)
I/dalvikvm(18818): Could not find method android.app.Activity.checkSelfPermissio
n, referenced from method org.apache.cordova.CordovaInterfaceImpl.hasPermission
W/dalvikvm(18818): VFY: unable to resolve virtual method 1: Landroid/app/Activit
y;.checkSelfPermission (Ljava/lang/String;)I
D/dalvikvm(18818): VFY: replacing opcode 0x6e at 0x0009
I/dalvikvm(18818): Could not find method android.app.Activity.requestPermissions
, referenced from method org.apache.cordova.CordovaInterfaceImpl.requestPermissi
on
W/dalvikvm(18818): VFY: unable to resolve virtual method 37: Landroid/app/Activi
ty;.requestPermissions ([Ljava/lang/String;I)V
D/dalvikvm(18818): VFY: replacing opcode 0x6e at 0x000c
I/dalvikvm(18818): Could not find method android.app.Activity.requestPermissions
, referenced from method org.apache.cordova.CordovaInterfaceImpl.requestPermissi
ons
W/dalvikvm(18818): VFY: unable to resolve virtual method 37: Landroid/app/Activi
ty;.requestPermissions ([Ljava/lang/String;I)V
D/dalvikvm(18818): VFY: replacing opcode 0x6e at 0x0006
I/MultiDex(18806): loading existing secondary dex files
I/MultiDex(18806): load found 3 secondary dex files
I/MultiDex(18806): install done
V/WebViewChromiumFactoryProvider(18818): Binding Chromium to main looper Looper
(main, tid 1) {41df1ac8}
I/LibraryLoader(18818): Expected native library version number "",actual native
library version number ""




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org