ActivityWatch / ActivityWatch/activitywatch

Fatal error, stopping (aw_watcher_window.main:120)

未关闭
#1,147 6 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
type: bug
主要语言
Python
星标
18.9k
派生
1k
平均合并
1 天 4 小时
30 天内合并 PR
28

描述

- [x] I am on the [latest](https://github.com/ActivityWatch/activitywatch/releases/latest) ActivityWatch version.
- [x] I have searched the issues of this repo and believe that this is not a duplicate.

- **OS name and version**: LMDE 6 Faye base: Debian 12.1 bookworm
- **ActivityWatch version**: v0.13.2

## Describe the bug
aw-watcher-window crashed and stopped reporting data.

## To Reproduce

## Expected behavior

I think it should restart after a crash

## Documentation

aw-watcher-window logs:
```
2025-05-19 11:21:40 [INFO ]: aw-watcher-window started (aw_watcher_window.main:70)
2025-05-19 11:21:41 [INFO ]: Connection to aw-server established by aw-watcher-window (aw_client.client:447)
2025-05-26 15:46:21 [WARNING]: Unable to get window class, got a BadWindow exception. (aw_watcher_window.xlib:115)
2025-05-26 15:46:21 [ERROR]: Fatal error, stopping (aw_watcher_window.main:120)
Traceback (most recent call last):
File "aw_watcher_window/main.py", line 115, in heartbeat_loop
File "aw_watcher_window/lib.py", line 64, in get_current_window
File "aw_watcher_window/lib.py", line 16, in get_current_window_linux
File "aw_watcher_window/xlib.py", line 120, in get_window_class
OSError: [Errno 5] Input/output error
2025-05-26 15:46:21 [ERROR]: Unhandled exception (root:50)
Traceback (most recent call last):
File "", line 1, in
OSError: [Errno 5] Input/output error
2025-05-26 15:46:21 [ERROR]: Unhandled exception (root:50)
Traceback (most recent call last):
File "", line 1, in
OSError: [Errno 5] Input/output error
```

## Additional context

![Image](https://github.com/user-attachments/assets/27d5006f-440a-40e6-b31c-6838cf2d1963)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。