Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Bugs found while taking v0.14.2 screenshots on an emulator (incl. data lost after first restart)

Đã đóng
#321 13 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Một pull request liên quan đã được merge.

  • #325 của @TimeToBuildBob — đã merge
  • #326 của @TimeToBuildBob — đã merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, kotlin
Lĩnh vực
backend, mobile

Hướng nghiên cứu

This is a bundle of eight items; some already have PRs (#325 open, #326 merged) and item 1 is assigned, so check the thread first and pick a self-contained sub-item (5 dark mode, 6 back-swipe, or 4 /week/<date> snapping). For item 1, reproduce with fresh install → onboarding → POST bucket/events → force-stop → reopen and inspect /api/0/buckets/, focusing on where the DB is first opened/committed relative to first launch and WAL checkpointing. For item 2, start at the blocking thread start inside MainActivity.onResume and move it off the main thread. Done per item means its stated checkbox condition passes on a fresh emulator run.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Found while scripting marketing screenshots of v0.14.2 (release APK, universal) on an Android 16 emulator (AVD on CT 102, fresh install each run, demo data imported through the app's REST API at localhost:5600 with the API key from the app's config.toml).

@TimeToBuildBob this one is yours (assigned by Erik). Item 1 first; it may affect real users.

  • 1. Data written right after a fresh install is lost on the next app restart. Events and settings imported via the API vanished after the first app restart in the first 1–2 attempts of all 3 fresh runs; once the device had settled, imports survived restarts. Log buffer had rotated, so no root cause yet. Suspects: DB opened/committed before WAL checkpoint and the process killed, or the DB being recreated on first real start. Repro: fresh install → finish onboarding → POST a bucket + events → force-stop app → reopen → check /api/0/buckets/. Done when imported data survives a force-stop immediately after first launch.
  • 2. ANR on a fresh boot: "ActivityWatch isn't responding", main thread stuck in MainActivity.onResume while starting a thread. Move the blocking work off the main thread.
  • 3. Desktop-only tabs on Android: the bundled web UI shows the Window/Browser/Editor tabs, which only say "missing data from a required watcher" on a phone. Default Android to the Android views.
  • 4. Week view starts on the given date, not on Monday (/week/<date>), probably the same root cause as ActivityWatch/aw-webui#1058 item 1 (period not snapped to its start).
  • 5. Native sync settings screen ignores dark mode.
  • 6. With gesture navigation, back-swipe finishes MainActivity instead of opening the drawer or going back in the WebView.
  • 7. Fresh install shows "The saved aw-notify setting has an unsupported format" in Settings: already fixed upstream in ActivityWatch/aw-webui#1043, needs the web UI bump.
  • 8. Multi-device (@all, or several hosts) returns 0 s in the v0.14.2 web UI even with synced desktop buckets present; check after the web UI bump.

Screenshot script (re-runnable, ~8 min): CT 102 /root/aw-screenshots/android_screenshots.py --wipe.

Ngôn ngữ chính
Kotlin
Star
279
Fork
63
Merge trung bình
4 ngày 22 giờ
Pull request đã merge (30 ngày)
57

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ActivityWatch/aw-android

Tất cả issue của ActivityWatch/aw-android

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.