Closed DasTobbel closed 7 months ago
Hi @DasTobbel - thanks for the report.
To try to narrow this down a bit more, could you try running your app from the command line flutter run -d chrome
and let me know if you see the same thing? Thanks!
Hi @elliette sure thing, here you go:
user@system /this/is/my/paath/frontend (master *) $ flutter run -d chrome
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome... 56.2s
Same results for flutter run --debug --no-devtools --no-dds --verbose-system-logs
Any more details i can provide? :)
Hmm it's suspicious that the error stack trace you provided doesn't match what I would expect based on the version of client.js
that was released with DWDS version 21.0.0 (which is the version on Flutter 3.16.5): https://github.com/dart-lang/webdev/blob/85d4e76038fd270b1cb6de6721e07b1d87bfdf2e/dwds/lib/src/injected/client.js
Could you try two things for me?
client.js
. From there, could you let me know what the first few lines of the file say? Something like:// Generated by dart2js (NullSafetyMode.sound, csp, deferred-serialization, intern-composite-values), the Dart to JavaScript compiler version: 3.0.0-375.0.dev.
client.js
has been cached. I tried those two things:
For the clearing of app caches etc, already did this, but nothing changed sadly.
Hi @DasTobbel - a new version of Flutter stable was just released. Could you try running flutter upgrade
to see if that solves the issue for you? Thanks!
Yepp, its solved, whatever it was...
flutter upgrade
flutter clean
flutter pub get
flutter pub upgrade
flutter run chrome
DId it and its back to working.
Hello there,
upgraded android studio, upgraded Flutter and all my pub packages + pub upgrade - since then the project can't be run/started as web-app anymore. Any other run (linux/android) works fine. Tried to "flutter clean" but issue stays.
Chrome opens, no warn/error in the run console in android-studio or on the shell.
```console Launching lib/main.dart on Chrome in debug mode... Waiting for connection from debug service on Chrome... ```Loading Bar visible in Chrome and the debug-console has an error. Nothing else happens.
This is the output which said i should report it here.
Console Output of Chrome (Version: Version 120.0.6099.199 (Official Build) (64-bit))
```js Unhandled error detected in the injected client.js script. You can disable this script in webdev by passing --no-injected-client if it is preventing your app from loading, but note that this will also prevent all debugging and hot reload/restart functionality from working. The original error is below, please file an issue at Assertion failed: "boolean expression must not be null" Assertion failed: "boolean expression must not be null" at Object.wrapException (http://localhost:35921/dwds/src/injected/client.js:1420:43) at Object.assertThrow (http://localhost:35921/dwds/src/injected/client.js:1871:15) at Object.boolConversionCheck (http://localhost:35921/dwds/src/injected/client.js:1867:11) at http://localhost:35921/dwds/src/injected/client.js:25481:21 at _wrapJsFunctionForAsync_closure.$protected (http://localhost:35921/dwds/src/injected/client.js:4009:15) at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:35921/dwds/src/injected/client.js:12242:12) at _awaitOnObject_closure.call$1 (http://localhost:35921/dwds/src/injected/client.js:12230:32) at StaticClosure._rootRunUnary (http://localhost:35921/dwds/src/injected/client.js:4391:18) at _CustomZone.runUnary$2$2 (http://localhost:35921/dwds/src/injected/client.js:13637:39) at _Future__propagateToListeners_handleValueCallback.call$0 (http://localhost:35921/dwds/src/injected/client.js:12668:51) at Object._Future__propagateToListeners (http://localhost:35921/dwds/src/injected/client.js:4174:93) at _Future._completeWithValue$1 (http://localhost:35921/dwds/src/injected/client.js:12504:9) at _AsyncAwaitCompleter.complete$1 (http://localhost:35921/dwds/src/injected/client.js:12216:14) at Object._asyncReturn (http://localhost:35921/dwds/src/injected/client.js:3981:17) at http://localhost:35921/dwds/src/injected/client.js:9758:24 at _wrapJsFunctionForAsync_closure.$protected (http://localhost:35921/dwds/src/injected/client.js:4009:15) at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:35921/dwds/src/injected/client.js:12242:12) at _awaitOnObject_closure.call$1 (http://localhost:35921/dwds/src/injected/client.js:12230:32) at StaticClosure._rootRunUnary (http://localhost:35921/dwds/src/injected/client.js:4391:18) at _CustomZone.runUnary$2$2 (http://localhost:35921/dwds/src/injected/client.js:13637:39) at _Future__propagateToListeners_handleValueCallback.call$0 (http://localhost:35921/dwds/src/injected/client.js:12668:51) at Object._Future__propagateToListeners (http://localhost:35921/dwds/src/injected/client.js:4174:93) at _Future._completeWithValue$1 (http://localhost:35921/dwds/src/injected/client.js:12504:9) at _AsyncAwaitCompleter.complete$1 (http://localhost:35921/dwds/src/injected/client.js:12216:14) at Object._asyncReturn (http://localhost:35921/dwds/src/injected/client.js:3981:17) at http://localhost:35921/dwds/src/injected/client.js:26112:24 at _wrapJsFunctionForAsync_closure.$protected (http://localhost:35921/dwds/src/injected/client.js:4009:15) at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:35921/dwds/src/injected/client.js:12242:12) at _awaitOnObject_closure.call$1 (http://localhost:35921/dwds/src/injected/client.js:12230:32) at StaticClosure._rootRunUnary (http://localhost:35921/dwds/src/injected/client.js:4391:18) at _CustomZone.runUnary$2$2 (http://localhost:35921/dwds/src/injected/client.js:13637:39) at _Future__propagateToListeners_handleValueCallback.call$0 (http://localhost:35921/dwds/src/injected/client.js:12668:51) at Object._Future__propagateToListeners (http://localhost:35921/dwds/src/injected/client.js:4174:93) at _Future._completeWithValue$1 (http://localhost:35921/dwds/src/injected/client.js:12504:9) at _AsyncAwaitCompleter.complete$1 (http://localhost:35921/dwds/src/injected/client.js:12216:14) at Object._asyncReturn (http://localhost:35921/dwds/src/injected/client.js:3981:17) at http://localhost:35921/dwds/src/injected/client.js:26089:24 at _wrapJsFunctionForAsync_closure.$protected (http://localhost:35921/dwds/src/injected/client.js:4009:15) at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:35921/dwds/src/injected/client.js:12242:12) at _awaitOnObject_closure.call$1 (http://localhost:35921/dwds/src/injected/client.js:12230:32) at StaticClosure._rootRunUnary (http://localhost:35921/dwds/src/injected/client.js:4391:18) at _CustomZone.runUnary$2$2 (http://localhost:35921/dwds/src/injected/client.js:13637:39) at _Future__propagateToListeners_handleValueCallback.call$0 (http://localhost:35921/dwds/src/injected/client.js:12668:51) at Object._Future__propagateToListeners (http://localhost:35921/dwds/src/injected/client.js:4174:93) at _Future._completeWithValue$1 (http://localhost:35921/dwds/src/injected/client.js:12504:9) at _Future__asyncCompleteWithValue_closure.call$0 (http://localhost:35921/dwds/src/injected/client.js:12608:18) at StaticClosure._rootRun (http://localhost:35921/dwds/src/injected/client.js:4376:16) at _CustomZone.run$1$1 (http://localhost:35921/dwds/src/injected/client.js:13629:39) at _CustomZone.runGuarded$1 (http://localhost:35921/dwds/src/injected/client.js:13572:14) at _CustomZone_bindCallbackGuarded_closure.call$0 (http://localhost:35921/dwds/src/injected/client.js:13767:25) at Object._microtaskLoop (http://localhost:35921/dwds/src/injected/client.js:4235:24) at StaticClosure._startMicrotaskLoop (http://localhost:35921/dwds/src/injected/client.js:4241:11) at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (http://localhost:35921/dwds/src/injected/client.js:12119:9) ```Flutter Doctor:
```console [✓] Flutter (Channel stable, 3.16.5, on Ubuntu 22.04.3 LTS 6.2.0-39-generic, locale en_US.UTF-8) • Flutter version 3.16.5 on channel stable at /home/tweber/bin/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 78666c8dc5 (3 weeks ago), 2023-12-19 16:14:14 -0800 • Engine revision 3f3e560236 • Dart version 3.2.3 • DevTools version 2.28.4 [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) • Android SDK at /home/tweber/Android/Sdk • Platform android-33, build-tools 33.0.1 • Java binary at: /home/tweber/bin/android-studio/jbr/bin/java • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) • All Android licenses accepted. [✓] Chrome - develop for the web • Chrome at google-chrome [✓] Linux toolchain - develop for Linux desktop • Ubuntu clang version 14.0.0-1ubuntu1.1 • cmake version 3.22.1 • ninja version 1.10.1 • pkg-config version 0.29.2 [✓] Android Studio (version 2023.1) • Android Studio at /home/tweber/bin/android-studio • Flutter plugin version 77.1.2 • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • android-studio-dir = /home/tweber/bin/android-studio • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) [✓] Connected device (2 available) • Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.3 LTS 6.2.0-39-generic • Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.199 [✓] Network resources • All expected network resources are available. • No issues found! ```Anything more i can provide ? Or does somebody know what i should try? Thanks!
// edit: added Chrome Version