I.MX8QXP Android9 camera APP can not open issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I.MX8QXP Android9 camera APP can not open issue

1,905 Views
xu_ji1
Contributor V

Dears,

I used I.MX8QXP board android_p9.0.0_1.0.2-auto,and  used M4 console call EVS app can open camera,

but used the android camera app can not open camera,log:


03-12 01:25:08.865 1868 3223 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.android.camera2 cmp=com.android.camera2/com.android.camera.CameraLauncher} from uid 10016
[ 880.799628] type=1400 audit(1552353801.068:5223): avc: denied { dac_read_search } for pid=1 comm="init" capability=2 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=0 duplicate messages suppressed
03-12 01:25:08.958 1868 1885 I ActivityManager: Start proc 3954[ 880.820741] type=1400 audit(1552353908.944:5229): avc: denied { dac_read_search } for pid=3954 comm="main" capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0
:com.android.camera2/u0a52 for activity com.android.camera2/com.android.camera.CameraLauncher
03-12 01:25:08.944 3954 3954 W main : type=1400 audit(0.0:5229): avc: denied { dac_read_search } for capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0
03-12 01:25:09.008 2011 2047 I CAR.AM : onForegroundActivitiesChanged uid 10052 pid 3954 fg true
03-12 01:25:09.027 2011 2047 I CAR.AM : onTaskStackChanged
03-12 01:25:09.032 2011 2178 I CAR.AM : New top task: TaskInfoContainer [topActivity=ComponentInfo{com.android.camera2/com.android.camera.CameraLauncher}, taskId=29, stackId=1, userId=0
03-12 01:25:09.033 2011 2178 I CAR.AM : activity launched:TaskInfoContainer [topActivity=ComponentInfo{com.android.camera2/com.android.camera.CameraLauncher}, taskId=29, stackId=1, userId=0
03-12 01:25:09.037 3954 3954 I android.camera: The ClassLoaderContext is a special shared library.
03-12 01:25:09.044 3954 3954 I android.camera: The ClassLoaderContext is a special shared library.
03-12 01:25:09.122 3954 3954 V CAM_Profiler: [ 0.000ms][ui] GUARD: CameraApp onCreate() - START
03-12 01:25:09.122 3954 3954 V CAM_Profiler: [ 0.000ms][ui] GUARD: FirstRunDetector getTimeOfFirstRun - START
03-12 01:25:09.124 3954 3954 V CAM_Profiler: [ 1.533ms][ui] GUARD: FirstRunDetector getTimeOfFirstRun - [ 1.533ms] PreferenceManager.getDefaultSharedPreferences
03-12 01:25:09.135 3954 3954 V CAM_Profiler: [ 11.560ms][ui] GUARD: FirstRunDetector getTimeOfFirstRun - [10.028ms] preferences.getLong
03-12 01:25:09.136 3954 3954 V CAM_Profiler: [ 12.719ms][ui] GUARD: FirstRunDetector getTimeOfFirstRun - STOP
03-12 01:25:09.137 3954 3954 I CAM_Profiler: [ 16.172ms][ui] GUARD: CameraApp onCreate() - [16.172ms] initializeTimeOfFirstRun
03-12 01:25:09.138 3954 3954 V CAM_Profiler: [ 17.613ms][ui] GUARD: CameraApp onCreate() - [ 1.441ms] UsageStatistics.initialize
03-12 01:25:09.141 2011 2029 I com.android.ca: Background concurrent copying GC freed 44457(2MB) AllocSpace objects, 16(320KB) LOS objects, 54% free, 1289KB/2MB, paused 152us total 103.343ms
03-12 01:25:09.141 3954 3954 V CAM_Profiler: [ 20.548ms][ui] GUARD: CameraApp onCreate() - [ 2.936ms] clearNotifications
03-12 01:25:09.141 3954 3954 I CAM_Profiler: [ 20.548ms][ui] GUARD: CameraApp onCreate() - STOP
03-12 01:25:09.192 3954 3954 V CAM_QuickActivity: START onCreate: Activity = com.android.camera.CameraActivity@eb55af5
03-12 01:25:09.193 3954 3954 V CAM_Profiler: [ 0.000ms][ui] GUARD: CameraActivity.onCreateTasks - START
03-12 01:25:09.196 3954 3954 D CAM_LocationManager: Using legacy location provider.
03-12 01:25:09.220 3954 3954 D CAM_MemoryManagerImpl: Max native memory: 358 MB
03-12 01:25:09.229 3954 3954 W SoundPool: Use of stream types is deprecated for operations other than volume control
03-12 01:25:09.229 3954 3954 W SoundPool: See the documentation of SoundPool() for what to use instead with android.media.AudioAttributes to qualify your playback use case
03-12 01:25:09.231 3954 3954 I CAM_OneCamFtrCnfgCrtr: CaptureModule? true
03-12 01:25:09.275 3954 3954 I CAM_Profiler: [ 81.865ms][ui] GUARD: CameraActivity.onCreateTasks - [33.550ms] Glide.setup
03-12 01:25:09.279 3954 3954 V CAM_Profiler: [ 85.665ms][ui] GUARD: CameraActivity.onCreateTasks - [ 3.800ms] OneCameraManager.get
03-12 01:25:09.300 3954 3954 E SoundPool: error loading /product/media/audio/ui/camera_click.ogg
03-12 01:25:09.306 3954 3954 I CameraManagerGlobal: Connecting to camera service
03-12 01:25:09.310 1765 1834 I FslExtractor: FslExtractor Sniff
03-12 01:25:09.310 1765 1834 I FslInspector: TryDsfType OggS
03-12 01:25:09.325 3954 3954 V CAM_Profiler: [131.745ms][ui] GUARD: CameraActivity.onCreateTasks - [ 8.154ms] computePictureSizes
03-12 01:25:09.330 3954 3982 I OMXClient: IOmx service obtained
03-12 01:25:09.330 1775 2064 I OMXMaster: makeComponentInstance(OMX.google.vorbis.decoder) in omx@1.0-service process
03-12 01:25:09.340 1775 2064 E OMXNodeInstance: getConfig(0xf1f29e40:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
03-12 01:25:09.345 1717 1717 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0xfa87c0a2c100, 32768)
03-12 01:25:09.363 1717 1717 I chatty : uid=1000(system) allocator@1.0-s identical 2 lines
03-12 01:25:09.364 1717 1717 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0xfa87c0a2c100, 32768)
03-12 01:25:09.374 1868 3974 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
03-12 01:25:09.374 1868 3974 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
03-12 01:25:09.374 1868 3974 I OpenGLRenderer: Initialized EGL, version 1.4
03-12 01:25:09.374 1868 3974 D OpenGLRenderer: Swap behavior 2
03-12 01:25:09.378 1717 1717 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0xfa87c0a2c100, 32768)
03-12 01:25:09.378 3954 3954 D OpenGLRenderer: Skia GL Pipeline
03-12 01:25:09.381 1717 1717 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0xfa87c0a2c100, 32768)
03-12 01:25:09.382 1717 1717 I chatty : uid=1000(system) allocator@1.0-s identical 1 line
03-12 01:25:09.401 1717 1717 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0xfa87c0a2c100, 32768)
03-12 01:25:09.456 3954 3954 W CAM_Log : Tag RoundedThumbnailView is 1 chars longer than limit.
03-12 01:25:09.520 1648 1752 W SurfaceFlinger: Attempting to set client state on removed layer: Surface(name=AppWindowToken{9953ffc token=Token{b3238ef ActivityRecord{84281ce u0 com.android.car.carlauncher/.AppGridActivity t28}}})/@0xa6a02c - animation-leash#0
03-12 01:25:09.521 1648 1752 W SurfaceFlinger: Attempting to set client state on removed layer: Surface(name=AppWindowToken{7180a73 token=Token{1a656e2 ActivityRecord{a2b63ad u0 com.android.camera2/com.android.camera.CameraLauncher t29}}})/@0x88ec260 - animation-leash#0
03-12 01:25:09.521 1648 1752 W SurfaceFlinger: Attempting to destroy on removed layer: Surface(name=AppWindowToken{9953ffc token=Token{b3238ef ActivityRecord{84281ce u0 com.android.car.carlauncher/.AppGridActivity t28}}})/@0xa6a02c - animation-leash#0
03-12 01:25:09.521 1648 1752 W SurfaceFlinger: Attempting to destroy on removed layer: Surface(name=AppWindowToken{7180a73 token=Token{1a656e2 ActivityRecord{a2b63ad u0 com.android.camera2/com.android.camera.CameraLauncher t29}}})/@0x88ec260 - animation-leash#0
03-12 01:25:09.745 3954 3954 I CAM_Profiler: [551.989ms][ui] GUARD: CameraActivity.onCreateTasks - [416.405ms] setContentView()
03-12 01:25:09.779 3954 3954 I CAM_Profiler: [585.517ms][ui] GUARD: CameraActivity.onCreateTasks - [33.529ms] Configure Camera UI
03-12 01:25:09.795 3954 3954 V CAM_CameraController: Closing camera
03-12 01:25:09.796 3954 3975 W CAM2PORT_AndCamAgntImp: Releasing camera without any camera opened.
03-12 01:25:09.797 3954 3954 V CAM_ModulesInfo: EnableCaptureModule = true
03-12 01:25:09.800 3954 3954 V CAM_Profiler: [ 0.000ms][ui] GUARD: new CaptureModule - START
03-12 01:25:09.805 3954 3954 V CAM_Profiler: [ 5.377ms][ui] GUARD: new CaptureModule - STOP
03-12 01:25:09.807 3954 3954 V CAM_SettingsManager: listeners: [com.android.camera.app.CameraAppUI@ca9d370]
03-12 01:25:09.814 3954 3954 V CAM_SettingsManager: listeners: [com.android.camera.app.CameraAppUI@ca9d370, com.android.camera.ButtonManager@f0978a5]
03-12 01:25:09.815 3954 3954 V CAM_SettingsManager: listeners: [com.android.camera.app.CameraAppUI@ca9d370, com.android.camera.ButtonManager@f0978a5, com.android.camera.widget.IndicatorIconController@3bbd42b]
03-12 01:25:09.815 3954 3954 V CAM_Profiler: [622.355ms][ui] GUARD: CameraActivity.onCreateTasks - [ 9.395ms] Init Current Module UI
03-12 01:25:09.816 3954 3954 V CAM_Profiler: [ 0.000ms][ui] GUARD: CaptureModule.init - START
[ 881.744818] binder: 1765:1834 transaction failed 29189/-22, size 60-0 line 3012
03-12 01:25:09.816 3954 3954 D CAM_CaptureModule: init UseAutotransformUiLayout = false
03-12 01:25:09.821 3954 3954 D AndroidRuntime: Shutting down VM
03-12 01:25:09.824 3954 3954 E AndroidRuntime: FATAL EXCEPTION: main
03-12 01:25:09.824 3954 3954 E AndroidRuntime: Process: com.android.camera2, PID: 3954
03-12 01:25:09.824 3954 3954 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2914)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3049)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1809)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6680)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:916)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at com.android.ex.camera2.portability.AndroidCameraAgentImpl$AndroidCameraDeviceInfo.getCharacteristics(AndroidCameraAgentImpl.java:176)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at com.android.camera.app.CameraController.getCharacteristics(CameraController.java:112)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at com.android.camera.CaptureModule.getFacingFromCameraId(CaptureModule.java:1542)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at com.android.camera.CaptureModule.init(CaptureModule.java:415)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1627)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7144)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7135)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2894)
03-12 01:25:09.824 3954 3954 E AndroidRuntime: ... 11 more
03-12 01:25:09.828 1868 3772 W ActivityManager: Force finishing activity com.android.camera2/com.android.camera.CameraLauncher
03-12 01:25:09.838 3954 3954 I Process : Sending signal. PID: 3954 SIG: 9
03-12 01:25:09.894 1868 3772 I ActivityManager: Process com.android.camera2 (pid 3954) has died: fore TOP
03-12 01:25:09.894 1868 1886 W libprocessgroup: kill(-3954, 9) failed: No such process
03-12 01:25:09.900 1711 1711 I Zygote : Process 3954 exited due to signal (9)
03-12 01:25:09.904 1648 1752 W SurfaceFlinger: Attempting to set client state on removed layer: Splash Screen com.android.camera2#0
03-12 01:25:09.904 1648 1752 W SurfaceFlinger: Attempting to destroy on removed layer: Splash Screen com.android.camera2#0
03-12 01:25:09.907 1868 1918 W WindowManager: Failed looking up window callers=com.android.server.wm.WindowManagerService.windowForClientLocked:5512 com.android.server.wm.WindowManagerService.removeWindow:1641 com.android.server.wm.Session.remove:226
03-12 01:25:09.911 1648 2293 W SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{7180a73 token=Token{1a656e2 ActivityRecord{a2b63ad u0 com.android.camera2/com.android.camera.CameraLauncher t29}}}#0
03-12 01:25:09.937 1868 1886 W libprocessgroup: kill(-3954, 9) failed: No such process
03-12 01:25:09.937 1868 1886 I libprocessgroup: Successfully killed process cgroup uid 10052 pid 3954 in 43ms
03-12 01:25:09.949 2011 2047 I CAR.AM : onTaskStackChanged
03-12 01:25:09.962 2011 2178 I CAR.AM : New top task: TaskInfoContainer [topActivity=ComponentInfo{com.android.car.carlauncher/com.android.car.carlauncher.AppGridActivity}, taskId=28, stackId=0, userId=0
03-12 01:25:09.962 2011 2178 I CAR.AM : activity launched:TaskInfoContainer [topActivity=ComponentInfo{com.android.car.carlauncher/com.android.car.carlauncher.AppGridActivity}, taskId=28, stackId=0, userId=0
03-12 01:25:10.065 2603 2603 W StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1

Please help it,how to setup camera with android app?

 

Thanks

0 Kudos
3 Replies

859 Views
igorpadykov
NXP Employee
NXP Employee

Hi Xu

one can check camera usage on

Seamless switch between Android/Linux and M4 core using dpu on imx8qxp/qm. 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

859 Views
xu_ji1
Contributor V

Hello,igorpadykov

My problem is in Android OS camera APP can not open camera.

Thanks

0 Kudos

859 Views
xu_ji1
Contributor V

Hello,igorpadykov

you mean M4 core not released camera caused this issue?Add this patch will fixed it?

0 Kudos