[macos] Process crashed without error

Open
#101 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
macos, python

Research direction

No source file, test, or reproducible trigger is named. Start by reproducing the macOS watcher from the terminal and capturing logs around the final heartbeat and the aw-watcher-window.v1.persistqueue path; done means identifying why the process exits with code 0 and verifying that the failure is reported or prevented.

Written by the indexing model from the issue text.

Description

Watcher process suddenly died after running okay for weeks (last commit, from terminal). Lost 2h of data.

Last messages:

2024-02-14 11:50:18 [aw-watcher-window-macos] [DEBUG] [heartbeat] bucket: aw-watcher-window_erb-m2.localdomain, timestamp: 2024-02-14 10:50:18 +0000, pulsetime: 1.7, app: Alacritty, title: [0:mono-gpt-engineer] ~/P/m/app (/Users/erb/Programming/mono-gpt-engineer/app), url:
2024-02-14 11:50:18 [aw-watcher-window-macos] [DEBUG] sending old heartbeat for merging
2024-02-14 11:50:23 [DEBUG]: queue path '/Users/erb/Library/Application Support/activitywatch/aw-client/queued/aw-watcher-window.v1.persistqueue'  (aw_client.client:418)
⏎

Exit code 0.

Dominant language
Python
Stars
133
Forks
92
Avg merge
5d 3h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/aw-watcher-window

All issues in ActivityWatch/aw-watcher-window

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.