[OnePlus 9] dimoochka:
Bug Report (Google Camera Crashes)

Model: LE2115 (NA)

What is your--

LineageOS Version: 20.0-20230208-NIGHTLY-lemonade

LineageOS Download URL: https://mirrorbits.lineageos.org/fu...age-20.0-20230208-nightly-lemonade-signed.zip

Gapps version: MindTheGapps-13.0.0-arm64-20221025_100653

Did you--

wipe: yes

restore with titanium backup: no

reboot after having the issue: yes

Are you using--

a task killer: no

a non-stock kernel: no

other modifications: Magisk, only module is Universal SafetyNet Fix v2.4.0

Bug info: Fresh install. Google Camera app opens just fine, however it reproducibly crashes when opening Settings from within the app. Rebooting and reinstalling the app has no effect. The exception thrown is:

{com.google.android.GoogleCamera/com.google.android.apps.camera.legacy.app.settings.CameraSettingsActivity}: java.lang.RuntimeException: Unknown camera ID

thrown from:

android.hardware.Camera.getCameraInfo(Camera.java:335)

Relevant logcat is attached below.

Thanks for your work! Wonderful ROM!

02-08 12:06:01.313 1730 5472 I ActivityTaskManager: START u0 {cmp=com.google.android.GoogleCamera/com.google.android.apps.camera.legacy.app.settings.CameraSettingsActivity} from uid 10233
02-08 12:06:01.314 1730 5472 D CompatibilityChangeReporter: Compat change id reported: 194480991; UID 10233; state: ENABLED
02-08 12:06:01.316 1730 5472 D CompatibilityChangeReporter: Compat change id reported: 184838306; UID 10233; state: DISABLED
02-08 12:06:01.316 1730 5472 D CompatibilityChangeReporter: Compat change id reported: 185004937; UID 10233; state: DISABLED
02-08 12:06:01.316 17423 17625 E BLASTBufferQueue: [VRI[CameraLauncher]#0](f:0,a:3) Faking releaseBufferCallback from transactionCompleteCallback
02-08 12:06:01.319 1056 1056 I android.hardware.power-service-qti: Power setMode: 5 to: 1
02-08 12:06:01.323 1730 5472 D CompatibilityChangeReporter: Compat change id reported: 194833441; UID 10233; state: DISABLED
02-08 12:06:01.326 1036 1825 D android.hardware.camera.provider@2.4-service_64: IMX689 ExposureInfo(Short, Middle, Long) - Analog Gain(0.000000, 0.000000, 3.282051), Digital Gain(0.000000, 0.000000, 1.000000), Linecount(1, 0, 928), ISP Digital Gain 1.000610, Exposure Ratio (LM, MS, LS) = (inf, 0.000000, 3047.602051)
02-08 12:06:01.327 17423 17423 I CAM_GcaActivity: [b466c5e] GcaActivity#onPause
02-08 12:06:01.331 1730 1756 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (928242)
02-08 12:06:01.332 1730 1756 D CompatibilityChangeReporter: Compat change id reported: 168419799; UID 10233; state: DISABLED
02-08 12:06:01.334 17423 17625 E BLASTBufferQueue: [VRI[CameraLauncher]#0](f:0,a:3) Faking releaseBufferCallback from transactionCompleteCallback
02-08 12:06:01.338 17423 17514 W CameraMetadataJV: Expect face scores and rectangles to be non-null
02-08 12:06:01.339 1151 1151 I DisplayDevice: Display 4630946950956839810 policy changed
02-08 12:06:01.339 1151 1151 I DisplayDevice: Previous: {{defaultModeId=0, allowGroupSwitching=false, primaryRange=[60.00 Hz, 60.00 Hz], appRequestRange=[60.00 Hz, 60.00 Hz]}}
02-08 12:06:01.339 1151 1151 I DisplayDevice: Current: {{defaultModeId=0, allowGroupSwitching=false, primaryRange=[0.00 Hz, 120.00 Hz], appRequestRange=[0.00 Hz, 120.00 Hz]}}
02-08 12:06:01.339 1151 1151 I DisplayDevice: 1 mode changes were performed under the previous policy
02-08 12:06:01.350 1088 1189 I IRIS_LOG_SERV: SetActiveConfig[1]: 120 2400x1080 => -1
02-08 12:06:01.352 1088 1189 I SDM : HWDeviceDRM::UpdateMixerAttributes: Mixer WxH 1080x2400-1 for Peripheral
02-08 12:06:01.352 1088 1189 I SDM : HWCDisplay::SubmitDisplayConfig: HWC SetActiveConfig [0,1], cur_resolution is (1080, 2400), new_resolution is (1080, 2400)
02-08 12:06:01.352 1088 1189 I SDM : HWCDisplay::SubmitDisplayConfig: Active configuration changed to: 1
02-08 12:06:01.353 1088 1189 D IRIS_LOG_COLR: Use kPbGamut HwConfigPayload
02-08 12:06:01.358 17423 17625 E BLASTBufferQueue: [VRI[CameraLauncher]#0](f:0,a:3) Faking releaseBufferCallback from transactionCompleteCallback
02-08 12:06:01.359 1036 1818 D android.hardware.camera.provider@2.4-service_64: IMX689 ExposureInfo(Short, Middle, Long) - Analog Gain(0.000000, 0.000000, 3.282051), Digital Gain(0.000000, 0.000000, 1.000000), Linecount(1, 0, 928), ISP Digital Gain 1.000610, Exposure Ratio (LM, MS, LS) = (inf, 0.000000, 3047.602051)
02-08 12:06:01.359 610 610 I [drm:dsi_display_set_mode [msm_drm]] [msm-dsi-info]: mdp_transfer_time=4764, hactive=1080, vactive=2400, fps=120
02-08 12:06:01.359 610 610 E : dsi_cmd qcom,mdss-dsi-post-mode-switch-on-command
02-08 12:06:01.359 610 610 E : dsi_cmd qcom,mdss-dsi-timing-switch-command
02-08 12:06:01.360 610 610 E : dsi_cmd qcom,mdss-dsi-post-panel-on-command
02-08 12:06:01.360 610 610 I [drm:dsi_panel_set_backlight [msm_drm]] [msm-dsi-info]: backlight type:2 lvl:2237
02-08 12:06:01.360 610 610 E : dsi_cmd qcom,mdss-dsi-hbm-enter-switch-command
02-08 12:06:01.367 17423 17514 W CameraMetadataJV: Expect face scores and rectangles to be non-null
02-08 12:06:01.367 1730 1772 I DisplayDeviceRepository: Display device changed: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:4630946950956839810", 1080 x 2400, modeId 2, defaultModeId 1, supportedModes [{id=1, width=1080, height=2400, fps=60.000004, alternativeRefreshRates=[120.00001]}, {id=2, width=1080, height=2400, fps=120.00001, alternativeRefreshRates=[60.000004]}], colorMode 0, supportedColorModes [0, 7, 9], hdrCapabilities HdrCapabilities{mSupportedHdrTypes=[2, 3, 4], mMaxLuminance=540.0, mMaxAverageLuminance=270.1, mMinLuminance=0.2}, allmSupported false, gameContentTypeSupported false, density 450, 391.885 x 403.708 dpi, appVsyncOff 1000000, presDeadline 11333333, cutout DisplayCutout{insets=Rect(0, 123 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(0, 0 - 164, 123), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1080 displayHeight=2400 physicalDisplayWidth=1080 physicalDisplayHeight=2400 density={2.8125} cutoutSpec={M 99,68.5 M 65,68.5 A 34,34 0 1,0 133,68.5 A 34,34 0 1,0 65,68.5 Z @left} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, touch INTERNAL, rotation 0, type INTERNAL, address {port=130, model=0x40446db75175f3}, deviceProductInfo DeviceProductInfo{name=, manufacturerPnpId=QCM, productId=1, modelYear=null, manufactureDate=ManufactureDate{week=27, year=2006}, connectionToSinkType=0}, state ON, frameRateOverride , brightnessMinimum 0.0, brightnessMaximum 1.0, brightnessDefault 0.45882353, roundedCorners RoundedCorners{[RoundedCorner{position=TopLeft, radius=18, center=Point(18, 18)}, RoundedCorner{position=TopRight, radius=18, center=Point(1062, 18)}, RoundedCorner{position=BottomRight, radius=18, center=Point(1062, 2382)}, RoundedCorner{position=BottomLeft, radius=18, center=Point(18, 2382)}]}, FLAG_ALLOWED_TO_BE_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, installOrientation 0}
02-08 12:06:01.373 16942 16942 D CameraOrientationUtil: getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=90, isOppositeFacing=true, result=90
02-08 12:06:01.375 1057 14788 I sensors-hal: handle_sns_std_sensor_event:130, ambient_light: ts=937911751115, lux = 412, raw_adc=549, data_cnt 631
02-08 12:06:01.380 17423 17423 D AndroidRuntime: Shutting down VM
02-08 12:06:01.380 17423 17423 E AndroidRuntime: FATAL EXCEPTION: main
02-08 12:06:01.380 17423 17423 E AndroidRuntime: Process: com.google.android.GoogleCamera, PID: 17423
02-08 12:06:01.380 17423 17423 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.GoogleCamera/com.google.android.apps.camera.legacy.app.settings.CameraSettingsActivity}: java.lang.RuntimeException: Unknown camera ID
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3645)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7872)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: Caused by: java.lang.RuntimeException: Unknown camera ID
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.hardware.Camera.getCameraInfo(Camera.java:335)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at hmn.d(PG:52)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at fss.d(PG:11)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at ekv.onCreate(PG:146)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.Fragment.performCreate(Fragment.java:2486)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1261)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2431)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2210)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3057)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3004)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:185)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:8313)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:8284)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3626)
02-08 12:06:01.380 17423 17423 E AndroidRuntime: ... 12 more
02-08 12:06:01.382 1730 5472 D CompatibilityChangeReporter: Compat change id reported: 135634846; UID 10233; state: DISABLED
02-08 12:06:01.382 1730 5472 D CompatibilityChangeReporter: Compat change id reported: 177438394; UID 10233; state: DISABLED
02-08 12:06:01.382 1730 5472 D CompatibilityChangeReporter: Compat change id reported: 135772972; UID 10233; state: DISABLED
02-08 12:06:01.382 1730 5472 D CompatibilityChangeReporter: Compat change id reported: 135754954; UID 10233; state: DISABLED
02-08 12:06:01.383 1730 1780 D CompatibilityChangeReporter: Compat change id reported: 143937733; UID 10233; state: DISABLED
02-08 12:06:01.385 1730 17639 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
02-08 12:06:01.385 1730 5472 W ActivityTaskManager: Force finishing activity com.google.android.GoogleCamera/com.google.android.apps.camera.legacy.app.settings.CameraSettingsActivity
02-08 12:06:01.391 867 867 D Zygote : Forked child process 17641
02-08 12:06:01.393 1036 1825 D android.hardware.camera.provider@2.4-service_64: IMX689 ExposureInfo(Short, Middle, Long) - Analog Gain(0.000000, 0.000000, 3.282051), Digital Gain(0.000000, 0.000000, 1.000000), Linecount(1, 0, 928), ISP Digital Gain 1.000610, Exposure Ratio (LM, MS, LS) = (inf, 0.000000, 3047.602051)
02-08 12:06:01.395 1730 5472 W ActivityTaskManager: Force finishing activity com.google.android.GoogleCamera/com.android.camera.CameraLauncher
02-08 12:06:01.400 17641 17641 I libc : SetHeapTaggingLevel: tag level set to 0
02-08 12:06:01.400 17423 17514 W CameraMetadataJV: Expect face scores and rectangles to be non-null
02-08 12:06:01.401 17423 17423 I Process : Sending signal. PID: 17423 SIG: 9
02-08 12:06:01.402 1730 1780 I ActivityManager: Start proc 17641:com.google.android.GoogleCamera:crash_report/u0a233 for service {com.google.android.GoogleCamera/com.google.android.apps.camera.legacy.app.silentfeedback.SilentFeedbackService}
02-08 12:06:01.403 1730 1779 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver