[BUG] 华为手机,频繁进入/退出拍照界面可能会黑屏 #282
Labels
await investigate
The issue is waiting for further investigation.
b: third party
This is a third party package issue.
p: Android
This issue only happens on Android platform.
r: camera
Related to the camera package.
s: bug
Something isn't working
Describe the bug
华为手机,频繁进入/退出拍照界面可能会黑屏
How to reproduce
任意一个flutter app,频繁进入退出,即有概率复现
Steps to reproduce the behavior:
1、点击拍照按钮
2、退出拍照界面
3、重复1、2步骤
Expected behavior
正常打开摄像头
Version information
Flutter 3.24.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 80c2e84975 (3 months ago) • 2024-07-30 23:06:49 +0700 Engine • revision b8800d88be Tools • Dart 3.5.0 • DevTools 2.37.2
Additional context
flutter_wechat_camera_picker/lib/src/states/camera_picker_state.dart
Line 485 in 384609c
因为当出现黑屏的时候,第503行的debug日志,不会打印出来。正常情况下,503行的日志可以打印出来。
实测删除485-498行,黑屏就不会出现了。只不过不能设置闪光灯的初始设置了。
camera官方的demo是不会出现黑屏问题的。
The text was updated successfully, but these errors were encountered: