Skip to content

💥 ☂️ Solution to fleet-wide Android emulator crashes on CI #153445

@matanlurey

Description

@matanlurey

Forked from #152769 as it's unrelated to my specific test.

As of 2024-08-14, we have systemic fleet-wide Android emulator crashes that appear unrelated with any specific test:

In nearly every case, the following occurs (note that every test uses a slightly different setup, the logs are not uniform):

  1. The emulator successfully starts (as part of a CI task job)
  2. The test, typically using flutter drive ... installs the test APK, and starts executing
  3. An ambient print message appears in the console: getIsolate: (-32000) Service connection disposed
  4. The test (driver script) ends (usually you'll see adb: device offline in the logs by this point) with a failure

Confusingly, these tests work run fine roughly 95% - 99% of the time.


My plan this week is roughly the following:

  • Try LED builds of the Android emulator try-jobs, trying to extract crash logs, twiddle scripts
  • See what the memory usage of the emulator is locally (we have a max of 2gb right now)
  • Meet with the maintainer of the Chromium Android emulator tools (we use) on GVC

/cc @reidbaker @zanderso @johnmccutchan @christopherfujino @chunhtai


TODOs

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: crashStack traces logged to the consolec: tech-debtTechnical debt, code quality, testing, etc.platform-androidAndroid applications specificallyteam-infraOwned by Infrastructure team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions