The Mi A1 has three cameras. Wide, Telephoto, and Selfie.
When switching between these cameras everything works ok for the first 2 switches.
Wide->Selfie->Telephoto
OpenCamera crashes at the third switch from Telephoto-> Wide.
I have tried both the good play version and I have compiled from source.
It seems to be a issue with open camera because the app Cinima4k does not crash when switching these cameras.
Here is the console output when the crash happens
E/Preview: no video qualities found
E/MediaExtractor: Trace connect 0xc8e7fb80 0xc99f3a80
I/OMXClient: Treble IOmx obtained
W/ExtendedACodec: Failed to get extension for extradata parameter
E/MediaExtractor: Trace connect 0xc8e7fc00 0xc99f3880
I/OMXClient: Treble IOmx obtained
W/ExtendedACodec: Failed to get extension for extradata parameter
E/CameraController2: camera error: 4
E/CameraController2: onError
E/CameraController2: error occurred after camera was opened
E/libc: Access denied finding property "persist.camera.cfa.packagelist"
W/com.kenthinson.opencamera: type=1400 audit(0.0:525): avc: denied { read } for comm=4173796E635461736B202335 name="u:object_r:camera_prop:s0" dev="tmpfs" ino=15428 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "persist.camera.cfa.packagelist"
E/MediaExtractor: Trace connect 0xc937dac0 0xcab93040
E/Preview: no video qualities found
I/OMXClient: Treble IOmx obtained
W/ExtendedACodec: Failed to get extension for extradata parameter
E/MediaExtractor: Trace connect 0xc31fb200 0xcab93f00
I/OMXClient: Treble IOmx obtained
W/ExtendedACodec: Failed to get extension for extradata parameter
E/MediaExtractor: Trace connect 0xc31fb260 0xcab930c0
I/OMXClient: Treble IOmx obtained
W/ExtendedACodec: Failed to get extension for extradata parameter
E/CameraController2: camera error: 4
E/CameraController2: onError
If I relaunch open camera and do the crash again after the second crash the whole camera system locks up and cant be accessed from any app. The phone has to be rebooted to regain camera function.
I am trying to trace the issue but could use some guideance Mark. Thanks!
Anonymous
can you please tell me where is that switch? i have mi6.