-
-
Notifications
You must be signed in to change notification settings - Fork 154
VIVO手机反复进入拍照界面黑屏 #213
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
Comments
请前往 camera 提交 issue。 |
我跟踪了一下这个项目以及camera的代码。出现问题的是这里:
出错以后,这一行代码都不会被执行到: 如果删除 当然你可以说是camera的问题。但是调用方式是直接原因。 复现手机:HUAWEI Mate 30E Pro 5G |
出错后会重新再尝试一次,再次尝试的时候不会再调用 setFlashMode。 |
实际测试,并没有再次尝试,必须关闭页面重新进入才有可能恢复 |
请尝试把该调用改为: // Do not set flash modes for the front camera.
Future(() async {
final flashMode = pickerConfig.preferredFlashMode;
if (validFlashModes[description]?.contains(flashMode) != false &&
description.lensDirection != CameraLensDirection.front &&
flashMode != FlashMode.auto) {
return wrapControllerMethod<void>(
'setFlashMode',
() => newController.setFlashMode(
flashMode,
),
description: description,
onError: () {
validFlashModes[description]?.remove(flashMode);
},
);
}
}) |
问题依旧,方法一直都会调用,但是java那边抛出一个提醒: java抛出的位置: 然后后面的代码就不执行了,好奇怪,不太懂flutter。 |
真正的错误应该是这样的,但是不知道是哪里跑出来的,而且这个错误不是实时抛出来的,会延迟一段时间:
|
已测试不会再调用,其他问题请给出详细信息后开新 issue。 |
并不是调用失败的问题吧。 这就是黑屏的issue,我说的也是黑屏的问题,还需要再重新开一个? |
这里你的描述是调用失败导致的黑屏,现在不是了?
黑屏的原因不一样的情况下不是同一个问题。 |
Describe the bug
VIVO手机反复进入拍照界面黑屏的问题
How to reproduce
DEMO可以复现改问题
Steps to reproduce the behavior:
反复进入拍照界面.
Version information
Additional context
关键日志:不知是否有帮助?
CameraService: onTorchStatusChangedLocked: cannot get torch status of camera 1: No such file or directory (-2)
log.txt
The text was updated successfully, but these errors were encountered: