[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] maddler:
Anyone else having camera "unknow error"? That's quite random and a reboot fixes it (at least for a while).

Had this issue on 4.1.1 and just happened again on Beta 4.

Logcat:

04-01 02:04:59.180 5897 7906 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.oneplus.camera/.OPCameraActivity bnds=[765,1435][855,1569] (has extras)} from uid 10101 pid 7398 on display 0

04-01 02:04:59.400 18421 18421 V OPCameraActivity: onCreate() - Instance ID : 171786325

04-01 02:04:59.403 18421 18421 V OPCameraActivity: disableBeam()

04-01 02:04:59.405 18421 18421 D OPCameraActivity: [Property] State(id=18) : NEW -> CREATING

04-01 02:04:59.407 18421 18421 D OPCameraActivity: updateThemeMode() - themeMode : 2

04-01 02:04:59.412 18421 18421 V OPCameraActivity: checkRequiredPermissions() - All required permissions are granted

04-01 02:04:59.412 18421 18421 V OPCameraActivity: checkStartMode() - Start mode: NORMAL, Media extras: null

04-01 02:04:59.413 18421 18421 V OPCameraActivity: checkLatestLeavingTime() - Keep last capture settings

04-01 02:04:59.423 18421 18421 D OPCameraActivity: [Property] Settings(id=63) : null -> (Global)@259562331

04-01 02:04:59.425 18421 18421 W OPCameraActivity: updateScreenSize() - Screen size : 1080x1920 (Full HD)

04-01 02:04:59.425 18421 18421 W OPCameraActivity: disableCaptureUI() - Handle : DisableCaptureUI [152178680]{ Usage = CameraPreviewStartStop, Time = 04/01 02:04:59.425 }, handle count : 1

04-01 02:04:59.425 18421 18421 D OPCameraActivity: [Property] IsCaptureUIEnabled(id=37) : true -> false

04-01 02:04:59.427 18421 18421 V CameraApplication: notifyInstanceCreated() - Instance count : 2

04-01 02:04:59.430 18421 18421 W OPCameraActivity: disableCaptureUI() - Handle : DisableCaptureUI [257854673]{ Usage = CaptureModeSwitch, Time = 04/01 02:04:59.430 }, handle count : 2

04-01 02:04:59.431 18421 18421 W OPCameraActivity: setSettings() - Create handle : Settings [10195511]

04-01 02:04:59.431 18421 18421 D OPCameraActivity: [Property] Settings(id=63) : (Global)@259562331 -> photo@106181540

04-01 02:04:59.431 18421 18421 W PhotoCaptureMode: applyScene() - No camera

04-01 02:04:59.432 18421 18421 W PhotoCaptureMode: setRawCaptureState() - camera is null

04-01 02:04:59.432 18421 18421 W OPCameraActivity: enableCaptureUI() - Handle : DisableCaptureUI [257854673]{ Usage = CaptureModeSwitch, Time = 04/01 02:04:59.430 }, handle count : 1

04-01 02:04:59.432 18421 18421 W CameraThread: start()

04-01 02:04:59.434 18421 18421 V OPCameraActivity: setContentView() - Load content view [start]

04-01 02:04:59.436 18421 18459 W CameraThread: +++++ START +++++

04-01 02:04:59.436 18421 18459 W ThreadMonitor: Start monitor 'Camera Thread' (18459)

04-01 02:04:59.437 18421 18459 V CameraThread: onStarting() - Initial screen size : 1080x1920 (Full HD)

04-01 02:04:59.438 18421 18459 V CameraThread: onStarting() - Initial media type : PHOTO

04-01 02:04:59.439 18421 18459 D ComponentManager: createComponent() - Component : Camera device manager

04-01 02:04:59.440 18421 18459 D ComponentManager: initializeComponent() - Component : Camera device manager

04-01 02:04:59.442 18421 18459 V CameraThread: Enter loop

04-01 02:04:59.461 18421 18421 V OPCameraActivity: setContentView() - Load content view [end]

04-01 02:04:59.461 18421 18421 V OPCameraActivity: setContentView() - Set content view [start]

04-01 02:04:59.490 18421 18421 V OPCameraActivity: setContentView() - Set content view [end]

04-01 02:04:59.493 6522 6522 D SystemServicesProxy: getRecentTasks: com.oneplus.camera

04-01 02:04:59.497 18421 18421 V OPCameraActivity: checkRequiredPermissions() - All required permissions are granted

04-01 02:04:59.497 18421 18421 D OPCameraActivity: [Property] State(id=18) : CREATING -> STARTING

04-01 02:04:59.498 18421 18459 D CameraThread: [Property] AllRequiredPermissionsGranted(id=67) : false -> true

04-01 02:04:59.503 18421 18459 V CameraDeviceManagerImpl: refreshCameraList() - Takes 1ms to refresh list, cameras : []

04-01 02:04:59.506 18421 18421 V OPCameraActivity: onAllPermissionsCompleted() - All permissions are completed: [android.permission.CAMERA, android.permission.RECORD_AUDIO, android.permission.READ_EXTERNAL_STORAGE, android.permission.WRITE_EXTERNAL_STORAGE], result: [0, 0, 0, 0]

04-01 02:04:59.513 18421 18421 D OPCameraActivity: [Property] State(id=18) : STARTING -> RESUMING

04-01 02:04:59.516 18421 18421 D OPCameraActivity: [Property] State(id=18) : RESUMING -> RUNNING

04-01 02:04:59.516 18421 18421 W PhotoCaptureMode: setRawCaptureState() - camera is null

04-01 02:04:59.516 18421 18421 D OPCameraActivity: [Property] IsRunning(id=16) : false -> true

04-01 02:04:59.517 18421 18421 D OPCameraActivity: updateThemeMode() - themeMode : 2

04-01 02:04:59.521 18421 18421 W OPCameraActivity: startCameraPreview() - No camera to start preview

04-01 02:04:59.521 18421 18421 W OPCameraActivity: updateBurstEnablingState() - Camera is null, disable burst

04-01 02:04:59.535 18421 18459 V OPCameraActivity: bindToCameraThread()

04-01 02:04:59.535 18421 18421 D OPCameraActivity: [Property] BatteryLevel(id=24) : 0 -> 78

04-01 02:04:59.536 18421 18459 W OPCameraActivity: bindToCameraThread() - Empty camera list

04-01 02:04:59.607 18421 18421 E OPCameraActivity: onAvailableCamerasChanged() - Empty camera list

04-01 02:04:59.613 18421 18421 E OPCameraActivity: onCameraOpenFailed() - Error code : 0

04-01 02:04:59.623 18421 18421 W OPCameraActivity: disableCaptureUI() - Handle : DisableCaptureUI [121870728]{ Usage = CameraPreviewFrameWaiting, Time = 04/01 02:04:59.623 }, handle count : 2

04-01 02:04:59.667 18421 18421 D OPCameraActivity: [Property] IsRunning(id=16) : true -> false

04-01 02:04:59.667 18421 18421 D OPCameraActivity: [Property] State(id=18) : RUNNING -> PAUSING

04-01 02:04:59.669 18421 18421 W OPCameraActivity: onPause() - Remove capture UI disable handle : DisableCaptureUI [121870728]{ Usage = CameraPreviewFrameWaiting, Time = 04/01 02:04:59.623 }

04-01 02:04:59.669 18421 18421 W OPCameraActivity: onPause() - Capture UI disable handle count : 1

04-01 02:04:59.669 18421 18421 W OPCameraActivity: onPause() - Active capture UI disable handle : [0] DisableCaptureUI [152178680]{ Usage = CameraPreviewStartStop, Time = 04/01 02:04:59.425 }

04-01 02:04:59.682 5897 7911 I WindowManager: Failed to capture screenshot of Token{7840282 ActivityRecord{dcbf9cd u0 com.oneplus.camera/.OPCameraActivity t4040 f}} appWin=Window{73ee9e2 u0 SurfaceView - com.oneplus.camera/com.oneplus.camera.OPCameraActivity} drawState=4

04-01 02:04:59.852 18421 18421 D OPCameraActivity: [Property] State(id=18) : PAUSING -> STOPPED

04-01 02:04:59.853 18421 18421 D OPCameraActivity: [Property] State(id=18) : STOPPED -> DESTROYING

04-01 02:04:59.853 18421 18421 V OPCameraActivity: unregisterReceivers()

04-01 02:04:59.855 18421 18421 W CameraThread: release()

04-01 02:04:59.856 18421 18459 W CameraThread: handleMessage() - Quit looper

04-01 02:04:59.856 18421 18459 W CameraThread: closeCamerasInternal() - Start

04-01 02:04:59.856 18421 18459 W CameraThread: closeCamerasInternal() - End

04-01 02:04:59.856 18421 18459 W ComponentManager: removeComponentInternal() - Component : Camera device manager

04-01 02:04:59.857 18421 18459 W ThreadMonitor: Stop monitor 'Camera Thread' (18459)

04-01 02:04:59.857 18421 18459 W CameraThread: +++++ STOP +++++

04-01 02:04:59.858 18421 18421 W OPCameraActivity: restoreSettings() - Handle : Settings [10195511]

04-01 02:04:59.858 18421 18421 D OPCameraActivity: [Property] Settings(id=63) : photo@106181540 -> (Global)@259562331

04-01 02:04:59.859 18421 18421 D OPCameraActivity: [Property] State(id=18) : DESTROYING -> DESTROYED

^