-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
[BUG] Get a black screen when resumed app #199
Comments
And i had try the camera package's example, but unable to reproduce. |
It is ok when remove following code in camera_picker_state.dart:
|
Thanks for the feedback. I've found that controller methods will affect capture sessions occasionally in recent versions. I'll look into it next week. |
@zhang873819 Could you verify if the PR fixes the issue? |
@AlexV525 Sorry for delay. But it not works for me.
log print:
|
Could you run |
Hi! There is some new tests: CameraPicker.pickFromCamera(
context,
pickerConfig:
const CameraPickerConfig(preferredFlashMode: FlashMode.auto),
); |
And in version 3.8.0 the config property 'preferredFlashMode' default with FlashMode.auto.
|
@AlexV525 So there is something wrong with the code that set flash mode: if (pickerConfig.preferredFlashMode != FlashMode.auto)
newController
.setFlashMode(pickerConfig.preferredFlashMode)
.catchError((_) {
validFlashModes[currentCamera]
?.remove(pickerConfig.preferredFlashMode);
}), |
Could you try another device model for results? |
@AlexV525 There is the same with device redmi note 10. But it's lower frequency when use this device. |
同样的问题在最新版本依旧出现,文件 camera_picker_state.dart |
确认 #241 是否有修复相关问题 |
Still having problems with the new version with the following phone models: Vivo and Redmi Note 12. |
Please submit new issues with detailed information following the issue template. |
HUAWEI Mate 30E Pro 5G HarmonyOS 2.0.0也会偶尔出现类似问题。 看上去好像是camer_android的一个bug。不太懂到底是为什么 |
我也遇到了同样的问题~ HUAWEI MATE 40 Pro HarmonyOS 4.2.0 |
Describe the bug
I get a black screen when resumed app some times
How to reproduce
Steps to reproduce the behavior:
Expected behavior
the camera is on after unlock screen;
Screenshots (If contains)
Version information
Additional context
I get the log when the black screen coming, there's no log (realDebugPrint("${stopwatch.elapsed} for config's update.");), i have try to fix, but fail.
The text was updated successfully, but these errors were encountered: