`devices` reports a phantom Android emulator named after the emulator's crashdata INFO banner
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 75/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- android, typescript
- Ambito
- mobile
Direzione di ricerca
Il bug si trova nel modo in cui l'elenco dei dispositivi Android viene costruito dall'output di emulator -list-avds, che secondo la segnalazione viene diviso per riga senza alcun filtro. Trova il codice che esegue quel comando e analizza il suo stdout. Riproduci il problema simulando il comando in modo che stampi il banner INFO e nessun nome di AVD. Il lavoro è completo quando il banner non compare più come dispositivo in devices --json né nel conteggio Android di doctor, e un test copre il caso del banner.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
On a machine with zero AVDs, agent-device devices still reports one Android
emulator, whose id and name are the Android emulator's Crashpad banner:
INFO | Storing crashdata in: /tmp/<user>/emu-crash-34.2.16.db, detection is enabled for process: 98765
Environment
- agent-device 0.21.28 (npm global)
- macOS 15.7.5 (24G624), arm64
- Node v24.14.0
- ANDROID_HOME=/Users//Library/Android/sdk
Steps to reproduce
- Install the Android SDK/emulator, create no AVD (
~/.android/avd/is empty). - Run
agent-device devices --json.
Expected
No Android device listed.
Actual
One phantom entry (booted: false), with the embedded PID changing on every run:
{
"platform": "android",
"id": "INFO | Storing crashdata in: /tmp/<user>/emu-crash-34.2.16.db, detection is enabled for process: 6727",
"name": "INFO | Storing crashdata in: /tmp/<user>/emu-crash-34.2.16.db, detection is enabled for process: 6727",
"kind": "emulator",
"target": "mobile",
"booted": false
}
agent-device doctor counts it as well: device: ... Android 1 available, 0 booted.
Likely cause
The Android emulator writes that banner to stdout (verified with Python
capture_output=True; stderr is empty and exit code is 0):
$ emulator -list-avds 2>/dev/null
INFO | Storing crashdata in: /tmp/<user>/emu-crash-34.2.16.db, detection is enabled for process: 8114
$ emulator -list-avds 2>&1 1>/dev/null # stderr
(empty)
$ echo $?
0
So splitting stdout of emulator -list-avds by line yields one bogus "AVD" per run.
Filtering to plausible AVD names (or reading ~/.android/avd/*.ini) would avoid it.
Confirmed there is genuinely no device here: adb devices -l is empty and
~/.android/avd/ has no .ini files. The banner reproduces on every invocation
(three consecutive runs, only the PID differs).
- Lingua principale
- TypeScript
- Stelle
- 5k
- Fork
- 334
- Merge medio
- 12h 14m
- PR unite (30g)
- 713
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di callstack/agent-device
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
callstack/agent-device#3792 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
macOS helper audio-probe always reports -90 dBFS: AVAudioPCMBuffer frameLength set after the copyApertabug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
callstack/agent-device#3771 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
callstack/agent-device#1869 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
callstack/agent-device#3801 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 49/100
callstack/agent-device#3800 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di callstack/agent-device
Issue simili
-
"Contains" page watch never matches when its text has a trailing spaceForse già presa @RaphaelFakhri l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
CopilotKit/openmuse#184 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
bootstrap-vue-next/bootstrap-vue-next#3357 ·
I maintainer di solito rispondono entro 1 giorno
-
[quality] tide.ts: six mutation survivors in the merge-queue gate, draft refusal, fork-403 workflow-file diagnosis and getPull's fork flag are unpinned by any testForse già presa @hivecommons-hive l’ha presa oggi. Apertaagent/quality needs-kind stage/040-covered-by-pr testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
cncf/prow-github-actions#517 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Unsampled pageload span is profiled when profileLifecycle is 'trace' (browser UI profiling)Forse già presa @Jxxunnn l’ha presa oggi. ApertaBrowser Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
getsentry/sentry-javascript#25497 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno