Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Stopwatch continues running after stopped

Aperta
#70 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
android, kotlin, rust
Ambito
backend, mobile

Direzione di ricerca

Inizia tracciando l’evento di arresto della Stopwatch dal ciclo di vita della view Android fino al rust-backend, concentrandoti su ciò che accade quando la view viene chiusa o viene aperta un’altra app. Riproduci la sequenza segnalata di avvio, arresto, chiusura e riapertura, quindi verifica che una Stopwatch arrestata rimanga arrestata dopo la terminazione dell’app, la riapertura di ActivityWatch e il passaggio da un’app all’altra.

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

Descrizione

I have encountered a bug in the "Stopwatch" feature. It sometimes restarts a stopwatch, after I already stopped it.

I assume that this happens when the view is closed/terminated, before the "stop event" (or whatever the correct term is) is sent to the rust-backend. The best method I found to reproduce is:

  • Start a stopwatch
  • Let the stopwatch run for some time
  • Stop the stopwatch
  • Close the view manually, by using the "overview" button of the phone and closing the app
  • Re-open activitywatch
  • The stopwatch runs again

This does not trigger the bug 100%, so I would assume that there is some racing condition or the operation takes some time. My assumptions would have been that after pressing stop, the termination is directly "committed", but this does not seem to be the case.
The bug also happens, when I don't close the view manually, just by switching to another app.

ActivityWatch: v.0.10.0 (rust) (Installed over Google playstore)
Android: 8.0.0 (Samsung Galaxy S7)

Lingua principale
Kotlin
Stelle
270
Fork
57
Merge medio
20h 32m
PR unite (30g)
38

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ActivityWatch/aw-android

Tutte le issue di ActivityWatch/aw-android

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.