Skip to content

ERROR: Running multiple emulators with the same AVD is an experimental feature. #48894

Description

@zanderso

From crash logging.

ProcessException: Process exited abnormally:
emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature.
Please use -read-only flag to enable this feature.
  Command: C:\Users\...\AppData\Local\Android\sdk\emulator\emulator.exe -avd Pixel_3_API_24
  | at RunResult.throwException | (process.dart:172 )
  | at _DefaultProcessUtils.run | (process.dart:322 )
  | at <asynchronous gap> | (async )
  | at AndroidEmulator.launch | (android_emulator.dart:53 )
  | at EmulatorsCommand._launchEmulator | (emulators.dart:73 )
  | at <asynchronous gap> | (async )
  | at EmulatorsCommand.runCommand | (emulators.dart:46 )
  | at FlutterCommand.verifyThenRunCommand | (flutter_command.dart:637 )
  | at _asyncThenWrapperHelper.<anonymous closure> | (async_patch.dart:75 )
  | at _rootRunUnary | (zone.dart:1134 )
  | at _CustomZone.runUnary | (zone.dart:1031 )
  | at _FutureListener.handleValue | (future_impl.dart:140 )
  | at Future._propagateToListeners.handleValueCallback | (future_impl.dart:682 )
  | at Future._propagateToListeners | (future_impl.dart:711 )
  | at Future._completeWithValue | (future_impl.dart:526 )
  | at Future._asyncComplete.<anonymous closure> | (future_impl.dart:556 )
  | at _rootRun | (zone.dart:1126 )
  | at _CustomZone.run | (zone.dart:1023 )
  | at _CustomZone.runGuarded | (zone.dart:925 )
  | at _CustomZone.bindCallbackGuarded.<anonymous closure> | (zone.dart:965 )
  | at _microtaskLoop | (schedule_microtask.dart:43 )
  | at _startMicrotaskLoop | (schedule_microtask.dart:52 )
  | at _runPendingImmediateCallback | (isolate_patch.dart:118 )
  | at _RawReceivePortImpl._handleMessage | (isolate_patch.dart:175 )

Maybe we can parse out the 'Running multiple emulators' bit, and throw a tool exit instead of crashing.

/cc @blasten

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consoleplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions