Skip to content

Android: roughly one call in three fails with "snapshot helper could not confirm release of device automation ownership" #2553

Description

@janicduplessis

What happened

agent-device 0.21.1, Android emulator (API 35 AVD created by an external tool), several sessions on different emulators on the same host. Over a 100-minute run about one call in three, across snapshot, press and type, failed with:

Android snapshot helper could not confirm release of device automation ownership

A retry after about five seconds succeeded every time. Two other runs on the same host saw the same failure twice each. Worse than the failure itself: a press --settle that hit it sometimes drove stale coordinates on the next attempt (one confirm-dialog tap landed on the wrong element).

Proposal

Retry the ownership handshake internally with a short backoff before surfacing the error, and never reuse a pre-failure snapshot for coordinates after it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions