-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Continuous logging and unhandled exception #11
Comments
Yo @dxgiangdev3, Can you elaborate on the issue and also share code snippets (Minimal Reproducible Sample) and also a video of the error. |
@OutdatedGuy any updates about the issue? it keeps throwing exceptions and showing that the network is unreachable , wouldn't it be better to handle it and just return false instead of throwing it. |
@84rrry, are you using custom addresses to check network connectivity or the default ones? |
@OutdatedGuy, both using custom and default addresses |
Can you provide stack trace and error logs, cuz I have already implemented exception handling when trying to connect to a address. |
@OutdatedGuy Hello, sorry for the late reply it's hard to identify the exact problem or to get the full stack trace but this should help you identify the problem
|
@dxgiangdev3 @84rrry on what Flutter version are you guys on? |
Looks like the issue is with the latest Dart SDK that comes with Flutter 3.13: dart-lang/sdk#53334 |
@OutdatedGuy i'm using
|
Yep i think you're right , dart-lang/sdk#53331 is related too , i'll attempt to downgrade temporarily if possible hoping that this will be fixed soon |
Flutter 3.13.4 with Dart 3.1.2 fixes the issue. |
@OutdatedGuy Hello , can you please reopen this as the issue still persist |
This was the call stack:
|
@84rrry can you provide output of |
Hey @OutdatedGuy , sorry i got a lil busy and lost track of the notification . here's the [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [!] Android Studio (not installed) [√] VS Code (version 1.84.0) [√] Connected device (1 available) [√] Network resources ! Doctor found issues in 1 category.` |
Weird issue, will check up on it |
@OutdatedGuy It's pretty annoying, I had to implement my own alternative . However i'll happily provide you with further information/help |
Can you provide the crash logs while running the command |
@OutdatedGuy , I wanna inform you that the issue stopped happening after updating flutter to the latest version here's my ! Doctor found issues in 1 category. |
In your package, I tried to console log to check if the status code is equals to 200, and the result is that it's continuous log the print function.
In my use case, I have integrated your package to monitor changes in internet status, triggering UI components such as dialogs and snack bars through the whole app by using navigator context. But the problem is that the code won't stop after timeout. In that case, it would lead to an exception: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 4516 pos 12: '!_debugLocked': is not true.
Am I missing something while using your package?
The text was updated successfully, but these errors were encountered: