[OnePlus 5 Themes, Apps, and Mods] tk-germany:
Hi there, thanks for your support.

I am on OP-Stock rooted 5.1.5

the only Magisk-module activated: "OnePlus 5T Camera Libraries Fix V2.5 OB17"

When I disable the module the problem disappears completely.

I did some more tests:

When I boot the phone and open the OP-Cam and change to Portrait it works

When I then go back to "Desktop" and open it again it closes itelf (without an error-message)

This also happens when I after that go to system-settings and manually force-close it and clear storage

BUT when I wait sme time, after it closed itself i can reopen it and it works again one time. It's really strange.

At least I seem to have found a way around (just havt to let it crash once and wait a minute :eek: )

Also got some debug-log, if that helps somehow:

11-03 18:42:05.859 10031 8518 11488 I chatty : uid=10031(com.oneplus.camera) expire 93 lines
11-03 18:42:05.955 10031 8518 11488 W LegacyCameraImpl: openCameraInternal() - Open camera '3' [End]
11-03 18:42:05.955 10031 8518 11488 V LegacyCameraImpl: setupCameraStateCallback() - Call-back set
11-03 18:42:05.955 10031 8518 11488 V LegacyCameraImpl: applyProcessCallback() - Set process callback
11-03 18:42:05.957 10031 8518 11488 V LegacyCameraImpl: checkPreviewFPSRanges() - FPS ranges: [[10, 15], [10, 20], [10, 24], [10, 30], [30, 30], [60, 60]]
11-03 18:42:05.957 10031 8518 11488 V LegacyCameraImpl: checkDefaultPreviewFPSRange() - Default photo preview FPS range: [10, 30]
11-03 18:42:05.957 10031 8518 11488 V LegacyCameraImpl: checkDefaultPreviewFPSRange() - Default video FPS range : [10, 30]
11-03 18:42:05.957 10031 8518 11488 V LegacyCameraImpl: checkZoomRange() - Digital zoom range: [1.0, 8.0], Zoom range: [0, 90]
11-03 18:42:05.957 10031 8518 11488 V LegacyCameraImpl: updateParameters() - Default JPEG quality : 95
11-03 18:42:05.957 10031 8518 11488 D LegacyCameraImpl: [Property] State(id=247) : OPENING -> OPENED
11-03 18:42:05.958 10031 8518 11488 W ComponentManager: createComponents(HIGH) - Start
11-03 18:42:05.958 10031 8518 11488 W ComponentManager: createComponents(HIGH) - End
11-03 18:42:05.958 10031 8518 11488 V LegacyCameraImpl: setSceneModeProp() - Scene mode : 10001
11-03 18:42:05.958 10031 8518 11488 W LegacyCameraImpl: setPictureSizeProp() - Size : 4608x3456
11-03 18:42:05.958 10031 8518 11488 V LegacyCameraImpl: setVideoSizeProp() - Video size : 1920x1080
11-03 18:42:05.958 10031 8518 11488 W CameraThread: startCameraPreviewInternal() - Change preview receiver to android.view.SurfaceView$3@8451ab5
11-03 18:42:05.958 10031 8518 11488 W CameraThread: startCameraPreviewInternal() - Preview size : 1440x1080
11-03 18:42:05.958 10031 8518 11488 V CameraThread: startCameraPreviewInternal() - Reset preview fps
11-03 18:42:05.958 10031 8518 11488 W CameraThread: startCameraPreviewInternal() - Start preview for camera Legacy camera[ID=3, Facing=BACK]
11-03 18:42:05.958 10031 8518 11488 D LegacyCameraImpl: [Property] PreviewState(id=239) : STOPPED -> STARTING
11-03 18:42:05.958 10031 8518 11488 D CameraThread: [Property] CameraPreviewState(id=74) : STOPPED -> STARTING
11-03 18:42:05.959 10031 8518 11488 D CameraThread: getFreeSpace() - reserveSpaceStr : 3501500
11-03 18:42:05.959 10031 8518 11488 D CameraThread: getFreeSpace() - m_SystemReserveDiskSpace : 3585536000
11-03 18:42:05.959 10031 8518 11488 D CameraThread: [Property] RemainingPhotoCount(id=84) : 0 -> 14494
11-03 18:42:05.960 10031 8518 11488 D CameraThread: [Property] RemainingVideoDurationSeconds(id=85) : 0 -> 32974
11-03 18:42:05.960 10031 8518 11488 V LegacyCameraImpl: startPreviewInternal() - Set preview display
11-03 18:42:05.966 10031 8518 11488 V LegacyCameraImpl: mappingToDriverFPSRange() - Choosed FPS range: [10000, 30000]
11-03 18:42:05.967 10031 8518 11488 V LegacyCameraImpl: applyThumbnailSize() - Thumbnail image size : 320x240
11-03 18:42:05.967 10031 8518 11488 V LegacyCameraImpl: applyZoom() - Zoom: 0
11-03 18:42:05.971 10031 8518 11488 V LegacyCameraImpl: checkAlternativePictureSizes() - Alternative picture sizes : [5184x3880]
11-03 18:42:05.971 10031 8518 11488 V LegacyCameraImpl: addPreviewCallbacks() - Bytes length: 2332800
11-03 18:42:05.972 10031 8518 11488 W LegacyCameraImpl: startPreviewInternal() - Start preview '3' [Start]
11-03 18:42:06.160 10031 8518 11488 W LegacyCameraImpl: startPreviewInternal() - Start preview '3' [End]
11-03 18:42:06.181 10031 8518 11488 D LegacyCameraImpl: [Property] PreviewState(id=239) : STARTING -> STARTED
11-03 18:42:06.181 10031 8518 11488 D CameraThread: [Property] CameraPreviewState(id=74) : STARTING -> STARTED
11-03 18:42:06.182 10031 8518 11488 D CameraThread: getFreeSpace() - m_SystemReserveDiskSpace : 3585536000
11-03 18:42:06.182 10031 8518 11488 D CameraThread: [Property] PhotoCaptureState(id=83) : PREPARING -> READY
11-03 18:42:06.183 10031 8518 11488 D ComponentManager: createComponent() - Component : File manager
11-03 18:42:06.183 10031 8518 11488 D ComponentManager: createComponent() - Component : Camera Audio Manager
11-03 18:42:06.183 10031 8518 11488 V AudioManagerImpl: getSoundPool() - Create sound pool for stream type 1
11-03 18:42:06.186 10031 8518 11488 V AudioManagerImpl: loadSound() - Resource : 2131427334, handle : Sound [48926952]
11-03 18:42:06.186 10031 8518 11488 V AudioManagerImpl: loadSound() - Resource : 2131427328, handle : Sound [24548097]
11-03 18:42:06.186 10031 8518 11488 V AudioManagerImpl: loadSound() - Resource : 2131427332, handle : Sound [67966374]
11-03 18:42:06.186 10031 8518 11488 V AudioManagerImpl: loadSound() - Resource : 2131427329, handle : Sound [177142759]
11-03 18:42:06.186 10031 8518 11488 V AudioManagerImpl: loadSound() - Resource : 2131427333, handle : Sound [189518740]
11-03 18:42:06.186 10031 8518 11488 V AudioManagerImpl: loadSound() - Resource : 2131427331, handle : Sound [37248573]
11-03 18:42:06.187 10031 8518 11488 V AudioManagerImpl: loadSound() - Resource : 2131427330, handle : Sound [249882162]
11-03 18:42:06.187 10031 8518 11488 W ComponentManager: createComponents(NORMAL) - Start
11-03 18:42:06.187 10031 8518 11488 D ComponentManager: createComponent() - Component : Location Manager (Camera Thread)
11-03 18:42:06.187 10031 8518 11488 D ComponentManager: createComponent() - Component : Online Watermark Controller
11-03 18:42:06.187 10031 8518 11488 D ComponentManager: createComponent() - Component : Exposure Controller
11-03 18:42:06.187 10031 8518 11488 D ComponentManager: createComponent() - Component : Focus Controller
11-03 18:42:06.187 10031 8518 11488 D ComponentManager: initializeComponent() - Component : Focus Controller
11-03 18:42:06.187 10031 8518 11488 D ComponentManager: initializeComponent() - Component : Exposure Controller
11-03 18:42:06.188 10031 8518 11488 D ComponentManager: initializeComponent() - Component : Online Watermark Controller
11-03 18:42:06.189 10031 8518 11488 D SloganWatermarkDrawable: getCustomFlag() - Custom flag : 0
11-03 18:42:06.189 10031 8518 11488 D OnlineWatermarkControllerImpl: updateWatermark() - Not enter
11-03 18:42:06.189 10031 8518 11488 D ComponentManager: initializeComponent() - Component : Location Manager (Camera Thread)
11-03 18:42:06.189 10031 8518 11488 W ComponentManager: createComponents(NORMAL) - End
11-03 18:42:06.189 10031 8518 11488 D ComponentManager: createComponent() - Component : Zoom Controller
11-03 18:42:06.189 10031 8518 11488 V LegacyCameraImpl: applyFaceBeautyValue() - faceBeautyValue : 0
11-03 18:42:06.189 10031 8518 11488 W FaceTrackerImpl: onFacesPropChanged() - No free face list
11-03 18:42:06.197 10031 8518 11488 D CameraThread: getFreeSpace() - m_SystemReserveDiskSpace : 3585536000
11-03 18:42:06.204 10031 8518 11488 D Camera : CAMERA_MSG_STATE_CALLBACK
11-03 18:42:06.205 10031 8518 11488 V LegacyCameraImpl: onAeStateChanged() : 2
11-03 18:42:06.205 10031 8518 11488 D LegacyCameraImpl: [Property] AEState(id=153) : INACTIVE -> SEARCHING
11-03 18:42:06.269 10031 8518 11488 V AudioManagerImpl: onSoundLoaded() - Handle : Sound [48926952]
11-03 18:42:06.292 10031 8518 11488 V AudioManagerImpl: onSoundLoaded() - Handle : Sound [24548097]
11-03 18:42:06.340 10031 8518 11488 V AudioManagerImpl: onSoundLoaded() - Handle : Sound [67966374]
11-03 18:42:06.487 10031 8518 11488 V AudioManagerImpl: onSoundLoaded() - Handle : Sound [177142759]
11-03 18:42:06.519 10031 8518 11488 V AudioManagerImpl: onSoundLoaded() - Handle : Sound [189518740]
11-03 18:42:06.551 10031 8518 11488 V AudioManagerImpl: onSoundLoaded() - Handle : Sound [37248573]
11-03 18:42:06.587 10031 8518 11488 V AudioManagerImpl: onSoundLoaded() - Handle : Sound [249882162]
11-03 18:42:06.767 10031 8518 11488 D Camera : CAMERA_MSG_STATE_CALLBACK
11-03 18:42:06.767 10031 8518 11488 V LegacyCameraImpl: onAeStateChanged() : 0
11-03 18:42:06.767 10031 8518 11488 D LegacyCameraImpl: [Property] AEState(id=153) : SEARCHING -> CONVERGED
11-03 18:42:07.038 10031 8518 11488 V CameraThread: stopCameraPreviewInternal() - Stop preview [start]
11-03 18:42:07.038 10031 8518 11488 D LegacyCameraImpl: [Property] PreviewState(id=239) : STARTED -> STOPPING
11-03 18:42:07.038 10031 8518 11488 D CameraThread: [Property] CameraPreviewState(id=74) : STARTED -> STOPPING
11-03 18:42:07.038 10031 8518 11488 D CameraThread: [Property] PhotoCaptureState(id=83) : READY -> PREPARING
11-03 18:42:07.041 10031 8518 11488 W LegacyCameraImpl: stopPreviewDirectlyInternal() - Stop preview '3' [Start]
11-03 18:42:07.195 10031 8518 11488 W LegacyCameraImpl: stopPreviewDirectlyInternal() - Stop preview '3' [End]
11-03 18:42:07.195 10031 8518 11488 D LegacyCameraImpl: [Property] PreviewState(id=239) : STOPPING -> STOPPED
11-03 18:42:07.195 10031 8518 11488 D CameraThread: [Property] CameraPreviewState(id=74) : STOPPING -> STOPPED
11-03 18:42:07.195 10031 8518 11488 V CameraThread: stopCameraPreviewInternal() - Stop preview [end]
11-03 18:42:07.195 10031 8518 11488 W CameraThread: stopCameraPreviewInternal() - Notify waiting thread
11-03 18:42:07.201 10031 8518 11488 W LegacyCameraImpl: setRawCaptureProp() - isEnabled is false
11-03 18:42:07.201 10031 8518 11488 V BokehController: enter()
11-03 18:42:07.201 10031 8518 11488 D BokehController: setupCameraParameters()
11-03 18:42:07.201 10031 8518 11488 D LegacyCameraImpl: [Property] BokehState(id=162) : DISABLED -> INITIALIZING
11-03 18:42:07.201 10031 8518 11488 V LegacyCameraImpl: setSceneModeProp() - Scene mode : 0
11-03 18:42:07.201 10031 8518 11488 W CameraThread: startCameraPreviewInternal() - Change preview receiver to android.view.SurfaceView$3@8451ab5
11-03 18:42:07.201 10031 8518 11488 W CameraThread: startCameraPreviewInternal() - Preview size : 1440x1080
11-03 18:42:07.201 10031 8518 11488 V CameraThread: startCameraPreviewInternal() - Reset preview fps
11-03 18:42:07.201 10031 8518 11488 W CameraThread: startCameraPreviewInternal() - Start preview for camera Legacy camera[ID=3, Facing=BACK]
11-03 18:42:07.201 10031 8518 11488 D LegacyCameraImpl: [Property] PreviewState(id=239) : STOPPED -> STARTING
11-03 18:42:07.201 10031 8518 11488 D CameraThread: [Property] CameraPreviewState(id=74) : STOPPED -> STARTING
11-03 18:42:07.201 10031 8518 11488 V LegacyCameraImpl: startPreviewInternal() - Set preview display
11-03 18:42:07.202 10031 8518 11488 D LegacyCameraImpl: applyBokehFaceBeauty() - Set level : 4
11-03 18:42:07.202 10031 8518 11488 V LegacyCameraImpl: applyThumbnailSize() - Thumbnail image size : 320x240
11-03 18:42:07.202 10031 8518 11488 V LegacyCameraImpl: applyZoom() - Zoom: 0
11-03 18:42:07.227 10031 8518 11488 V LegacyCameraImpl: checkAlternativePictureSizes() - Alternative picture sizes : [4608x3456]
11-03 18:42:07.227 10031 8518 11488 V LegacyCameraImpl: addPreviewCallbacks() - Bytes length: 2332800
11-03 18:42:07.227 10031 8518 11488 W LegacyCameraImpl: startPreviewInternal() - Start preview '3' [Start]
11-03 18:42:07.501 10031 8518 11488 W LegacyCameraImpl: startPreviewInternal() - Start preview '3' [End]
11-03 18:42:07.561 10031 8518 11488 D LegacyCameraImpl: [Property] PreviewState(id=239) : STARTING -> STARTED
11-03 18:42:07.561 10031 8518 11488 D CameraThread: [Property] CameraPreviewState(id=74) : STARTING -> STARTED
11-03 18:42:07.561 10031 8518 11488 D CameraThread: [Property] PhotoCaptureState(id=83) : PREPARING -> READY
11-03 18:42:07.561 10031 8518 11488 D LegacyCameraImpl: applyBokehFaceBeauty() - Disable
11-03 18:42:07.561 10031 8518 11488 D OnlineWatermarkControllerImpl: updateWatermark() - Not enter
11-03 18:42:07.605 10031 8518 11488 D CameraThread: getFreeSpace() - m_SystemReserveDiskSpace : 3585536000
11-03 18:42:07.606 10031 8518 11488 D CameraThread: [Property] RemainingVideoDurationSeconds(id=85) : 32974 -> 32973
11-03 18:42:12.504 10031 8518 11488 E Camera : Error 100
11-03 18:42:12.504 10031 8518 11488 E LegacyCameraImpl: onError - errorCode : 100
11-03 18:42:12.504 10031 8518 11488 E CameraThread: onCameraError() - Camera : Legacy camera[ID=3, Facing=BACK]
11-03 18:42:12.533 10031 8518 11488 V CameraThread: stopCameraPreviewInternal() - Stop preview [start]
11-03 18:42:12.533 10031 8518 11488 D LegacyCameraImpl: [Property] PreviewState(id=239) : STARTED -> STOPPING
11-03 18:42:12.533 10031 8518 11488 D CameraThread: [Property] CameraPreviewState(id=74) : STARTED -> STOPPING
11-03 18:42:12.533 10031 8518 11488 D CameraThread: [Property] PhotoCaptureState(id=83) : READY -> PREPARING
11-03 18:42:12.535 10031 8518 11488 W LegacyCameraImpl: stopPreviewDirectlyInternal() - Stop preview '3' [Start]
11-03 18:42:12.684 10031 8518 11488 W LegacyCameraImpl: stopPreviewDirectlyInternal() - Stop preview '3' [End]
11-03 18:42:12.684 10031 8518 11488 D LegacyCameraImpl: [Property] PreviewState(id=239) : STOPPING -> STOPPED
11-03 18:42:12.684 10031 8518 11488 D CameraThread: [Property] CameraPreviewState(id=74) : STOPPING -> STOPPED
11-03 18:42:12.684 10031 8518 11488 V CameraThread: stopCameraPreviewInternal() - Stop preview [end]
11-03 18:42:12.684 10031 8518 11488 W CameraThread: stopCameraPreviewInternal() - Notify waiting thread
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl: applyParameters() - Error when set parameters
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl: java.lang.RuntimeException: setParameters failed
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl:	at android.hardware.Camera.native_setParameters(Native Method)
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl:	at android.hardware.Camera.setParameters(Camera.java:2369)
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl:	at com.oneplus.camera.LegacyCameraImpl.applyParameters(LegacyCameraImpl.java:1072)
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl:	at com.oneplus.camera.LegacyCameraImpl.access$1100(LegacyCameraImpl.java:76)
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl:	at com.oneplus.camera.LegacyCameraImpl$10.run(LegacyCameraImpl.java:289)
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl:	at android.os.Handler.handleCallback(Handler.java:790)
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl:	at android.os.Handler.dispatchMessage(Handler.java:99)
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl:	at android.os.Looper.loop(Looper.java:164)
11-03 18:42:12.697 10031 8518 11488 E LegacyCameraImpl:	at com.oneplus.base.BaseThread.run(BaseThread.java:393)
11-03 18:42:12.699 10031 8518 11488 W CameraThread: closeCamerasInternal() - Start
11-03 18:42:12.699 10031 8518 11488 D LegacyCameraImpl: [Property] State(id=247) : OPENED -> CLOSING
11-03 18:42:12.699 10031 8518 11488 D LegacyCameraImpl: [Property] AEState(id=153) : CONVERGED -> INACTIVE
11-03 18:42:12.699 10031 8518 11488 W LegacyCameraImpl: closeInternal() - Release camera '3' [Start]
11-03 18:42:12.801 10031 8518 11488 W LegacyCameraImpl: closeInternal() - Release camera '3' [End]
11-03 18:42:12.801 10031 8518 11488 D LegacyCameraImpl: [Property] State(id=247) : CLOSING -> CLOSED
11-03 18:42:12.801 10031 8518 11488 W CameraThread: closeCamerasInternal() - End
11-03 18:42:12.896 10031 8518 11488 W CameraThread: handleMessage() - Quit looper
11-03 18:42:12.896 10031 8518 11488 W CameraThread: closeCamerasInternal() - Start
11-03 18:42:12.896 10031 8518 11488 W CameraThread: closeCamerasInternal() - End
11-03 18:42:12.897 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Zoom Controller
11-03 18:42:12.897 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Focus Controller
11-03 18:42:12.897 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Exposure Controller
11-03 18:42:12.897 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Online Watermark Controller
11-03 18:42:12.897 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Location Manager (Camera Thread)
11-03 18:42:12.897 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Camera Audio Manager
11-03 18:42:12.897 10031 8518 11488 V AudioManagerImpl: unloadSound() - Handle : Sound [48926952]
11-03 18:42:12.897 10031 8518 11488 V AudioManagerImpl: unloadSound() - Handle : Sound [24548097]
11-03 18:42:12.897 10031 8518 11488 V AudioManagerImpl: unloadSound() - Handle : Sound [67966374]
11-03 18:42:12.897 10031 8518 11488 V AudioManagerImpl: unloadSound() - Handle : Sound [177142759]
11-03 18:42:12.898 10031 8518 11488 V AudioManagerImpl: unloadSound() - Handle : Sound [189518740]
11-03 18:42:12.898 10031 8518 11488 V AudioManagerImpl: unloadSound() - Handle : Sound [37248573]
11-03 18:42:12.898 10031 8518 11488 V AudioManagerImpl: unloadSound() - Handle : Sound [249882162]
11-03 18:42:12.899 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : File manager
11-03 18:42:12.900 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Camera device manager
11-03 18:42:12.900 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Time-lapse Controller
11-03 18:42:12.900 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Slow-motion Controller
11-03 18:42:12.900 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Panorama controller
11-03 18:42:12.900 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Manual Mode Controller
11-03 18:42:12.900 10031 8518 11488 W ComponentManager: removeComponentInternal() - Component : Portrait controller
11-03 18:42:12.900 10031 8518 11488 W ThreadMonitor: Stop monitor 'Camera Thread' (11488)
11-03 18:42:12.900 10031 8518 11488 W CameraThread: +++++ STOP +++++