quick.flutter icon indicating copy to clipboard operation
quick.flutter copied to clipboard

v0.4.0 MacOS LateInitializationError

Open AlphaBlend1975 opened this issue 3 years ago • 2 comments

After update to 0.4.0 My mac error when running app

[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: LateInitializationError: Field '_libusb@1709324630' has not been initialized. #0 _libusb (package:quick_usb/src/quick_usb_desktop.dart) #1 _QuickUsbDesktop.init (package:quick_usb/src/quick_usb_desktop.dart:44:12) #2 QuickUsb.init (package:quick_usb/quick_usb.dart:13:43) #3 main (package:qipos/main.dart:44:20) #4 _runMainZoned.. (dart:ui/hooks.dart:130:25) #5 _rootRun (dart:async/zone.dart:1426:13) #6 _CustomZone.run (dart:async/zone.dart:1328:19) #7 _runZoned (dart:async/zone.dart:1861:10) #8 runZonedGuarded (dart:async/zone.dart:1849:12) #9 _runMainZoned. (dart:ui/hooks.dart:126:5) #10 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:297:19) #11 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)

[SOLUTION] Rollback to 0.3.1 work fine

AlphaBlend1975 avatar Jun 28 '22 05:06 AlphaBlend1975

@AlphaBlend1975 I am still getting zero length of getDevices(). Did you get any solution for this?

await QuickUsb.init(); var detectedList = await QuickUsb.getDevicesWithDescription();

iharshb avatar Jul 26 '22 15:07 iharshb

Clean cache in .dart_tool may help according to https://github.com/woodemi/quick_blue/issues/102#issuecomment-1119171251

Sunbreak avatar Jul 27 '22 08:07 Sunbreak