Skip to content

System camera app crashes when switching to second/third camera lens on Xiaomi POCO F2 Pro (lmi) #1036

Description

@CatzTimes

Issue type

Feature not working as intended

Device

Xiaomi POCO F2 Pro (lmi)

crDroid version

crDroid 12

Exact version / Build date

12.11 / 2026-06-11

Bug description

After updating to crDroid 12.10 (Android 16), the system camera app still crashes when switching to the second or third camera lens. The main camera works normally, but tapping another lens immediately closes the camera app.
#1007

Steps to reproduce

Step 1. Open the system camera app (Aperture).
Step 2. Tap the second or third camera lens button.
Step 3. Camera app crashes instantly.

Relevant log (logcat/build log)

time: 1779637988650
msg: java.lang.IllegalStateException: Unable to find camera with id 11 from list of available cameras.
stacktrace: java.lang.IllegalStateException: Unable to find camera with id 11 from list of available cameras.
	at androidx.camera.core.impl.CameraInfoInternal$$ExternalSyntheticLambda0.filter(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:56)
	at androidx.camera.core.CameraSelector.filter(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:28)
	at androidx.camera.core.CameraSelector.select(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:30)
	at androidx.camera.lifecycle.LifecycleCameraProviderImpl.bindToLifecycleInternal$default(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:51)
	at androidx.camera.view.ProcessCameraProviderWrapperImpl.bindToLifecycle(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:47)
	at androidx.camera.view.LifecycleCameraController.startCamera(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:65)
	at androidx.camera.view.LifecycleCameraController.startCameraAndTrackStates(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:1)
	at org.lineageos.aperture.CameraActivity$loadData$2$1.invokeSuspend(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:1315)
	at org.lineageos.aperture.CameraActivity$loadData$2$1.invoke(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:13)
	at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invokeSuspend(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:53)
	at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invoke(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:18)
	at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invokeSuspend(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:35)
	at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invoke(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:13)
	at kotlinx.coroutines.AbstractCoroutine.start(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:29)
	at kotlinx.coroutines.BuildersKt.launch(Unknown Source:46)
	at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:13)
	at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1.emit(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:109)
	at kotlinx.coroutines.flow.SharedFlowImpl.collect$suspendImpl(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:199)
	at kotlinx.coroutines.flow.SharedFlowImpl$collect$1.invokeSuspend(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:13)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:8)
	at kotlinx.coroutines.DispatchedTask.run(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:113)
	at kotlinx.coroutines.EventLoopImplBase.processUnconfinedEvent(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:24)
	at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:92)
	at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$external__kotlinx_coroutines__linux_glibc_common__kotlinx_coroutines_host(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:38)
	at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:17)
	at kotlinx.coroutines.flow.StateFlowImpl.updateState(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:99)
	at org.lineageos.aperture.CameraActivity$$ExternalSyntheticLambda58.invoke(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:632)
	at org.lineageos.aperture.ui.views.LensSelectorLayout$setCamera$button$1$1.onClick(go/retraceme b46cba46c92ba57e6a1324ecc5570a9dfeff1315c49f9fa3fbb9aed0ea5e5c3b:32)
	at android.view.View.performClick(View.java:8204)
	at android.view.View.performClickInternal(View.java:8181)
	at android.view.View.-$$Nest$mperformClickInternal

Screenshots or videos

No response

Solution

No response

Additional context

Issue is fully reproducible on every launch.
Main camera works correctly, only secondary/tertiary lenses cause the crash.

Acknowledgements

  • I've checked device is officially supported and that no support is provided for unofficial devices (for device specific reports and not source related).
  • I'm running latest version available on crdroid.net for this device and that the device is still maintainer supported (not flagged unsupported on download page)
  • I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this issue properly and understand that not doing so will automatically result in closing of ticket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions