Failed assertion previewDetails is null
See original GitHub issueOn a phone in 4.2.2 I have this error
V/Provider/Settings( 8162): invalidate [system]: current 13 != cached 12
V/Provider/Settings( 8162): from db cache, name = sound_effects_enabled , value = 0
I/SurfaceTextureClient( 8162): [STC::queueBuffer] (this:0x554be010) fps:4.90, dur:6734.60, max:5847.55, min:10.42
I/SurfaceTextureClient( 8162): [STC::queueBuffer] this:0x554be010, api:1, last queue time elapsed:5847.55
I/BufferQueue( 8162): [unnamed-8162-2](this:0x55902d40,api:0) BufferQueue
I/BufferQueue( 8162): [unnamed-8162-2](this:0x55902d40,api:0) consumerConnect
I/BufferQueue( 8162): [unnamed-8162-2](this:0x55902d40,api:0) setConsumerName: unnamed-8162-2
I/SurfaceTexture( 8162): [unnamed-8162-2](this:0x5616a708,api:0) SurfaceTexture
I/SurfaceTexture( 8162): [unnamed-8162-2](this:0x5616a708,api:0) detachFromContext
I/System.out( 8162): Making detector for formats: 0
W/DynamiteModule( 8162): Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
D/ActivityThread( 8162): installProvider: context=android.app.ContextImpl@40f67c30holder=android.app.IActivityManager$ContentProviderHolder@40fcb4c8noisy=truenoReleaseNeeded=falsestable=false
I/DynamiteModule( 8162): Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
D/BarcodeNativeHandle( 8162): Cannot load feature, fall back to load whole module.
W/DynamiteModule( 8162): Local module descriptor class for com.google.android.gms.vision.dynamite not found.
I/DynamiteModule( 8162): Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1702
I/DynamiteModule( 8162): Selected remote version of com.google.android.gms.vision.dynamite, version >= 1702
D/ActivityThread( 8162): getPackageInfo: securityViolation=true
I/Vision ( 8162): Loading library libbarhopper.so
I/Vision ( 8162): libbarhopper.so library load status: true
E/Camera ( 8162): fengke getCameraInfo1
E/Camera ( 8162): fengke getCameraInfo2 cameraInfo.mCamSensorID = 113
D/Camera-JNI( 8162): (tid:8162)[MtkJNICameraContext] this:0x56ef3fa8 camera->getStrongCount(3)
E/Camera ( 8162): fengke getCameraInfo1
E/Camera ( 8162): fengke getCameraInfo2 cameraInfo.mCamSensorID = 113
I/Camera ( 8162): Camera framework getParameters =afeng-max-focus-step=0;afeng-min-focus-step=0;antibanding=off;antibanding-values=off,50hz,60hz;auto-exposure-lock-supported=false;auto-whitebalance-lock-supported=false;brightness_value=0;burst-num=1;cap-mode=normal;cap-mode-values=normal,continuousshot,smileshot,autorama;capfname=/sdcard/DCIM/cap00;effect=none;effect-values=none,mono,negative,sepia,sepiablue;exposure-compensation=0;exposure-compensation-step=1.0;fb-sharp=0;fb-sharp-max=4;fb-sharp-min=-4;fb-skin-color=0;fb-skin-color-max=4;fb-skin-color-min=-4;fb-smooth-level=0;fb-smooth-level-max=4;fb-smooth-level-min=-4;focal-length=3.5;focus-distances=0.95,1.9,Infinity;focus-mode=infinity;focus-mode-values=infinity;horizontal-view-angle=63;iso-speed=auto;iso-speed-values=auto;jpeg-quality=100;jpeg-thumbnail-height=128;jpeg-thumbnail-quality=100;jpeg-thumbnail-size-values=0x0,160x128,320x240;jpeg-thumbnail-width=160;max-exposure-compensation=1;max-num-detected-faces-hw=15;max-num-detected-faces-sw=0;max-num-focus-areas=0;max-num-metering-areas=0;max-zoom=10;min-exposure-compensation=-1;mtk-cam-mode=0;picture-format=jpeg;picture-format-values=jpeg;picture-size=640x480;picture-size-values=176x144,320x240,640x480,600x400,1200x800,1024x768,1680x1120,1600x1200;preferred-preview-size-for-video=480x320;preview-format=yuv420sp;preview-format-values=yuv420sp,yuv420p,yuv420i-yyuvyy-3plane;preview-fps-range=5000,60000;preview-fps-range-values=(5000,60000);preview-frame-rate=30;preview-frame-rate-values=15,30;preview-size=320x240;preview-size-values=176x144,320x240,352x288,384x288,480x320;rotation=0;scene-mode=auto;scene-mode-values=auto,night,hdr;smooth-zoom-supported=true;vertical-view-angle=49;video-frame-format=yuv420i-yyuvyy-3plane;video-size=320x240;video-size-values=176x144,320x240,480x320,640x480,600x400;video-stabilization=false;video-stabilization-supported=false;whitebalance=auto;whitebalance-values=auto,incandescent,daylight,cloudy-daylight,fluorescent,tungsten;zoom=0;zoom-ratios=100,114,132,151,174,200,229,263,303,348,400;zoom-supported=true;zsd-mode=off;zsd-mode-values=off,on
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): Failed to handle method call
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): java.lang.IllegalArgumentException: Unsupported value: [Ljava.lang.StackTraceElement;@41063990
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:293)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:70)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:199)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at com.github.rmtmckenzie.qrmobilevision.QrMobileVisionPlugin.startingFailed(QrMobileVisionPlugin.java:145)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at com.github.rmtmckenzie.qrmobilevision.QRReader.continueStarting(QRReader.java:113)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at com.github.rmtmckenzie.qrmobilevision.QRReader.start(QRReader.java:92)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at com.github.rmtmckenzie.qrmobilevision.QrMobileVisionPlugin.onMethodCall(QrMobileVisionPlugin.java:92)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:152)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at android.os.MessageQueue.next(MessageQueue.java:128)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at android.os.Looper.loop(Looper.java:151)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at android.app.ActivityThread.main(ActivityThread.java:5400)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at java.lang.reflect.Method.invokeNative(Native Method)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at java.lang.reflect.Method.invoke(Method.java:525)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:837)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
E/MethodChannel#com.github.rmtmckenzie/qr_mobile_vision( 8162): at dalvik.system.NativeStart.main(Native Method)
I/flutter ( 8162): CashRegisterModeChangedAction = CashRegisterMode.scan
I/flutter ( 8162): 1
I/flutter ( 8162): Another exception was thrown: 'package:qr_mobile_vision/qr_camera.dart': Failed assertion: line 115 pos 16: 'previewDetails != null': is not true.
Any idea why ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Failed assertion: line 854 pos 14: 'file != null': is not true
I'm trying to display an image using FileImage() but it's throwing the "'file != null': is not true" error. The image is coming...
Read more >iOS 9 · Issue #17 · rmtmckenzie/flutter_qr_mobile_vision
The error come in the build method of the widget. Here is the content of the details variable: AsyncSnapshot(ConnectionState.done, null, ...
Read more >User preview and details are empty in Workflow Tasks
Errors thrown during navigation to User task: 23:15:31,602 ERROR [http-nio-8080-exec-6][AssetDisplayTag:195] null java.lang.
Read more >Release Notes
You can now view Histogram and Data Preview details for the Profile activity. ... Fixed an issue that caused queries with joins to...
Read more >Learning Plan | ServiceNow Application Developer
NOTE: If the connection fails, you may have entered the ServiceNow ... The nil() method checks if a field value is either NULL...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The newest version should fix this by trying first with autofocus, then if that fails tries without autofocus. Try v0.0.5 once it’s done processing.
Cool thanks ! I have test on the device yesterday and it doesn’t crash anymore so that was an auto focus problem 😃