raulmadrid777 发表于 2020-5-25 15:36:27

系统相机打开崩溃

平台:RK3399proJD4
源码版本:6802ae33f30a38ffe2ca44df0298d414d821b1e1
问题描述:使用源码编译出的镜像烧入后,开启系统相机时会崩溃(不论接不接摄像头(OV13850));后尝试了使用官方固件,可以正常打开相机并成像;
源码未进行实质改动:
zhang@zhang-OptiPlex-3070:~/workspace/rk3399pro/AIO-RK3399Pro$ git status
warning: 不能访问 'log/.gitignore': 权限不够
位于分支 master
未跟踪的文件:
(使用 "git add <文件>..." 以包含要提交的内容)

    .bundle/
    kernel/arch/arm64/boot/dts/rockchip/rk3399pro-firefly-usbacm-zhang.dtsi
    kernel/drivers/media/i2c/ov13850-back.c
    kernel/drivers/media/i2c/ov13850-zhang.c
    kernel/drivers/media/i2c/soc_camera/rockchip/ov13850_v4l2-i2c-subdev-zhang.c
    kernel/drivers/media/i2c/soc_camera/rockchip/ov_camera_module-zhang.c
    kernel/drivers/media/i2c/soc_camera/rockchip/rk_camera_module-zhang.c
    linuxTool-v1.0/
    log/


耗费了 15.73 秒以枚举未跟踪的文件。'status -uno' 也许能提高速度,
但您需要小心不要忘了添加新文件(参见 'git help status')。
提交为空,但是存在尚未跟踪的文件(使用 "git add" 建立跟踪)


