Skip to content

StateError: Bad state: No running isolate (inspector is not set). #156793

@andrewkolos

Description

@andrewkolos

First appeared in 3.23.0

Appears to be exclusive to flutter run --machine --start-paused -d chrome.

Affects ~1.3% of clients that have reported a crash on 3.24.3 (which has a crash rate of ~1%)

Stack trace as of 3.24.3:

StateError: Bad state: No running isolate (inspector is not set).
at ChromeProxyService.inspector(chrome_proxy_service.dart:78)
at _waitForResumeEventToRunMain.<anonymous closure>(dwds_vm_client.dart:308)
at _rootRunUnary(zone.dart:1415)
at _CustomZone.runUnary(zone.dart:1308)
at _CustomZone.runUnaryGuarded(zone.dart:1217)
at _BufferingStreamSubscription._sendData(stream_impl.dart:365)
at _DelayedData.perform(stream_impl.dart:541)
at _PendingEvents.handleNext(stream_impl.dart:646)
at _PendingEvents.schedule.<anonymous closure>(stream_impl.dart:617)
at StackZoneSpecification._run(stack_zone_specification.dart:207)
at StackZoneSpecification._registerCallback.<anonymous closure>(stack_zone_specification.dart:114)
at _rootRun(zone.dart:1391)
at _CustomZone.run(zone.dart:1301)
at _CustomZone.runGuarded(zone.dart:1209)
at _CustomZone.bindCallbackGuarded.<anonymous closure>(zone.dart:1249)
at StackZoneSpecification._run(stack_zone_specification.dart:207)
at StackZoneSpecification._registerCallback.<anonymous closure>(stack_zone_specification.dart:114)
at _rootRun(zone.dart:1399)
at _CustomZone.run(zone.dart:1301)
at _CustomZone.runGuarded(zone.dart:1209)
at _CustomZone.bindCallbackGuarded.<anonymous closure>(zone.dart:1249)
at _microtaskLoop(schedule_microtask.dart:40)
at _startMicrotaskLoop(schedule_microtask.dart:49)
at _runPendingImmediateCallback(isolate_patch.dart:118)
at _RawReceivePort._handleMessage(isolate_patch.dart:185)

Potentially relevant files:

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listc: crashStack traces logged to the consoledependency: dartDart team may need to help usdependency:dart-triagedTriaged by Dart teamneeds repro infoAutomated crash report whose cause isn't yet knownr: fixedIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions