Closed vixez closed 1 year ago
I think this is related to runZonedGuarded
run() async {
await runZonedGuarded(() async {
runApp(MyApp());
}
Same issue
It happens not only in this package, but also in many packages.
packages/flutter/src/widgets/binding.dart 1306:7 ensureInitialized
packages/flutter_image_compress_web/flutter_image_compress_web.dart 14:27 registerWith
web_plugin_registrant.dart 52:27 registerPlugins
web_entrypoint.dart 27:24
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
This app is linked to the debug service: ws://127.0.0.1:59096/CxeSdcUetIM=/ws
Debug service listening on ws://127.0.0.1:59096/CxeSdcUetIM=/ws
Debug service listening on ws://127.0.0.1:59096/CxeSdcUetIM=/ws
Error: Unexpected null value.
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:49 throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 606:63 nullCheck
packages/flutter/src/rendering/binding.dart 303:61 createViewConfiguration
packages/flutter/src/rendering/binding.dart 215:44 initRenderView
packages/flutter/src/rendering/binding.dart 41:5 initInstances
packages/flutter/src/widgets/binding.dart 263:11 initInstances
packages/flutter/src/foundation/binding.dart 151:5 new
packages/flutter/src/widgets/binding.dart 1189:37 new
packages/flutter/src/widgets/binding.dart 1189:37 new
packages/flutter/src/widgets/binding.dart 1189:37 new
packages/flutter/src/widgets/binding.dart 1189:37 new
packages/flutter/src/widgets/binding.dart 1189:37 new
packages/flutter/src/widgets/binding.dart 1189:37 new
packages/flutter/src/widgets/binding.dart 1189:37 new
packages/flutter/src/widgets/binding.dart 1309:3 new
packages/flutter/src/widgets/binding.dart 1306:7 ensureInitialized
packages/flutter_image_compress_web/flutter_image_compress_web.dart 14:27 registerWith
web_plugin_registrant.dart 36:27 registerPlugins
web_entrypoint.dart 27:24 <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 367:37 _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 372:39 dcall
lib/ui/initialization.dart 73:24 <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5 _async
lib/ui/initialization.dart 71:16 <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 367:37 _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 431:10 callMethod
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 435:5 dsend
lib/_engine/engine/app_bootstrap.dart 62:22 <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5 _async
lib/_engine/engine/app_bootstrap.dart 60:25 <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 367:37 _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 372:39 dcall
dart-sdk/lib/_internal/js_shared/lib/js_util_patch.dart 249:16 callConstructor
lib/_engine/engine/app_bootstrap.dart 58:14 <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 367:37 _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 372:39 dcall
. 53:26 <fn>
The error just happen in Flutter 3.10.0 ?
I committed https://github.com/fluttercandies/flutter_image_compress/commit/c943c19d0c7816b1dadeea7532245421cd393746. Wait for release new version.
Released new version 2.0.3
Thanks for the quick response!
Version
2.0.2
Platforms
Web
Device Model
Chrome
flutter info
How to reproduce?
Running the app on iOS and Android works. Web throws
Unexpected null value
, presumably atpackages/flutter_image_compress_web/flutter_image_compress_web.dart 14:27
I currently reverted back to
1.1.3
.Logs
Example code (optional)
Contact
No response