Skip to content

debugger breaks multiple times on an exception #37645

Closed
@escamoteur

Description

@escamoteur

This tracker is for issues related to:

  • Dart VM
[√] Flutter (Channel beta, v1.7.8+hotfix.4, on Microsoft Windows [Version 10.0.17134.885], locale de-DE)
    • Flutter version 1.7.8+hotfix.4 at C:\Entwicklung\flutter
    • Framework revision 20e59316b8 (8 days ago), 2019-07-18 20:04:33 -0700
    • Engine revision fee001c93f
    • Dart version 2.4.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at C:\Users\escam\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 36.1.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] IntelliJ IDEA Community Edition (version 2018.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.5
    • Flutter plugin version 29.1.3
    • Dart plugin version 182.4892.25

[√] VS Code, 64-bit edition (version 1.36.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.2.0

I made today the observation that my debugger breaks multple times on the same exception, please see this screencast: https://www.screencast.com/t/GynUdWWO

Is it normal to get another exeption after an .timeOut()?

I disussed it already with @DanTup and he assured me it comes from the VM, see:

Definitely seems to be coming from the VM... Here's a snippet from your log where we get an exception, you press Resume, the VM tells us is resumed, then it tells us about the exception again (and it has a newer timestamp).

On Fri, Jul 26, 2019 at 5:59 PM Thomas Burkhart <thomas@burkharts.net> wrote:



Dart-Code-Log-2019-06-05 18-50-48.txt

[18:52:44] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"PauseException","isolate":{"type":"@Isolate","id":"isolates\/869650738","name":"main","number":"869650738"},"timestamp":1564159964557,"topFrame":{"type":"Frame","kind":"Regular","location":{"type":"SourceLocation","script":{"type":"@Script","fixedId":true,"id":"libraries\/@560215572\/scripts\/package%3Ahttp%2Fsrc%2Fio_client.dart\/16c2f31aec0","uri":"package:http\/src\/io_client.dart","_kind":"kernel"},"tokenPos":1039},"function":{"type":"@Function","fixedId":true,"id":"classes\/3840\/closures\/394","name":"async_op","_vmName":":async_op","owner":{"type":"@Function","fixedId":true,"id":"classes\/3840\/functions\/send","name":"send","owner":{"type":"@Class","fixedId":true,"id":"classes\/3840","name":"IOClient"},"_kind":"RegularFunction","static":false,"const":false,"_intrinsic":false,"_native":false},"_kind":"ClosureFunction","static":false,"const":false,"_intrinsic":false,"_native":false},"code":{"type":"@Code","fixedId":true,"id":"code\/3a4ea860-7bd819ec39e0","name":"[Unoptimized] IOClient.send","_vmName":"[Unoptimized] async_op","kind":"Dart","_optimized":false,"_intrinsic":false,"_native":false},"vars":[{"type":"BoundVariable","name":"request","value":{"type":"@Instance","class":{"type":"@Class","fixedId":true,"id":"classes\/3847","name":"Request"},"kind":"PlainInstance","id":"objects\/2545"},"declarationTokenPos":952,"scopeStartTokenPos":952,"scopeEndTokenPos":2383},{"type":"BoundVariable","name":"this","value":{"type":"@Instance","class":{"type":"@Class","fixedId":true,"id":"classes\/3840","name":"IOClient"},"kind":"PlainInstance","id":"objects\/2546"},"declarationTokenPos":-1,"scopeStartTokenPos":952,"scopeEndTokenPos":2383},{"type":"BoundVariable","name":"stream","value":{"type":"@Instance","class":{"type":"@Class","fixedId":true,"id":"classes\/3835","name":"ByteStream"},"kind":"PlainInstance","id":"objects\/2547"},"declarationTokenPos":977,"scopeStartTok…
[18:52:47] [Observatory] [Info] ==> {"id":"774","method":"resume","params":{"isolateId":"isolates/869650738"}}
[18:52:47] [Observatory] [Info] <== {"jsonrpc":"2.0", "result":{"type":"Success"},"id":"774"}
[18:52:47] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"Resume","isolate":{"type":"@Isolate","id":"isolates\/869650738","name":"main","number":"869650738"},"timestamp":1564159967774,"topFrame":{"type":"Frame","kind":"Regular","location":{"type":"SourceLocation","script":{"type":"@Script","fixedId":true,"id":"libraries\/@560215572\/scripts\/package%3Ahttp%2Fsrc%2Fio_client.dart\/16c2f31aec0","uri":"package:http\/src\/io_client.dart","_kind":"kernel"},"tokenPos":1039},"function":{"type":"@Function","fixedId":true,"id":"classes\/3840\/closures\/394","name":"async_op","_vmName":":async_op","owner":{"type":"@Function","fixedId":true,"id":"classes\/3840\/functions\/send","name":"send","owner":{"type":"@Class","fixedId":true,"id":"classes\/3840","name":"IOClient"},"_kind":"RegularFunction","static":false,"const":false,"_intrinsic":false,"_native":false},"_kind":"ClosureFunction","static":false,"const":false,"_intrinsic":false,"_native":false},"code":{"type":"@Code","fixedId":true,"id":"code\/3a4ea860-7bd819ec39e0","name":"[Unoptimized] IOClient.send","_vmName":"[Unoptimized] async_op","kind":"Dart","_optimized":false,"_intrinsic":false,"_native":false},"vars":[{"type":"BoundVariable","name":"request","value":{"type":"@Instance","class":{"type":"@Class","fixedId":true,"id":"classes\/3847","name":"Request"},"kind":"PlainInstance","id":"objects\/2752"},"declarationTokenPos":952,"scopeStartTokenPos":952,"scopeEndTokenPos":2383},{"type":"BoundVariable","name":"this","value":{"type":"@Instance","class":{"type":"@Class","fixedId":true,"id":"classes\/3840","name":"IOClient"},"kind":"PlainInstance","id":"objects\/2753"},"declarationTokenPos":-1,"scopeStartTokenPos":952,"scopeEndTokenPos":2383},{"type":"BoundVariable","name":"stream","value":{"type":"@Instance","class":{"type":"@Class","fixedId":true,"id":"classes\/3835","name":"ByteStream"},"kind":"PlainInstance","id":"objects\/2754"},"declarationTokenPos":977,"scopeStartTokenPos":9…
[18:52:47] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"PauseException","isolate":{"type":"@Isolate","id":"isolates\/869650738","name":"main","number":"869650738"},"timestamp":1564159967778,"topFrame":{"type":"Frame","kind":"Regular","location":{"type":"SourceLocation","script":{"type":"@Script","fixedId":true,"id":"libraries\/@560215572\/scripts\/package%3Ahttp%2Fsrc%2Fio_client.dart\/16c2f31aec0","uri":"package:http\/src\/io_client.dart","_kind":"kernel"},"tokenPos":-1},"function":{"type":"@Function","fixedId":true,"id":"classes\/3840\/closures\/394","name":"async_op","_vmName":":async_op","owner":{"type":"@Function","fixedId":true,"id":"classes\/3840\/functions\/send","name":"send","owner":{"type":"@Class","fixedId":true,"id":"classes\/3840","name":"IOClient"},"_kind":"RegularFunction","static":false,"const":false,"_intrinsic":false,"_native":false},"_kind":"ClosureFunction","static":false,"const":false,"_intrinsic":false,"_native":false},"code":{"type":"@Code","fixedId":true,"id":"code\/3a4ea860-7bd819ec39e0","name":"[Unoptimized] IOClient.send","_vmName":"[Unoptimized] async_op","kind":"Dart","_optimized":false,"_intrinsic":false,"_native":false},"vars":[],"index":0},"exception":{"type":"@Instance","class":{"type":"@Class","fixedId":true,"id":"classes\/939","name":"SocketException"},"kind":"PlainInstance","id":"objects\/2755"}}}}

Dart-Code-Log-2019-06-05 18-50-48.txt

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.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions