Skip to content
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

Compiler Bug Error when running 'flutter run -d chrome' #39271

Closed
lyf571321556 opened this issue Nov 7, 2019 · 11 comments
Closed

Compiler Bug Error when running 'flutter run -d chrome' #39271

lyf571321556 opened this issue Nov 7, 2019 · 11 comments
Assignees
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. customer-flutter P2 A bug or feature request we're likely to work on web-dev-compiler

Comments

@lyf571321556
Copy link

AssetNotFoundException: bot_toast|lib/bot_toast.ddc.js
Error compiling dartdevc module:bot_toast|lib/bot_toast.ddc.js

We're sorry, you've found a bug in our compiler.
You can report this bug at:
https://github.com/dart-lang/sdk/issues/labels/web-dev-compiler
Please include the information below in your report, along with
any other information that may help us track it down. Thanks!
-------------------- %< --------------------
dartdevc -k arguments: --dart-sdk-summary=/Users/admin/Library/flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk.dill --modules=amd
--no-summarize -o packages/bot_toast/bot_toast.ddc.js --source-map --summary=packages/meta/meta.ddc.dill=packages/meta/meta
--summary=packages/typed_data/typed_buffers.ddc.dill=packages/typed_data/typed_buffers
--summary=packages/flutter/src/foundation/_bitfield_web.ddc.dill=packages/flutter/src/foundation/_bitfield_web
--summary=packages/flutter/foundation.ddc.dill=packages/flutter/foundation
--summary=packages/collection/src/utils.ddc.dill=packages/collection/src/utils
--summary=packages/collection/src/algorithms.ddc.dill=packages/collection/src/algorithms
--summary=packages/collection/src/iterable_zip.ddc.dill=packages/collection/src/iterable_zip
--summary=packages/collection/src/comparators.ddc.dill=packages/collection/src/comparators
--summary=packages/collection/src/priority_queue.ddc.dill=packages/collection/src/priority_queue
--summary=packages/collection/src/canonicalized_map.ddc.dill=packages/collection/src/canonicalized_map
--summary=packages/collection/collection.ddc.dill=packages/collection/collection
--summary=packages/vector_math/hash.ddc.dill=packages/vector_math/hash
--summary=packages/vector_math/vector_math_64.ddc.dill=packages/vector_math/vector_math_64
--summary=packages/flutter/src/gestures/arena.ddc.dill=packages/flutter/src/gestures/arena
--summary=packages/flutter/gestures.ddc.dill=packages/flutter/gestures
--summary=packages/flutter/src/physics/clamped_simulation.ddc.dill=packages/flutter/src/physics/clamped_simulation
--summary=packages/flutter/physics.ddc.dill=packages/flutter/physics
--summary=packages/flutter/src/painting/_network_image_web.ddc.dill=packages/flutter/src/painting/_network_image_web
--summary=packages/flutter/painting.ddc.dill=packages/flutter/painting
--summary=packages/flutter/src/semantics/binding.ddc.dill=packages/flutter/src/semantics/binding
--summary=packages/flutter/semantics.ddc.dill=packages/flutter/semantics
--summary=packages/flutter/src/animation/animation.ddc.dill=packages/flutter/src/animation/animation
--summary=packages/flutter/animation.ddc.dill=packages/flutter/animation
--summary=packages/flutter/src/rendering/animated_size.ddc.dill=packages/flutter/src/rendering/animated_size
--summary=packages/flutter/rendering.ddc.dill=packages/flutter/rendering
--summary=packages/flutter/src/widgets/actions.ddc.dill=packages/flutter/src/widgets/actions
--summary=packages/flutter/widgets.ddc.dill=packages/flutter/widgets
--summary=packages/flutter/src/cupertino/action_sheet.ddc.dill=packages/flutter/src/cupertino/action_sheet
--summary=packages/flutter/cupertino.ddc.dill=packages/flutter/cupertino --summary=packages/flutter/material.ddc.dill=packages/flutter/material
--packages=file:///var/folders/pz/1x2346q96n77sb03s_3qvrlc0000gn/T/kernel_builder_68UIGv/.packages --module-name=packages/bot_toast/bot_toast
--multi-root-scheme=org-dartlang-app --multi-root=. --track-widget-creation --inline-source-map
--libraries-file=file:///Users/admin/Library/flutter/bin/cache/flutter_web_sdk/libraries.json
--used-inputs-file=/var/folders/pz/1x2346q96n77sb03s_3qvrlc0000gn/T/ddk_builder_dbm8Ik/used_inputs.txt package:bot_toast/src/toast.dart
package:bot_toast/src/key_board_safe_area.dart package:bot_toast/src/toast_navigator_observer.dart
package:bot_toast/src/toast_widget/notification.dart package:bot_toast/src/toast_widget/attached.dart package:bot_toast/src/basis.dart
package:bot_toast/src/toast_widget/animation.dart package:bot_toast/src/toast_widget/text.dart package:bot_toast/src/toast_widget/loading.dart
package:bot_toast/src/toast_widget/toast_widget.dart package:bot_toast/src/bot_toast_manager.dart package:bot_toast/bot_toast.dart
package:bot_toast/src/bot_toast_init.dart
dart --version: 2.6.0-dev.1.0.flutter-d6c6d12ebf (Fri Oct 4 10:11:30 2019 +0000) on "macos_x64"

FormatException: Bad UTF-8 encoding 0x8c (at offset 0)
#0 _Utf8Decoder.convert (dart:convert/utf.dart:530:13)
#1 Utf8Decoder.convert (dart:convert/utf.dart:327:13)
#2 Utf8Codec.decode (dart:convert/utf.dart:59:56)
#3 ProgramCompiler.visitAssertStatement (package:dev_compiler/src/kernel/compiler.dart:3332:32)
#4 AssertStatement.accept (package:kernel/ast.dart:4523:43)
#5 ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:3132:20)
#6 MappedListIterable.elementAt (dart:_internal/iterable.dart:415:29)
#7 ListIterable.toList (dart:_internal/iterable.dart:219:19)
#8 ProgramCompiler.visitBlock (package:dev_compiler/src/kernel/compiler.dart:3296:62)
#9 Block.accept (package:kernel/ast.dart:4450:43)
#10 ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:3132:20)
#11 ProgramCompiler._emitFunctionScopedBody (package:dev_compiler/src/kernel/compiler.dart:3143:18)
#12 ProgramCompiler._emitSyncFunctionBody. (package:dev_compiler/src/kernel/compiler.dart:2984:17)
#13 ProgramCompiler._withLetScope (package:dev_compiler/src/kernel/compiler.dart:2156:25)
#14 ProgramCompiler._withCurrentFunction (package:dev_compiler/src/kernel/compiler.dart:3018:18)
#15 ProgramCompiler._emitSyncFunctionBody (package:dev_compiler/src/kernel/compiler.dart:2980:17)
#16 ProgramCompiler._emitFunction (package:dev_compiler/src/kernel/compiler.dart:2818:18)
#17 ProgramCompiler._emitMethodDeclaration (package:dev_compiler/src/kernel/compiler.dart:1783:12)
#18 ProgramCompiler._emitClassMethods (package:dev_compiler/src/kernel/compiler.dart:1725:23)
#19 ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:537:21)
#20 ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:478:21)
#21 List.forEach (dart:core-patch/growable_array.dart:283:8)
#22 ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:424:23)
#23 Iterable.forEach (dart:core/iterable.dart:277:30)
#24 ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:317:15)
#25 _compile (package:dev_compiler/src/kernel/command.dart:385:27)
#26 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:71:64)
#27 _rootRunUnary (dart:async/zone.dart:1132:38)
#28 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#29 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#30 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#31 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#32 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#33 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:30:15)
#34 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:288:13)
#35 IncrementalCompiler.computeDelta. (package:front_end/src/fasta/incremental_compiler.dart)
#36 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:71:64)
#37 _rootRunUnary (dart:async/zone.dart:1132:38)
#38 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#39 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#40 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#41 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#42 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#43 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:30:15)
#44 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:288:13)
#45 withCrashReporting (package:front_end/src/fasta/crash.dart)
#46 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:71:64)
#47 _rootRunUnary (dart:async/zone.dart:1132:38)
#48 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#49 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#50 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#51 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#52 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#53 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:30:15)
#54 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:288:13)
#55 KernelTarget.buildComponent. (package:front_end/src/fasta/kernel/kernel_target.dart)
#56 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:71:64)
#57 _rootRunUnary (dart:async/zone.dart:1132:38)
#58 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#59 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#60 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#61 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#62 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#63 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:30:15)
#64 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:288:13)
#65 Loader.buildBodies (package:front_end/src/fasta/loader.dart)
#66 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:71:64)
#67 _rootRunUnary (dart:async/zone.dart:1132:38)
#68 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#69 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#70 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#71 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#72 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#73 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:30:15)
#74 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:288:13)
#75 SourceLoader.buildBody (package:front_end/src/fasta/source/source_loader.dart)
#76 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:71:64)
#77 _rootRunUnary (dart:async/zone.dart:1132:38)
#78 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#79 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#80 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#81 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#82 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#83 Future._asyncComplete. (dart:async/future_impl.dart:552:7)
#84 _rootRun (dart:async/zone.dart:1124:13)
#85 _CustomZone.run (dart:async/zone.dart:1021:19)
#86 _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
#87 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#88 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#89 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#90 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

@keertip keertip added area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. customer-flutter labels Nov 7, 2019
@vsmenon
Copy link
Member

vsmenon commented Nov 7, 2019

Do you happen to know the assert statement that is triggering this bug?

fyi - @nshahan - this looks like a bug encoding the condition as a string.

@vsmenon
Copy link
Member

vsmenon commented Nov 7, 2019

A few folks have hit, so bumping up to P2.

@nshahan nshahan self-assigned this Nov 8, 2019
@nshahan
Copy link
Contributor

nshahan commented Nov 8, 2019

I believe this is a character encoding issue. I should be able to have a fix shortly.

@nshahan
Copy link
Contributor

nshahan commented Nov 8, 2019

Fix submitted: 750a83b.

@nshahan nshahan closed this as completed Nov 8, 2019
dart-bot pushed a commit that referenced this issue Nov 11, 2019
I mistakenly thought the offset would be the location in the List<int> source.
Hopefully these comments will prevent confusion in the future.

See:
* https://dart-review.googlesource.com/c/sdk/+/124602
* #39271
Change-Id: Iba47b477d085c2a133ccd9aca645fe10906368bc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124591
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
This was referenced Nov 13, 2019
@brianschardt
Copy link

When is this fix going to be in master? is it in dev?

@vsmenon
Copy link
Member

vsmenon commented Dec 10, 2019

It's in all Dart 2.7 versions. I'd expect it to be in Flutter dev and master now. You should be able to check by running flutter --version and looking at the underlying Dart.

@neha8igit
Copy link

Error: 'Point' is imported from both 'dart:math' and 'dart:ui'. ---> after adding web support to existing project. Any solutions so far ?

@nshahan
Copy link
Contributor

nshahan commented Apr 13, 2020

@neha8igit This sounds like an entirely different issue. Would you mind filing a new issue with the versions you are using and some steps for a reproduction?

@neha8igit
Copy link

@nshahan I figured it out, this is happening because of syncfusion library integration with flutter. Both are on beta and throw many compilation errors.
Will update if I can find a work around to integrate syncfusion by overwriting some library files
thanks

@horcu
Copy link

horcu commented Apr 22, 2020

I still have the same issue but I have not integrated with Syncfusion. Help ?

@neha8igit
Copy link

@horcu
Check ur version of flutter. Since u r trying to run on chrome , i believe u might have switched to beta channel. Please move back to stable and then reopen all editors using flutter. SDK gets updated so it might be linked to binary creations in switching channel.
Lastly , if above steps doesn’t solve then go for Pod disintegrate & reinstall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. customer-flutter P2 A bug or feature request we're likely to work on web-dev-compiler
Projects
None yet
Development

No branches or pull requests

7 participants