Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPPO 14 White screen when selecting camera to take photos #2273

Closed
loveleopard opened this issue Sep 12, 2024 · 3 comments
Closed

OPPO 14 White screen when selecting camera to take photos #2273

loveleopard opened this issue Sep 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@loveleopard
Copy link

OPPO 14 selects the camera to take pictures and the screen turns white. When hardwareAcceleration: false, // Disable hardware acceleration, you can take pictures, but after taking three pictures, you cannot open the camera. This is normal for non-OPPO phones.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.5, on macOS 14.4.1 23E224 darwin-arm64, locale
zh-Hans-CN)
Dart version 2.19.2
DevTools version 2.20.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.92.2)
[✓] Connected device (3 available)
[✓] Network resources
Screenshot_20240912_145604

Previous log
09-11 20:13:19.021 1758 3512 D TaskFragmentExtImpl: remove ActivityRecord{9c0946 u0 com.oplus.camera/.Camera t-1 f}} to mActivityRecordSum = Counter{ com.flutter.op/.MainActivity(1) }
09-11 20:13:19.027 1106 1106 D Layer : reparent to null sequence=4042, seq[16], name=com.oplus.camera/com.oplus.camera.Camera#4042
09-11 20:13:19.028 1106 1106 D Layer : reparent to null sequence=4041, seq[14], name=8dcc6e1 com.oplus.camera/com.oplus.camera.Camera#4041
09-11 20:13:19.028 1106 1106 D Layer : reparent to null sequence=4046, seq[8], name=SurfaceViewcom.oplus.camera/com.oplus.camera.Camera#4046
09-11 20:13:19.028 1106 1106 D Layer : reparent to null sequence=4047, seq[6], name=Background for SurfaceView[com.oplus.camera/com.oplus.camera.Camera]#4047
09-11 20:13:19.028 1106 1106 D Layer : reparent to null sequence=4045, seq[8], name=SurfaceView[com.oplus.camera/com.oplus.camera.Camera]#4045
09-11 20:13:19.042 1758 2095 W CameraService_proxy: Unknown extension type: -1
09-11 20:13:19.045 1106 1106 D Layer : reparent to null sequence=4038, seq[51], name=ActivityRecord{9c0946 u0 com.oplus.camera/.Camera t88}#4038
09-11 20:13:19.045 1106 1106 I BufferQueueDebug: com.oplus.camera/com.oplus.camera.Camera#4042 onDestructor()
09-11 20:13:19.045 1106 1106 I BufferQueueDebug: Bounds for - com.oplus.camera/com.oplus.camera.Camera#4044 onDestructor()
09-11 20:13:19.046 1106 1106 I BufferQueueDebug: [SurfaceViewcom.oplus.camera/com.oplus.camera.Camera#4046](this:0xb40000746eb1a8f8,id:-1,api:0,p:-1,c:1106) onDestructor()
09-11 20:13:19.047 1106 1106 I BufferQueueDebug: Background for SurfaceView[com.oplus.camera/com.oplus.camera.Camera]#4047 onDestructor()
09-11 20:13:19.047 1106 1106 I BufferQueueDebug: SurfaceView[com.oplus.camera/com.oplus.camera.Camera]#4045 onDestructor()
09-11 20:13:19.047 1106 1106 I BufferQueueDebug: 8dcc6e1 com.oplus.camera/com.oplus.camera.Camera#4041 onDestructor()
09-11 20:13:19.143 1758 2095 W CameraService_proxy: Unknown extension type: -1
09-11 20:13:19.953 1758 2095 W CameraService_proxy: Unknown extension type: -1
09-11 20:13:20.054 1758 2095 W CameraService_proxy: Unknown extension type: -1
09-11 20:13:20.357 1758 2095 W CameraService_proxy: Unknown extension type: -1
09-11 20:13:20.463 1758 2095 W CameraService_proxy: Unknown extension type: -1
09-11 20:13:23.410 4463 5763 W Battery : gearVal:5, cpuVal:0, gpuVal:-1, restrictVal:0, brightnessVal:0, chargeVal:7, modemVal:0, disFlashVal:0, stopCameraVideoVal:0, cameraBrightnessVal:255, disCameraVal:0, disWifiHotSpotVal:0, disTorchVal:0, disFrameInsertVal:0, fpsVal:0, refreshRateVal:0, cpuPowerVal:-2, disVideoSRVal:0, wifiVal:-2, thermalSerious:-2, speedChargeAdd:-2, ipaweight:-2,-2,-2, boostBreak1:-2, boostBreak2:-2, heatoffPolicy:-2
09-11 20:13:23.424 1758 2180 D TorchManagerService: handleSettingsCameraTorch
09-11 20:13:23.987 25794 25794 E OCAM_BroadcastHandler: handleReceivedBroadcast, intent action: oplus.intent.action.GUARDELF_THERMAL_TO_EAP, packageName: null, isNewCameraLaunch: false
09-11 20:17:05.685 1002 1002 I CameraMidasService: getExplorerInfo The size of ExplorerInfo is 240 ,The size of ExplorerInfo is 0, The memory size of ExplorerInfo is 0
09-11 20:18:19.118 1002 1002 I CameraMidasService: getExplorerInfo The size of ExplorerInfo is 240 ,The size of ExplorerInfo is 0, The memory size of ExplorerInfo is 0
09-11 20:18:19.333 1002 1002 I CameraMidasService: getExplorerInfo The size of ExplorerInfo is 240 ,The size of ExplorerInfo is 0, The memory size of ExplorerInfo is 0
09-11 20:18:19.366 4463 5763 W Battery : gearVal:5, cpuVal:2, gpuVal:3, restrictVal:2, brightnessVal:0, chargeVal:0, modemVal:0, disFlashVal:0, stopCameraVideoVal:0, cameraBrightnessVal:230, disCameraVal:0, disWifiHotSpotVal:0, disTorchVal:0, disFrameInsertVal:0, fpsVal:0, refreshRateVal:0, cpuPowerVal:-2, disVideoSRVal:0, wifiVal:-2, thermalSerious:-2, speedChargeAdd:-2, ipaweight:-2,-2,-2, boostBreak1:-2, boostBreak2:-2, heatoffPolicy:-2
09-11 20:18:19.405 25794 25794 E OCAM_BroadcastHandler: handleReceivedBroadcast, intent action: android.intent.action.SCREEN_OFF, packageName: null, isNewCameraLaunch: false
09-11 20:18:19.428 25794 25794 E OCAM_BroadcastHandler: handleReceivedBroadcast, intent action: oplus.intent.action.GUARDELF_THERMAL_TO_EAP, packageName: null, isNewCameraLaunch: false
09-11 20:18:19.470 4887 5191 D MediaProvider: Open with FUSE. FilePath: /storage/emulated/0/DCIM/Camera/IMG20240911200613.jpg. Uid: 10114. Media Capabilities Uid: 0. ShouldRedact: false. ShouldTranscode: false
09-11 20:18:19.489 25794 25794 E OCAM_ThumbnailUI: CameraTest updateThumbnail
09-11 20:18:19.618 1106 1106 I BufferQueueDebug: ActivityRecord{2599382 u0 com.oplus.camera/.Camera t88}#4001 onDestructor()
09-11 20:18:19.618 1106 1106 I BufferQueueDebug: 3a19a93 ActivityRecordInputSink com.oplus.camera/.Camera#4012 onDestructor()
09-11 20:18:19.619 1106 1106 I BufferQueueDebug: ActivityRecord{9c0946 u0 com.oplus.camera/.Camera t88}#4038 onDestructor()
09-11 20:18:19.619 1106 1106 I BufferQueueDebug: f677707 ActivityRecordInputSink com.oplus.camera/.Camera#4049 onDestructor()
09-11 20:18:20.330 1002 1002 I CameraMidasService: getExplorerInfo The size of ExplorerInfo is 240 ,The size of ExplorerInfo is 0, The memory size of ExplorerInfo is 0
09-11 20:19:15.731 4463 5763 W Battery : gearVal:5, cpuVal:0, gpuVal:-1, restrictVal:0, brightnessVal:0, chargeVal:7, modemVal:0, disFlashVal:0, stopCameraVideoVal:0, cameraBrightnessVal:255, disCameraVal:0, disWifiHotSpotVal:0, disTorchVal:0, disFrameInsertVal:0, fpsVal:0, refreshRateVal:0, cpuPowerVal:-2, disVideoSRVal:0, wifiVal:-2, thermalSerious:-2, speedChargeAdd:-2, ipaweight:-2,-2,-2, boostBreak1:-2, boostBreak2:-2, heatoffPolicy:-2
09-11 20:19:15.885 1758 2888 I OplusAppSwitchManagerService: appswitch registerAppSwitchObserver pName = com@@HeyTap@@Accessory observer = com.oplus.app.IOplusAppSwitchObserver$Stub$Proxy@1dd3a79 config = OplusAppSwitchConfig = { mConfigs = {1=[TOM@@nm@@wirelesssettings@@BlueTooth@@DevicePickerActivity, TOM@@android@@internal@@app@@ChooserActivity, TOM@@nm@@Melody@@TOMponent@@discovery@@DiscoveryDialogActivity, TOM@@HeyTap@@smarthome@@webview@@PolicyWebviewActivityHalfScreen, TOM@@HeyTap@@smarthome@@ipc@@halfcreen@@HalfScreenDeviceFindActivity], 2=[TOM@@ColorOS@@oshare]} observerFingerPrint = 210966321}
09-11 20:19:15.950 25794 25794 E OCAM_BroadcastHandler: handleReceivedBroadcast, intent action: android.intent.action.SCREEN_ON, packageName: null, isNewCameraLaunch: false
09-11 20:19:15.966 25794 25794 E OCAM_BroadcastHandler: handleReceivedBroadcast, intent action: oplus.intent.action.GUARDELF_THERMAL_TO_EAP, packageName: null, isNewCameraLaunch: false
09-11 20:19:16.036 1002 1002 I CameraMidasService: getExplorerInfo The size of ExplorerInfo is 240 ,The size of ExplorerInfo is 0, The memory size of ExplorerInfo is 0
09-11 20:19:17.086 1106 1106 D OplusLayer: setGameMode 5d0880b com.oplus.camera/com.oplus.camera.Camera#2441, gameMode 0, parentLayer ActivityRecord{7f9a99d u0 com.oplus.camera/.Camera t81}#2432.
09-11 20:19:17.570 25794 25794 E OCAM_BroadcastHandler: handleReceivedBroadcast, intent action: android.intent.action.USER_PRESENT, packageName: null, isNewCameraLaunch: false

OPPO OS upgrade log
flutter_webview.txt

@loveleopard loveleopard added the bug Something isn't working label Sep 12, 2024
Copy link

👋 @loveleopard

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

@loveleopard
Copy link
Author

This can be solved by upgrading to version 6.0.0

Copy link

github-actions bot commented Oct 4, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant