-
Notifications
You must be signed in to change notification settings - Fork 61
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
ios部分设备扫码会闪退 #27
Comments
补充一下日志 |
使用的是自定义扫码还是简单扫码?闪退的设备是什么型号? |
自定义界面扫码,iphoneX XR都会奔溃 6s和iphone8没有问题 |
@git-boya 这可能是华为扫码库的BUG,可能与具体手机的屏幕大小有关,据其他人反馈,在其中几款机型上,设置不同的自定义扫描区域大小,其中有些值会导致crash,建议你可以使用不同的扫描区域大小来测试该问题 |
我用插件的example示例项目运行,在iphoneX上也有同样的问题 |
同样问题+1,请问有解决方法吗? |
我使用iphone X 也出现问题, 使用自定义扫码,一打开就闪退。 默认扫码没问题
|
+1,用的demo里的自定义布局,iPhonex闪退,iPhone6 plus和iPhone12 正常 |
请问扫码区域是指boundingBox: rect,这个吗 |
我同事的xr 和 xs 正常,这是什么情况 |
这个问题尝试使用下面方式解决了,大家可以参考:比如,Demo中这段代码, Demo中传递给Scankit的Rect使用的物理大小,单位是px; 具体原因不清楚,没有时间去看,另外技术栈是Android,有ios同学可以看看原因。 希望可以帮到大家 |
我去掉了创建ScanKitWidget时的boundinBox参数后没问题了 |
flutter版本:2.5
ios版本:15.1
错误日志:
libc++abi: terminating with uncaught exception of type zxing::Exception
frame #0: 0x00000001bca769e8 libsystem_kernel.dylib
__pthread_kill + 8 libsystem_kernel.dylib
__pthread_kill:-> 0x1bca769e8 <+8>: b.lo 0x1bca76a04 ; <+36>
0x1bca769ec <+12>: stp x29, x30, [sp, #-0x10]!
0x1bca769f0 <+16>: mov x29, sp
0x1bca769f4 <+20>: bl 0x1bca72670 ; cerror_nocancel
Target 0: (Runner) stopped.
The text was updated successfully, but these errors were encountered: