Comments (12)
补充一下日志
2022-01-25 16:50:19.176417+0800 Runner[5619:615099] flutter: VERBOSE [V] didPush route: /home/scankit
libc++abi: terminating with uncaught exception of type zxing::Exception
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib
terminating with uncaught exception of type zxing::Exception
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib
terminating with uncaught exception of type zxing::Exception
from flutter-scankit.
使用的是自定义扫码还是简单扫码?闪退的设备是什么型号?
from flutter-scankit.
自定义界面扫码,iphoneX XR都会奔溃 6s和iphone8没有问题
from flutter-scankit.
@git-boya 这可能是华为扫码库的BUG,可能与具体手机的屏幕大小有关,据其他人反馈,在其中几款机型上,设置不同的自定义扫描区域大小,其中有些值会导致crash,建议你可以使用不同的扫描区域大小来测试该问题
from flutter-scankit.
@git-boya 这可能是华为扫码库的BUG,可能与具体手机的屏幕大小有关,据其他人反馈,在其中几款机型上,设置不同的自定义扫描区域大小,其中有些值会导致crash,建议你可以使用不同的扫描区域大小来测试该问题
我用插件的example示例项目运行,在iphoneX上也有同样的问题
from flutter-scankit.
同样问题+1,请问有解决方法吗?
from flutter-scankit.
我使用iphone X 也出现问题, 使用自定义扫码,一打开就闪退。 默认扫码没问题
libc++abi: terminating with uncaught exception of type zxing::Exception
- thread #3, queue = 'HmsImageProcesser', stop reason = signal SIGABRT
frame #0: 0x00000001babe7bbc libsystem_kernel.dylib__pthread_kill + 8 libsystem_kernel.dylib
__pthread_kill:
-> 0x1babe7bbc <+8>: b.lo 0x1babe7bd8 ; <+36>
0x1babe7bc0 <+12>: stp x29, x30, [sp, #-0x10]!
0x1babe7bc4 <+16>: mov x29, sp
0x1babe7bc8 <+20>: bl 0x1babe360c ; cerror_nocancel
from flutter-scankit.
+1,用的demo里的自定义布局,iPhonex闪退,iPhone6 plus和iPhone12 正常
from flutter-scankit.
@git-boya 这可能是华为扫码库的BUG,可能与具体手机的屏幕大小有关,据其他人反馈,在其中几款机型上,设置不同的自定义扫描区域大小,其中有些值会导致crash,建议你可以使用不同的扫描区域大小来测试该问题
请问扫码区域是指boundingBox: rect,这个吗
from flutter-scankit.
我同事的xr 和 xs 正常,这是什么情况
from flutter-scankit.
这个问题尝试使用下面方式解决了,大家可以参考:比如,Demo中这段代码,
var pixelSize = boxSize * window.devicePixelRatio;
var left = screenWidth/2 - pixelSize/2;
var top = screenHeight/2 - pixelSize/2;
var right = screenWidth/2 + pixelSize/2;
var bottom = screenHeight/2 + pixelSize/2;
var rect = Rect.fromLTRB(left, top, right, bottom);
Demo中传递给Scankit的Rect使用的物理大小,单位是px;
这个在android设备是有效的。
在ios尝试使用逻辑大小,也就在demo中代码left=(screenWidth/2 - pixelSize/2)/ window.devicePixelRatio。测试有效--ios15.5 se
具体原因不清楚,没有时间去看,另外技术栈是Android,有ios同学可以看看原因。
希望可以帮到大家
from flutter-scankit.
我去掉了创建ScanKitWidget时的boundinBox参数后没问题了
修改前:
ScanKitWidget( controller: _controller, continuouslyScan: false, boundingBox: rect)
修改后:
ScanKitWidget( controller: _controller, continuouslyScan: false,),
from flutter-scankit.
Related Issues (20)
- 选择相册图片未包含二维码时,不能返回相关空内容,无法判断扫码失败的逻辑 HOT 2
- After upgrading to V2. HOT 9
- iOS能否也支持暂停、重启扫描功能方法 HOT 1
- flutter_scankit 2.0.0 无法通过controller.pickPhoto识别图片的二维码 HOT 2
- queue = 'ProviderImageSurfaceCacheQueue', stop reason = EXC_BAD_ACCESS HOT 4
- terminating due to uncaught exception of type zxing::Exception HOT 1
- 安卓的配置minSdkVersion能否支持到minSdkVersion = 21 HOT 1
- 使用 ScanKitWidget 会导致ios闪退 HOT 4
- iOS Automatically manage signing HOT 3
- When selecting a QR code from the gallery for recognition, if the background is colored, it will not be recognized. If the background is white, it will be ok. HOT 1
- 实现小框的扫码被压缩了 HOT 1
- 扫描出来的结果打印不是明文而是*******不知是何缘故,请来教大佬?
- 安卓设备情况,选择相册照片时照片中无二维码,识别不出二维码时没有返回null数据,导致无法做相应扫码失败处理 HOT 1
- 不支持连续扫描 HOT 1
- flutterBoost 自定义模式下,无法使用 HOT 1
- 在ipad上无法启动扫码。。 HOT 1
- 现在想要实现iOS Automatically manage signing 有解决方案吗?
- iPad上使用默认扫码页面会闪退,原因是没有闪光灯 HOT 1
- flutter项目,没法跑iOS 模拟器 HOT 1
- 最新构建需要指定命名空间,否则无法继续,请您添加
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-scankit.