崩溃log如下:
05-25 02:30:04.860   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:04.87723022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:05.07712112241 D AudioHardwareTiny: start_output_stream:721 out = 0xe7429000,device = 0x408,outputs = 0x0
05-25 02:30:05.07712661521 I ActivityManager: START u0 {act=android.intent.action.MAIN cat= flg=0x10200000 cmp=com.android.camera2/com.android.camera.CameraLauncher bnds=} from uid 10008
05-25 02:30:05.07712112241 D AudioHardwareTiny: read_out_sound_card: buf =0 : rk-hdmi-dp-soun - rk-hdmi-dp-sound
05-25 02:30:05.07712112241 D AudioHardwareTiny: get_card_number: number =0,card_name =0 : rk-hdmi-dp-soun - rk-hdmi-dp-sound
05-25 02:30:05.07712112241 D AudioHardwareTiny: read_out_sound_card: buf =                     rk-hdmi-dp-sound
05-25 02:30:05.07712112241 D AudioHardwareTiny: read_out_sound_card: buf =1 : rockchip_rk809- - rockchip,rk809-codec
05-25 02:30:05.07712112241 D AudioHardwareTiny: get_card_number: number =1,card_name =1 : rockchip_rk809- - rockchip,rk809-codec
05-25 02:30:05.07712112241 D AudioHardwareTiny: read_out_sound_card: buf =                     rockchip,rk809-codec
05-25 02:30:05.07712112241 D alsa_route: route_info->sound_card 0, route_info->devices 0
05-25 02:30:05.07812112241 D alsa_route: route_set_controls() set route 11
05-25 02:30:05.08112112241 D AudioHardwareTiny: start_output_stream:816, out = 0xe7429000
05-25 02:30:05.08312112241 W StreamHAL: Error from HAL stream in function get_presentation_position: Operation not permitted
05-25 02:30:05.08412112241 W StreamHAL: Error from HAL stream in function get_presentation_position: Operation not permitted
05-25 02:30:05.10212661521 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}----com.android.camera2
05-25 02:30:05.11312661402 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}----com.android.camera2
05-25 02:30:05.11620772077 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@4fcf009
05-25 02:30:05.13112661280 E memtrack: Couldn't load memtrack module
05-25 02:30:05.13212661280 W android.os.Debug: failed to get memory consumption info: -1
05-25 02:30:05.15420772077 V CAM_QuickActivity: START onCreate: Activity = com.android.camera.CameraActivity@47b83c5
05-25 02:30:05.15420772077 V CAM_Profiler: GUARD: CameraActivity.onCreateTasks - START
05-25 02:30:05.15620772077 D CAM_LocationManager: Using legacy location provider.
05-25 02:30:05.16920772077 D CAM_MemoryManagerImpl: Max native memory: 358 MB
05-25 02:30:05.17620772077 W SoundPool: Use of stream types is deprecated for operations other than volume control
05-25 02:30:05.17620772077 W SoundPool: See the documentation of SoundPool() for what to use instead with android.media.AudioAttributes to qualify your playback use case
05-25 02:30:05.17620772077 I CAM_OneCamFtrCnfgCrtr: CaptureModule? true
05-25 02:30:05.18012661402 I ActivityManager: START u0 {act=android.intent.action.MAIN cmp=com.android.camera2/com.android.camera.PermissionsActivity} from uid 10056
05-25 02:30:05.19412661402 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.camera2/com.android.camera.PermissionsActivity}----com.android.camera2
05-25 02:30:05.20212661280 E memtrack: Couldn't load memtrack module
05-25 02:30:05.20312661280 W android.os.Debug: failed to get memory consumption info: -1
05-25 02:30:05.21120772077 V CAM_Profiler: [ 56.675ms] GUARD: CameraActivity.onCreateTasks - Glide.setup
05-25 02:30:05.21320772077 V CAM_Profiler: [ 58.972ms] GUARD: CameraActivity.onCreateTasks - [ 2.298ms] OneCameraManager.get
05-25 02:30:05.22120772077 E SoundPool: error loading /product/media/audio/ui/camera_click.ogg
05-25 02:30:05.22220772077 I CameraManagerGlobal: Connecting to camera service
05-25 02:30:05.24720772368 I OMXClient: IOmx service obtained
05-25 02:30:05.248   459   923 I OMXMaster: makeComponentInstance(OMX.google.vorbis.decoder) in omx@1.0-service process
05-25 02:30:05.254   459   923 E OMXNodeInstance: getConfig(0xf2590300:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
05-25 02:30:05.258   251   251 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0x778022c100, 32768)
05-25 02:30:05.25820772077 V CAM_Profiler: GUARD: CameraActivity.onCreateTasks - [ 0.677ms] computePictureSizes
05-25 02:30:05.274   251   251 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0x778022c100, 32768)
05-25 02:30:05.275   251   251 I chatty: uid=1000(system) allocator@1.0-s identical 1 line
05-25 02:30:05.275   251   251 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0x778022c100, 32768)
05-25 02:30:05.27720772077 D OpenGLRenderer: Skia GL Pipeline
05-25 02:30:05.279   251   251 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0x778022c100, 32768)
05-25 02:30:05.280   251   251 I chatty: uid=1000(system) allocator@1.0-s identical 2 lines
05-25 02:30:05.281   251   251 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0x778022c100, 32768)
05-25 02:30:05.28712661280 E memtrack: Couldn't load memtrack module
05-25 02:30:05.28712661280 W android.os.Debug: failed to get memory consumption info: -1
05-25 02:30:05.29520772077 W CAM_Log : Tag RoundedThumbnailView is 1 chars longer than limit.
05-25 02:30:05.38920772077 W CAM_Log : Tag ModeOptionsScreenEffects is 5 chars longer than limit.
05-25 02:30:05.41612661280 E memtrack: Couldn't load memtrack module
05-25 02:30:05.41612661280 W android.os.Debug: failed to get memory consumption info: -1
05-25 02:30:05.42520772077 I CAM_BottomBar: isHorizontal = false, isPortrait = false
05-25 02:30:05.48820772077 I CAM_Profiler: GUARD: CameraActivity.onCreateTasks - setContentView()
05-25 02:30:05.50320772077 I CAM_Profiler: GUARD: CameraActivity.onCreateTasks - Configure Camera UI
05-25 02:30:05.51120772077 V CAM_CameraController: Closing camera
05-25 02:30:05.51320772358 W CAM2PORT_AndCamAgntImp: Releasing camera without any camera opened.
05-25 02:30:05.51420772077 V CAM_ModulesInfo: EnableCaptureModule = true
05-25 02:30:05.51620772077 V CAM_Profiler: GUARD: new CaptureModule - START
05-25 02:30:05.51920772077 V CAM_Profiler: GUARD: new CaptureModule - STOP
05-25 02:30:05.51920772077 V CAM_SettingsManager: listeners:
05-25 02:30:05.52720772077 V CAM_SettingsManager: listeners:
05-25 02:30:05.52820772077 V CAM_SettingsManager: listeners:
05-25 02:30:05.52820772077 V CAM_Profiler: GUARD: CameraActivity.onCreateTasks - [ 9.246ms] Init Current Module UI
05-25 02:30:05.52820772077 V CAM_Profiler: GUARD: CaptureModule.init - START
05-25 02:30:05.52920772077 D CAM_CaptureModule: init UseAutotransformUiLayout = false
05-25 02:30:05.53120772077 D AndroidRuntime: Shutting down VM
05-25 02:30:05.53320772077 E AndroidRuntime: FATAL EXCEPTION: main
05-25 02:30:05.53320772077 E AndroidRuntime: Process: com.android.camera2, PID: 2077
05-25 02:30:05.53320772077 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.os.Handler.dispatchMessage(Handler.java:106)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.os.Looper.loop(Looper.java:193)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.ActivityThread.main(ActivityThread.java:6718)
05-25 02:30:05.53320772077 E AndroidRuntime:   at java.lang.reflect.Method.invoke(Native Method)
05-25 02:30:05.53320772077 E AndroidRuntime:   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
05-25 02:30:05.53320772077 E AndroidRuntime:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
05-25 02:30:05.53320772077 E AndroidRuntime: Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
05-25 02:30:05.53320772077 E AndroidRuntime:   at com.android.camera.CaptureModule.getFacingFromCameraId(CaptureModule.java:1629)
05-25 02:30:05.53320772077 E AndroidRuntime:   at com.android.camera.CaptureModule.init(CaptureModule.java:427)
05-25 02:30:05.53320772077 E AndroidRuntime:   at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1801)
05-25 02:30:05.53320772077 E AndroidRuntime:   at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.Activity.performCreate(Activity.java:7171)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.Activity.performCreate(Activity.java:7162)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
05-25 02:30:05.53320772077 E AndroidRuntime:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
05-25 02:30:05.53320772077 E AndroidRuntime:   ... 11 more
05-25 02:30:05.53820772077 I Process : Sending signal. PID: 2077 SIG: 9
05-25 02:30:05.59712041204 I Zygote: Process 2077 exited due to signal (9)
05-25 02:30:05.59812661521 I ActivityManager: Process com.android.camera2 (pid 2077) has died: fore TOP
05-25 02:30:05.59812661284 W libprocessgroup: kill(-2077, 9) failed: No such process
05-25 02:30:05.59812661284 I libprocessgroup: Successfully killed process cgroup uid 10056 pid 2077 in 0ms
05-25 02:30:05.59912661521 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.camera2/com.android.camera.PermissionsActivity}----com.android.camera2
05-25 02:30:05.62323822382 I Zygote: seccomp disabled by setenforce 0
05-25 02:30:05.62512661283 I ActivityManager: Start proc 2382:com.android.camera2/u0a56 for activity com.android.camera2/com.android.camera.PermissionsActivity
05-25 02:30:05.66623822382 I android.camera: The ClassLoaderContext is a special shared library.
05-25 02:30:05.66723822382 I android.camera: The ClassLoaderContext is a special shared library.
05-25 02:30:05.68023822382 V CAM_Profiler: GUARD: CameraApp onCreate() - START
05-25 02:30:05.68023822382 V CAM_Profiler: GUARD: FirstRunDetector getTimeOfFirstRun - START
05-25 02:30:05.68223822382 V CAM_Profiler: GUARD: FirstRunDetector getTimeOfFirstRun - [ 1.077ms] PreferenceManager.getDefaultSharedPreferences
05-25 02:30:05.68323822382 V CAM_Profiler: GUARD: FirstRunDetector getTimeOfFirstRun - [ 1.737ms] preferences.getLong
05-25 02:30:05.68323822382 V CAM_Profiler: GUARD: FirstRunDetector getTimeOfFirstRun - STOP
05-25 02:30:05.68323822382 V CAM_Profiler: GUARD: CameraApp onCreate() - [ 4.467ms] initializeTimeOfFirstRun
05-25 02:30:05.68423822382 V CAM_Profiler: GUARD: CameraApp onCreate() - [ 0.226ms] UsageStatistics.initialize
05-25 02:30:05.68523822382 V CAM_Profiler: GUARD: CameraApp onCreate() - [ 0.861ms] clearNotifications
05-25 02:30:05.68523822382 V CAM_Profiler: GUARD: CameraApp onCreate() - STOP
05-25 02:30:05.69923822382 V CAM_QuickActivity: START onCreate: Activity = com.android.camera.PermissionsActivity@47b83c5
05-25 02:30:05.71423822382 D CAM_MemoryManagerImpl: Max native memory: 358 MB
05-25 02:30:05.715   274   310 W SurfaceFlinger: Attempting to set client state on removed layer: Surface(name=AppWindowToken{7379ac0 token=Token{535f443 ActivityRecord{6585f2 u0 com.android.camera2/com.android.camera.CameraLauncher t6}}})/@0x5c733f0 - animation-leash#0
05-25 02:30:05.715   274   310 W SurfaceFlinger: Attempting to set client state on removed layer: Surface(name=AppWindowToken{18c886b token=Token{976b1ba ActivityRecord{8db82e5 u0 com.android.launcher3/.Launcher t4}}})/@0x418c36e - animation-leash#0
05-25 02:30:05.715   274   310 W SurfaceFlinger: Attempting to destroy on removed layer: Surface(name=AppWindowToken{7379ac0 token=Token{535f443 ActivityRecord{6585f2 u0 com.android.camera2/com.android.camera.CameraLauncher t6}}})/@0x5c733f0 - animation-leash#0
05-25 02:30:05.715   274   310 W SurfaceFlinger: Attempting to destroy on removed layer: Surface(name=AppWindowToken{18c886b token=Token{976b1ba ActivityRecord{8db82e5 u0 com.android.launcher3/.Launcher t4}}})/@0x418c36e - animation-leash#0
05-25 02:30:05.71823822382 V CAM_QuickActivity: END onCreate: Activity = com.android.camera.PermissionsActivity@47b83c5
05-25 02:30:05.72223822382 V CAM_QuickActivity: START onStart: Activity = com.android.camera.PermissionsActivity@47b83c5
05-25 02:30:05.72223822382 V CAM_QuickActivity: END onStart: Activity = com.android.camera.PermissionsActivity@47b83c5
05-25 02:30:05.72223822382 V CAM_QuickActivity: START onResume: Activity = com.android.camera.PermissionsActivity@47b83c5
05-25 02:30:05.72323822382 V CAM_QuickActivity: onResume(): isKeyguardLocked() = false
05-25 02:30:05.72323822382 V CAM_QuickActivity: onResume --> onResumeTasks()
05-25 02:30:05.72423822382 V CAM_PermissionsActivity: requestPermissions count: 1
05-25 02:30:05.72612661554 I ActivityManager: START u0 {act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.android.packageinstaller cmp=com.android.packageinstaller/.permission.ui.GrantPermissionsActivity (has extras)} from uid 10056
05-25 02:30:05.73912661554 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity}----com.android.packageinstaller
05-25 02:30:05.74123822382 V CAM_QuickActivity: END onResume: Activity = com.android.camera.PermissionsActivity@47b83c5
05-25 02:30:05.74223822382 D OpenGLRenderer: Skia GL Pipeline
05-25 02:30:05.76323822382 V CAM_QuickActivity: START onPause: Activity = com.android.camera.PermissionsActivity@47b83c5
05-25 02:30:05.76323822382 V CAM_QuickActivity: onPause --> onPauseTasks()
05-25 02:30:05.76323822382 V CAM_QuickActivity: END onPause: Activity = com.android.camera.PermissionsActivity@47b83c5
05-25 02:30:05.76312661554 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity}----com.android.packageinstaller
05-25 02:30:05.76522122212 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@cb220e
05-25 02:30:05.77823822399 I mali_so : : hardware/arm/maliT760/driver/product/base/src/mali_base_kbase.c; : 947; : base_context_deal_with_version_affairs_rk_ext;
05-25 02:30:05.77823822399 I mali_so : arm_release_ver of this mali_so is 'r18p0-01rel0', rk_so_ver is '16@0'.
05-25 02:30:05.77823822399 I mali_so : : hardware/arm/maliT760/driver/product/base/src/mali_base_kbase.c; : 914; : determine_policy_against_patch_for_sf_memory_leak;
05-25 02:30:05.77823822399 I mali_so : cmdline : com.android.camera2, we should GO THROUGH patch_for_sf_memory_leak.
05-25 02:30:05.77823822399 D mali_so : : hardware/arm/maliT760/driver/product/base/src/mali_base_kbase.c; : 955; : base_context_deal_with_version_affairs_rk_ext;
05-25 02:30:05.77823822399 D mali_so : current process is NOT sf, to bail out.
05-25 02:30:05.784   2741066 E BufferQueueProducer: disconnect: not connected (req=1)
05-25 02:30:05.78418241893 W libEGL: EGLNativeWindowType 0x7274592010 disconnect failed
05-25 02:30:05.79023822399 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
05-25 02:30:05.79023822399 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
05-25 02:30:05.79023822399 I OpenGLRenderer: Initialized EGL, version 1.4
05-25 02:30:05.79023822399 D OpenGLRenderer: Swap behavior 2
05-25 02:30:05.80023822399 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
05-25 02:30:05.82723822399 D GRALLOC-ROCKCHIP: RK_GRAPHICS_VER=commit-id:6802ae33f3
05-25 02:30:05.860   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:05.87112661280 I ActivityManager: Displayed com.android.packageinstaller/.permission.ui.GrantPermissionsActivity: +776ms
05-25 02:30:05.87723022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:05.89522122212 D OpenGLRenderer: Skia GL Pipeline
05-25 02:30:05.90814061406 D StatusBar: disable<e i a s b h r c s > disable2<q i n >
05-25 02:30:05.93122122411 I mali_so : : hardware/arm/maliT760/driver/product/base/src/mali_base_kbase.c; : 947; : base_context_deal_with_version_affairs_rk_ext;
05-25 02:30:05.93122122411 I mali_so : arm_release_ver of this mali_so is 'r18p0-01rel0', rk_so_ver is '16@0'.
05-25 02:30:05.93122122411 I mali_so : : hardware/arm/maliT760/driver/product/base/src/mali_base_kbase.c; : 914; : determine_policy_against_patch_for_sf_memory_leak;
05-25 02:30:05.93122122411 I mali_so : cmdline : com.android.packageinstaller, we should GO THROUGH patch_for_sf_memory_leak.
05-25 02:30:05.93122122411 D mali_so : : hardware/arm/maliT760/driver/product/base/src/mali_base_kbase.c; : 955; : base_context_deal_with_version_affairs_rk_ext;
05-25 02:30:05.93122122411 D mali_so : current process is NOT sf, to bail out.
05-25 02:30:05.94022122411 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
05-25 02:30:05.94122122411 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
05-25 02:30:05.94122122411 I OpenGLRenderer: Initialized EGL, version 1.4
05-25 02:30:05.94122122411 D OpenGLRenderer: Swap behavior 2
05-25 02:30:05.95022122411 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
05-25 02:30:05.97522122411 D GRALLOC-ROCKCHIP: RK_GRAPHICS_VER=commit-id:6802ae33f3
05-25 02:30:05.99722122411 D         : set stream to NULL
05-25 02:30:06.02422122411 I chatty: uid=10011(com.android.packageinstaller) RenderThread identical 8 lines
05-25 02:30:06.02722122411 D         : set stream to NULL
05-25 02:30:06.027   274   389 W SurfaceFlinger: Attempting to set client state on removed layer: Splash Screen com.android.camera2#0
05-25 02:30:06.027   274   389 W SurfaceFlinger: Attempting to destroy on removed layer: Splash Screen com.android.camera2#0
05-25 02:30:06.02922122411 D         : set stream to NULL
05-25 02:30:06.63518241824 W ViewRootImpl: Cancelling event due to no window focus: MotionEvent { action=ACTION_CANCEL, actionButton=0, id=0, x=764.2385, y=246.21075, toolType=TOOL_TYPE_MOUSE, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=114137, downTime=112433, deviceId=5, source=0x2002 }
05-25 02:30:06.03322122411 D         : set stream to NULL
05-25 02:30:06.861   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:06.87723022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:07.01822122411 D         : set stream to NULL
05-25 02:30:07.04622122411 I chatty: uid=10011(com.android.packageinstaller) RenderThread identical 4 lines
05-25 02:30:07.05122122411 D         : set stream to NULL
05-25 02:30:07.51812661554 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.camera2/com.android.camera.PermissionsActivity}----com.android.camera2
05-25 02:30:07.51812661554 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.camera2/com.android.camera.PermissionsActivity}----com.android.camera2
05-25 02:30:07.53223822382 V CAM_PermissionsActivity: onPermissionsResult counts: 1:1
05-25 02:30:07.53314061406 D StatusBar: disable<e i a s b h r c s > disable2<q i n >
05-25 02:30:06.63618241824 I chatty: uid=10008(com.android.launcher3) identical 2 lines
05-25 02:30:06.63718241824 W ViewRootImpl: Cancelling event due to no window focus: MotionEvent { action=ACTION_CANCEL, actionButton=0, id=0, x=764.2385, y=246.21075, toolType=TOOL_TYPE_MOUSE, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=114137, downTime=112433, deviceId=5, source=0x2002 }
05-25 02:30:07.55012662381 I ActivityManager: START u0 {act=android.intent.action.MAIN cmp=com.android.camera2/com.android.camera.CameraActivity} from uid 10056
05-25 02:30:07.56012662381 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}----com.android.camera2
05-25 02:30:07.56712662381 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}----com.android.camera2
05-25 02:30:07.57623822382 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@fa38e22
05-25 02:30:07.58123822382 V CAM_QuickActivity: START onCreate: Activity = com.android.camera.CameraActivity@2588707
05-25 02:30:07.58123822382 V CAM_Profiler: GUARD: CameraActivity.onCreateTasks - START
05-25 02:30:07.58223822382 D CAM_LocationManager: Using legacy location provider.
05-25 02:30:07.59023822382 W SoundPool: Use of stream types is deprecated for operations other than volume control
05-25 02:30:07.59023822382 W SoundPool: See the documentation of SoundPool() for what to use instead with android.media.AudioAttributes to qualify your playback use case
05-25 02:30:07.59123822382 I CAM_OneCamFtrCnfgCrtr: CaptureModule? true
05-25 02:30:07.60123822382 V CAM_Profiler: [ 19.140ms] GUARD: CameraActivity.onCreateTasks - [ 8.457ms] Glide.setup
05-25 02:30:07.60423822382 V CAM_Profiler: [ 22.066ms] GUARD: CameraActivity.onCreateTasks - [ 2.926ms] OneCameraManager.get
05-25 02:30:07.62623822382 E SoundPool: error loading /product/media/audio/ui/camera_click.ogg
05-25 02:30:07.62723822382 I CameraManagerGlobal: Connecting to camera service
05-25 02:30:07.63223822382 V CAM_Profiler: [ 50.545ms] GUARD: CameraActivity.onCreateTasks - [ 0.623ms] computePictureSizes
05-25 02:30:07.65823822382 W CAM_Log : Tag RoundedThumbnailView is 1 chars longer than limit.
05-25 02:30:07.66023822435 I OMXClient: IOmx service obtained
05-25 02:30:07.661   459   923 I OMXMaster: makeComponentInstance(OMX.google.vorbis.decoder) in omx@1.0-service process
05-25 02:30:07.664   459   923 E OMXNodeInstance: getConfig(0xf2590300:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
05-25 02:30:07.667   251   251 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0x778022c100, 32768)
05-25 02:30:07.681   251   251 I chatty: uid=1000(system) allocator@1.0-s identical 6 lines
05-25 02:30:07.681   251   251 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0x778022c100, 32768)
05-25 02:30:07.723   461   461 I npu_monitor: type=1400 audit(0.0:416): avc: denied { read } for name="temp" dev="sysfs" ino=8936 scontext=u:r:npu_monitor:s0 tcontext=u:object_r:sysfs_temp:s0 tclass=file permissive=1
05-25 02:30:07.723   461   461 I npu_monitor: type=1400 audit(0.0:417): avc: denied { open } for path="/sys/devices/virtual/thermal/thermal_zone0/temp" dev="sysfs" ino=8936 scontext=u:r:npu_monitor:s0 tcontext=u:object_r:sysfs_temp:s0 tclass=file permissive=1
05-25 02:30:07.73223822382 W CAM_Log : Tag ModeOptionsScreenEffects is 5 chars longer than limit.
05-25 02:30:07.76223822382 I CAM_BottomBar: isHorizontal = false, isPortrait = false
05-25 02:30:07.769   274   310 W SurfaceFlinger: Attempting to set client state on removed layer: Dim Layer for - Task=6#0
05-25 02:30:07.769   274   310 W SurfaceFlinger: Attempting to destroy on removed layer: Dim Layer for - Task=6#0
05-25 02:30:07.81923822382 I CAM_Profiler: GUARD: CameraActivity.onCreateTasks - setContentView()
05-25 02:30:07.83123822382 V CAM_Profiler: GUARD: CameraActivity.onCreateTasks - Configure Camera UI
05-25 02:30:07.83823822382 V CAM_CameraController: Closing camera
05-25 02:30:07.83923822429 W CAM2PORT_AndCamAgntImp: Releasing camera without any camera opened.
05-25 02:30:07.83923822382 V CAM_ModulesInfo: EnableCaptureModule = true
05-25 02:30:07.84023822382 V CAM_Profiler: GUARD: new CaptureModule - START
05-25 02:30:07.84223822382 V CAM_Profiler: GUARD: new CaptureModule - STOP
05-25 02:30:07.84223822382 V CAM_SettingsManager: listeners:
05-25 02:30:07.84623822382 V CAM_SettingsManager: listeners:
05-25 02:30:07.84623822382 V CAM_SettingsManager: listeners:
05-25 02:30:07.84723822382 V CAM_Profiler: GUARD: CameraActivity.onCreateTasks - [ 5.040ms] Init Current Module UI
05-25 02:30:07.84723822382 V CAM_Profiler: GUARD: CaptureModule.init - START
05-25 02:30:07.84723822382 D CAM_CaptureModule: init UseAutotransformUiLayout = false
05-25 02:30:07.84923822382 D AndroidRuntime: Shutting down VM
05-25 02:30:07.84923822382 E AndroidRuntime: FATAL EXCEPTION: main
05-25 02:30:07.84923822382 E AndroidRuntime: Process: com.android.camera2, PID: 2382
05-25 02:30:07.84923822382 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.os.Handler.dispatchMessage(Handler.java:106)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.os.Looper.loop(Looper.java:193)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.ActivityThread.main(ActivityThread.java:6718)
05-25 02:30:07.84923822382 E AndroidRuntime:   at java.lang.reflect.Method.invoke(Native Method)
05-25 02:30:07.84923822382 E AndroidRuntime:   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
05-25 02:30:07.84923822382 E AndroidRuntime:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
05-25 02:30:07.84923822382 E AndroidRuntime: Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
05-25 02:30:07.84923822382 E AndroidRuntime:   at com.android.camera.CaptureModule.getFacingFromCameraId(CaptureModule.java:1629)
05-25 02:30:07.84923822382 E AndroidRuntime:   at com.android.camera.CaptureModule.init(CaptureModule.java:427)
05-25 02:30:07.84923822382 E AndroidRuntime:   at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1801)
05-25 02:30:07.84923822382 E AndroidRuntime:   at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.Activity.performCreate(Activity.java:7171)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.Activity.performCreate(Activity.java:7162)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
05-25 02:30:07.84923822382 E AndroidRuntime:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
05-25 02:30:07.84923822382 E AndroidRuntime:   ... 11 more
05-25 02:30:07.85112662381 W ActivityManager:   Force finishing activity com.android.camera2/com.android.camera.CameraActivity
05-25 02:30:07.85712661282 I ActivityManager: Showing crash dialog for package com.android.camera2 u0
05-25 02:30:07.861   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:07.87723022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:07.893   274   970 E BufferQueueProducer: disconnect: not connected (req=1)
05-25 02:30:07.89322122411 W libEGL: EGLNativeWindowType 0x72744b7010 disconnect failed
05-25 02:30:07.89322122411 D OpenGLRenderer: endAllActiveAnimators on 0x727449bb00 (RippleDrawable) with handle 0x7261bfe480
05-25 02:30:07.89412662287 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
05-25 02:30:07.89412662287 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
05-25 02:30:07.89512662287 I OpenGLRenderer: Initialized EGL, version 1.4
05-25 02:30:07.89512662287 D OpenGLRenderer: Swap behavior 2
05-25 02:30:07.90312662287 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
05-25 02:30:07.92312662287 D         : set stream to NULL
05-25 02:30:08.35312661281 W ActivityManager: Activity pause timeout for ActivityRecord{68b3412 u0 com.android.camera2/com.android.camera.CameraActivity t6 f}
05-25 02:30:07.95312662287 I chatty: uid=1000(system) RenderThread identical 10 lines
05-25 02:30:07.95712662287 D         : set stream to NULL
05-25 02:30:08.35612661281 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.launcher3/com.android.launcher3.Launcher}----com.android.launcher3
05-25 02:30:08.39818241893 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
05-25 02:30:08.861   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:08.87823022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:09.862   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:09.87823022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:10.61412111236 D AudioHardwareTiny: do_out_standby,out = 0xe7429000,device = 0x408
05-25 02:30:10.61612111236 D alsa_route: route_set_controls() set route 24
05-25 02:30:10.62212111236 D AudioHardwareTiny: close device
05-25 02:30:10.862   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:10.87923022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:11.863   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:11.87923022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:12.864   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:12.88023022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:13.864   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:13.88023022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:14.865   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:14.88123022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:15.865   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:15.88123022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:16.866   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:16.88223022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:17.867   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:17.88223022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:18.46812661281 W ActivityManager: Activity destroy timeout for ActivityRecord{68b3412 u0 com.android.camera2/com.android.camera.CameraActivity t6 f}
05-25 02:30:18.46912661281 W ActivityManager: Activity destroy timeout for ActivityRecord{ead7725 u0 com.android.camera2/com.android.camera.PermissionsActivity t6 f}
05-25 02:30:18.496   274   970 W SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{21836ab token=Token{5c730fa ActivityRecord{ead7725 u0 com.android.camera2/com.android.camera.PermissionsActivity t6}}}#0
05-25 02:30:18.867   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:18.88323022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:19.868   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:19.88323022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:20.868   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:20.88423022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:21.869   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:21.88423022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:22.869   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:22.88523022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:23.870   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:23.88523022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:24.870   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:24.88623022302 W ServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1. Waiting another...
05-25 02:30:25.871   464   464 W ServiceManagement: Waited one second for android.hardware.gatekeeper@1.0::IGatekeeper/default. Waiting another...
05-25 02:30:25.88623022302 W ServiceManagement: Waited one second for android.hardware.radio@1


leung先森 发表于 2020-5-25 15:49:24

按照wiki通过bundle对代码进行更新并重新编译,不要做其他修改或者先把其他修改备份或者缓存起来

raulmadrid777 发表于 2020-5-25 16:57:40

leung先森 发表于 2020-5-25 15:49
按照wiki通过bundle对代码进行更新并重新编译,不要做其他修改或者先把其他修改备份或者缓存起来

更新了,目前版本信息:
commit 6802ae33f30a38ffe2ca44df0298d414d821b1e1 (HEAD -> master)
Author: lkd <service@t-firefly.com>
Date:   Mon Mar 9 17:28:48 2020 +0800

    1.Support AIO-3399ProJD4. 2.Add xc7022 xc6130 camera support 3.Fix LVDS firmware audio issue 4.Fix some systemic problems

git rebase FETCH_HEAD 之前git stash了改动。

刚才又试了一遍,还是不行。

leung先森 发表于 2020-5-26 15:50:48

raulmadrid777 发表于 2020-5-25 16:57
更新了,目前版本信息:
commit 6802ae33f30a38ffe2ca44df0298d414d821b1e1 (HEAD -> master)
Author:...

有按照wiki方法编译烧写吗

raulmadrid777 发表于 2020-5-29 11:22:35

leung先森 发表于 2020-5-26 15:50
有按照wiki方法编译烧写吗

这个问题解决了:重编了kernel、uboot、android,重新生成update镜像,烧录;引入了另一个问题,对于只对内核修改的情况,怎么更新镜像?尝试发现:只烧resouce.img和kernel.img则修改没有生效,若只烧boot.img或烧kernel.img、resource.img、boot.img这三个,即只要烧录了boot.img,设备便会无限重启,无法正常进入系统。想请教大神,对于kernel的修改,应该怎样烧录镜像呢?

leung先森 发表于 2020-5-29 11:43:36

http://wiki.t-firefly.com/zh_CN/Core-3399pro-JD4/compile_android9_firmware.html#aio-3399pro-jd4-chan-pin-bian-yi-fang-fa
wiki内容仔细阅读
(注意:若进行内核debug,需要将resource.img和kernel.img打包进去boot.img后对boot分区进行烧写才能生效。)
打包boot.img只需要将mkimage.sh里面打包boot那部分单独抽出来稍做修改即可做成编译脚本

raulmadrid777 发表于 2020-6-3 20:18:33

leung先森 发表于 2020-5-29 11:43
http://wiki.t-firefly.com/zh_CN/Core-3399pro-JD4/compile_android9_firmware.html#aio-3399pro-jd4-chan ...

感谢,已解决。
页: [1]
查看完整版本: 系统相机打开崩溃