-
Notifications
You must be signed in to change notification settings - Fork 64
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
LateInitializationError on Windows. After updating to Flutter 3.10 and Dart 3.0.0 #91
Comments
I tried using a later version of quick_usb 0.3.1. And no problems, everything works. |
I can confirm that I see the same symptoms for 0.4.0 , but on macOS (Dart 3.0.1). |
same issue [√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.22621.1848], locale en-CA) |
same issue: Android Studio 2021.3 Trying with lib version 0.4.0 error log is: Building macOS application... Trying with lib version 0.3.1 error log is: Syncing files to device macOS... |
Any solution for this problem? [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: 'package:quick_usb/src/quick_usb_desktop.dart': Failed assertion: line 118 pos 12: '_devHandle != null': Device not open |
Even getting a device list causes my entire app to hang, not sure why. This is 0.3.1 (hangs even with proper future handling) Any alternatives guys ? |
Alright i fixed both the error and my laggy issue 1 -> Check your platform and run QuickUsbWindows.registerWith() before init() if you platform is windows. You have functions for each platform. This should solve the initialization error |
@TheAnimatrix In which version did you apply these fixes (0.4.0 or 0.3.1)? On macOS 15.0, I am still receiving the following error (on 0.4.0): Method:
Error: |
I'm using flutter stable channel, recently updated to Flutter 3.10 and Dart 3.0.0. Now the QuickUsb library does not work. After calling var init = await QuickUsb.init(); a LateError occurs (LateInitializationError: field '_instance@326265524' was not initialized).
This happens on the Windows 11 platform, everything is fine on Android. Not tested on other platforms. I tried to clear the cache in .dart_tool, it did not help.
The text was updated successfully, but these errors were encountered: