Closed polina-c closed 2 years ago
I just tried to reproduce this. In my repro, the application crashed before DevTools threw this error. This makes sense because the error above indicates that the Vm Service is null, which happens when the app exits. Is this what you are seeing?
I am getting this error in the console running flutter gallery:
Unhandled exception:
type 'DillSetterBuilder' is not a subtype of type 'SourceMemberBuilderImpl?' in type cast
#0 SourceLibraryBuilder.checkMemberConflicts.<anonymous closure>
(package:front_end/src/fasta/source/source_library_builder.dart:998:22)
#1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:574:13)
#2 Scope.forEachLocalSetter (package:front_end/src/fasta/scope.dart:424:14)
#3 SourceLibraryBuilder.checkMemberConflicts (package:front_end/src/fasta/source/source_library_builder.dart:974:11)
#4 SourceLibraryBuilder.build (package:front_end/src/fasta/source/source_library_builder.dart:1057:5)
#5 IncrementalCompiler.compileExpression.<anonymous closure>
(package:front_end/src/fasta/incremental_compiler.dart:1817:20)
#6 IncrementalCompiler.compileExpression.<anonymous closure>
(package:front_end/src/fasta/incremental_compiler.dart:1668:39)
#7 CompilerContext.runInContext.<anonymous closure>.<anonymous closure>
(package:front_end/src/fasta/compiler_context.dart:118:46)
#8 new Future.sync (dart:async/future.dart:296:31)
#9 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:118:19)
#10 _rootRun (dart:async/zone.dart:1426:13)
#11 _CustomZone.run (dart:async/zone.dart:1328:19)
#12 _runZoned (dart:async/zone.dart:1861:10)
#13 runZoned (dart:async/zone.dart:1783:10)
#14 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:117:12)
#15 IncrementalCompiler.compileExpression (package:front_end/src/fasta/incremental_compiler.dart:1668:26)
#16 IncrementalCompiler.compileExpression (package:vm/incremental_compiler.dart:218:23)
#17 FrontendCompiler.compileExpression
(file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:850:44)
#18 listenAndCompile.<anonymous closure>
(file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:1268:20)
#19 listenAndCompile.<anonymous closure>
(file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:1160:15)
#20 _RootZone.runUnaryGuarded (dart:async/zone.dart:1618:10)
#21 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#22 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#23 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:63:11)
#24 _EventSinkWrapper.add (dart:async/stream_transformers.dart:13:11)
#25 _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#26 _LineSplitterSink._addLines (dart:convert/line_splitter.dart:170:13)
#27 _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:145:5)
#28 StringConversionSinkMixin.add (dart:convert/string_conversion.dart:163:5)
#29 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:111:24)
#30 _RootZone.runUnaryGuarded (dart:async/zone.dart:1618:10)
#31 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#32 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#33 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:63:11)
#34 _EventSinkWrapper.add (dart:async/stream_transformers.dart:13:11)
#35 _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#36 _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:243:7)
#37 _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:317:20)
#38 _Utf8ConversionSink.add (dart:convert/string_conversion.dart:310:5)
#39 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#40 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:111:24)
#41 _RootZone.runUnaryGuarded (dart:async/zone.dart:1618:10)
#42 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#43 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#44 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#45 _StreamController._add (dart:async/stream_controller.dart:648:7)
#46 _StreamController.add (dart:async/stream_controller.dart:596:5)
#47 _Socket._onData (dart:io-patch/socket_patch.dart:2314:41)
#48 _RootZone.runUnaryGuarded (dart:async/zone.dart:1618:10)
#49 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#50 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#51 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#52 _StreamController._add (dart:async/stream_controller.dart:648:7)
#53 _StreamController.add (dart:async/stream_controller.dart:596:5)
#54 new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1839:33)
#55 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1322:14)
#56 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#57 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#58 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:122:13)
#59 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:193:5)
the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
CC @bkonyi
Looks like a compiler crash. Maybe @alexmarkov can triage this.
I just tried to reproduce this. In my repro, the application crashed before DevTools threw this error. This makes sense because the error above indicates that the Vm Service is null, which happens when the app exits. Is this what you are seeing?
Nope. The app starts successfully for me and only crashes when I try to connect.
Confirmed this happens on flutter master (2.10.0-1.0.pre.314) but not on beta (2.10.0-0.3-pre)
Stack trace in https://github.com/flutter/devtools/issues/3599#issuecomment-1023740373 looks like a front-end crash while compiling an expression for expression evaluation. /cc @johnniwinther
@jensjoha Can you take a look at this?
I can't reproduce any of it. Can anyone provide a reproduction (step-by-step)?
Repro steps:
2.10.0-1.0.pre.314
when I reproduced this)).flutter run
path/to/devtools/packages/devtools_app
, run flutter run -d macos
or -d linux
if you're on linux. You can also run as a flutter web app with -d chrome
if that is easier).@kenzieschmoll reproduced, thanks!
I was having the same issue here. My flutter app can launch without any issue, but when I tried to launch the DevTools, it just crush and having the similar error message.
The device I was using was Macbook Pro with M1 Pro chip and the flutter version was 2.10.0-1.0.pre.339, hope this will help!
Unhandled exception:
type 'DillSetterBuilder' is not a subtype of type 'SourceMemberBuilderImpl?' in type cast
#0 SourceLibraryBuilder.checkMemberConflicts.<anonymous closure> (package:front_end/src/fasta/source/source_library_builder.dart:998:22)
#1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:574:13)
#2 Scope.forEachLocalSetter (package:front_end/src/fasta/scope.dart:424:14)
#3 SourceLibraryBuilder.checkMemberConflicts (package:front_end/src/fasta/source/source_library_builder.dart:974:11)
#4 SourceLibraryBuilder.build (package:front_end/src/fasta/source/source_library_builder.dart:1057:5)
#5 IncrementalCompiler.compileExpression.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:1817:20)
#6 IncrementalCompiler.compileExpression.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:1668:39)
#7 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:118:46)
#8 new Future.sync (dart:async/future.dart:296:31)
#9 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:118:19)
#10 _rootRun (dart:async/zone.dart:1426:13)
#11 _CustomZone.run (dart:async/zone.dart:1328:19)
#12 _runZoned (dart:async/zone.dart:1861:10)
#13 runZoned (dart:async/zone.dart:1783:10)
#14 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:117:12)
#15 IncrementalCompiler.compileExpression (package:front_end/src/fasta/incremental_compiler.dart:1668:26)
#16 IncrementalCompiler.compileExpression (package:vm/incremental_compiler.dart:218:23)
#17 FrontendCompiler.compileExpression (file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:850:44)
#18 listenAndCompile.<anonymous closure> (file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:1268:20)
#19 listenAndCompile.<anonymous closure> (file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:1160:15)
#20 _RootZone.runUnaryGuarded (dart:async/zone.dart:1618:10)
#21 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#22 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#23 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:63:11)
#24 _EventSinkWrapper.add (dart:async/stream_transformers.dart:13:11)
#25 _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#26 _LineSplitterSink._addLines (dart:convert/line_splitter.dart:170:13)
#27 _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:145:5)
#28 StringConversionSinkMixin.add (dart:convert/string_conversion.dart:163:5)
#29 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:111:24)
#30 _RootZone.runUnaryGuarded (dart:async/zone.dart:1618:10)
#31 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#32 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#33 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:63:11)
#34 _EventSinkWrapper.add (dart:async/stream_transformers.dart:13:11)
#35 _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#36 _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:243:7)
#37 _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:317:20)
#38 _Utf8ConversionSink.add (dart:convert/string_conversion.dart:310:5)
#39 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#40 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:111:24)
#41 _RootZone.runUnaryGuarded (dart:async/zone.dart:1618:10)
#42 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#43 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#44 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#45 _StreamController._add (dart:async/stream_controller.dart:648:7)
#46 _StreamController.add (dart:async/stream_controller.dart:596:5)
#47 _Socket._onData (dart:io-patch/socket_patch.dart:2314:41)
#48 _RootZone.runUnaryGuarded (dart:async/zone.dart:1618:10)
#49 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#50 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#51 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#52 _StreamController._add (dart:async/stream_controller.dart:648:7)
#53 _StreamController.add (dart:async/stream_controller.dart:596:5)
#54 new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1839:33)
#55 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1322:14)
#56 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#57 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#58 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:122:13)
#59 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:193:5)
2
the Dart compiler exited unexpectedly.
මොන පරයද check කරන්නැතුව publish දාපු එකා
I can confirm this issue is fixed with the latest flutter master.
I'm seeing this on the latest Flutter version from the beta channel: 2.11.0-0.1.pre
[flutter] flutter doctor -v
[✓] Flutter (Channel beta, 2.11.0-0.1.pre, on macOS 12.3 21E5212f darwin-x64, locale en-DE)
• Flutter version 2.11.0-0.1.pre at /Users/anton/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b101bfe32f (4 days ago), 2022-02-16 07:36:54 -0800
• Engine revision e355993572
• Dart version 2.17.0 (build 2.17.0-69.2.beta)
• DevTools version 2.10.0-dev.1
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/anton/Library/Android/sdk
• Platform android-32, build-tools 32.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] VS Code (version 1.62.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.29.0
[✓] Connected device (2 available)
• Anton’s iPhone (mobile) • 00008101-0002249636B8001E • ios • iOS 15.4 19E5225g
• Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.102
! Error: Anton’s iPhone is busy: Preparing the watch for development via Anton’s iPhone. Xcode will continue when Anton’s iPhone is finished. (code -10)
! Error: Anton’s iPad is not connected. Xcode will continue when Anton’s iPad is connected. (code -13)
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
exit code 0
See https://github.com/flutter/flutter/issues/97500#issuecomment-1044083031 for explanation. This issue is not present on the master branch of flutter, so the fix has already been landed upstream.
Is there any workarounds when using Flutter stable and want to use the devtools? The devtools are really helpful for developing and debugging the Flutter application. Thanks.
Looks like your question was answered on https://github.com/flutter/flutter/issues/97500#issuecomment-1066478485. Let us know if you run into any more issues.
having trouble with the version of flutter 2.10.5 was using 2.8.1, now I can't run my app on any emulator or device not showing any error visible, it also ask me to upgrade my Xcode but I cant on my macbookAir I can only use chrome to emulate. why is this happening?
For macos:
For web: