Status Update
Comments
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #2
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
ap...@google.com <ap...@google.com> #3
Tested on Android 12 Emulator with custom executor, but cannot repro this issue.
ch...@google.com <ch...@google.com> #4
-
Second crash in the description is from a real device. Experienced it myself on two different Xiaomi phones, plus lots of crashes from users in the Google Play console.
-
Dynamic features are not used in the application.
As a wild guess, I have downgraded build tools from 31.0.0 to 30.0.3, compileSdk from 31 to 30, and moved all work with Language ID to the service in a separate process (just to be sure that crash can kill secondary process instead of main). This combination is in beta for 2 days by now and I don't see any SIGSEGV crashes.
pr...@google.com <pr...@google.com> #5
Hmm, I feel the crash might be something related to separate/secondary process.
I also changed compileSdk and targetSDK to 31 but still cannot repro this issue.
Description
This issue is created for tracking the forum issue link .
When the HDR extension on the CameraX library is used (while using the back camera), while the preview is running logcat displays these lines continuously:
This goes on and on. When capturing a photo, the capture callback is never called. In logcat I can see the following errors:
See the attached logcat file log1.txt.
When using the front camera, the preview issues the same logs while the preview is running. Capturing a photo sometimes work (looks like it works when there is not a lot of difference in light intensity). When it does not work, the following error is logged:
Tag name 'dynamicShotCaptureDuration' does not exist.
See the attached logcat file log2.txt.
I followed the API documentation. The sample library (https://github.com/android/camera-samples ) has the same behaviour. I also tried a third party CameraX app from the Play Store, taking a photo in HDR causes the same issue. Using code or an app that implements Camera2 directly does not cause any problems with HDR enabled.
Occurs with CameraX version: 1.3.4 and 1.4.0-rc01 I tried both PreviewView.ImplementationMode.PERFORMANCE and PreviewView.ImplementationMode.COMPATIBLE Extensions Bokeh and Face Retouch do work.
Device: Samsung Galaxy A52s 5G
Model: SM-A528B/DS
Android version: 14 (build number UP1A.231005.007.A528BXXS9GXG5)