Skip to content

the Dart compiler exited unexpectedly, if I place a breakpoint inside a certain function #53382

Closed
@escamoteur

Description

@escamoteur
Unhandled exception:
FormatException: Invalid radix-10 number (at character 1)
package:functional_listener/functional_listener.dart
functional_listener.dart:1
^

#0      int._handleFormatError (dart:core-patch/integers_patch.dart:126:5)
#1      int._parseRadix (dart:core-patch/integers_patch.dart:152:16)

#2      int._parse (dart:core-patch/integers_patch.dart:98:12)
#3      int.parse (dart:core-patch/integers_patch.dart:60:12)
#4      parseDefinitionTypes (package:front_end/src/api_prototype/expression_compilation_tools.dart:113:36)
#5      createDefinitionsWithTypes (package:front_end/src/api_prototype/expression_compilation_tools.dart:32:7)
#6      IncrementalCompiler.compileExpression (package:vm/incremental_compiler.dart:219:50)
#7      FrontendCompiler.compileExpression (package:frontend_server/frontend_server.dart:981:45)
#8      listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1452:26)
#9      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#10     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#11     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#12     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:63:11)
#13     _EventSinkWrapper.add (dart:async/stream_transformers.dart:13:11)
#14     _StringAdapterSink.add (dart:convert/string_conversion.dart:228:11)
#15     _LineSplitterSink._addLines (dart:convert/line_splitter.dart:164:13)
#16     _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:131:7)
#17     StringConversionSink.add (dart:convert/string_conversion.dart:39:5)

It only happens when I set a breakpoint inside

image

if I remove the breakpoint the app doesn't crash.
I also have no idea where I should do an int.parse to get such an exception. also thee reported file as place where it happens doesn't make sense as the listen function only looks like this

  ListenableSubscription listen(
    void Function(T, ListenableSubscription) handler,
  ) {
    final subscription = ListenableSubscription(this);
    subscription.handler = () => handler(this.value, subscription);
    this.addListener(subscription.handler);
    return subscription;
  }

happens on: Flutter (Channel stable, 3.13.1, on Microsoft Windows [Version 10.0.19045.3324], locale de-DE)

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.legacy-area-front-endLegacy: Use area-dart-model instead.vm-debugger

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions