callstack / callstack/agent-device

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

Chiusa
#2,553 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
4.6k
Fork
299
Merge medio
10h 42m
PR unite (30g)
493

Descrizione

## 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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non è indicato alcun file o test; inizia tracciando l'handshake di ownership Android utilizzato da snapshot, press e type. Riproduci chiamate ripetute tra sessioni dell'emulatore, quindi verifica che i fallimenti transitori dell'handshake vengano ritentati con backoff e che i press falliti non riutilizzino le coordinate di snapshot precedenti al fallimento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, typescript
Ambito
mobile-dev, testing-qa
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.