IMX8QXP Android9.0 camera preview color abnormal

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

IMX8QXP Android9.0 camera preview color abnormal

1,286 Views
xinchuan
Contributor III

IMX8QXP Android8 camera work well,

but IMX8QXP Android9.0 camera preview color abnormal,like the picture below.

Is it a known platform issues?

 pastedImage_2.png

Thanks.

0 Kudos
8 Replies

986 Views
xu_ji1
Contributor V

Hello 川 辛

I also used  P9.0.0_1.0.2-AUTO-beta,and use the camera app in android crash,do u meet this

issue,and how to fixed it?Log like below:

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)

0 Kudos

986 Views
xinchuan
Contributor III

hi Xu Ji,

we copy our code from android 8 to android 9,and camera preview start,but green.no your issue.

0 Kudos

986 Views
xu_ji1
Contributor V

Hi,川 辛,

thanks for reply,you said“”we copy our code from android 8 to android 9“”,that mean camera driver/HAL camera framework or camera app code?

Thanks

0 Kudos

986 Views
puallin
Contributor II

Hi Xu Ji,

I had the same problem as you.

Have you solved this problem?

I look forward to your reply ,thanks!

0 Kudos

986 Views
xu_ji1
Contributor V

Hi,

pls find your camera framework and HAL service start normal or not when Android OS start.

Thanks

0 Kudos

986 Views
xinchuan
Contributor III

Hello victor,

         The green,red,blue colors are all right.

         I noticed the below  Known issues and limitations in Android™ Release Notes P9.0.0_1.0.2-AUTO-beta,

         Is this the reason our preview looks green?

pastedImage_1.png

0 Kudos

986 Views
b36401
NXP Employee
NXP Employee

As far as I know it supports UYVY and YUYV input format.

0 Kudos

986 Views
b36401
NXP Employee
NXP Employee

Please make sure that right pixel format is set for the sensor.

0 Kudos