ActivityWatch / ActivityWatch/activitywatch

Getting `libGL error: failed to load driver` caused by `libstdc++.so.6: version 'GLIBCXX_3.4.29' not found`

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

描述

- **OS name and version**: Arch Linux, rolling
- **ActivityWatch version**: d45960deeb86a9c968847c2b06ca0daa7397ee51

## Describe the bug

Error messages like this appear in the aw-qt output:

```
libGL error: MESA-LOADER: failed to open iris: /home/erb/Downloads/builds-Linux-py3.8(1)/activitywatch-v0.12.0b2.dev-d45960d-linux-x86_64/activitywatch/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /home/erb/Downloads/builds-Linux-py3.8(1)/activitywatch-v0.12.0b2.dev-d45960d-linux-x86_64/activitywatch/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /home/erb/Downloads/builds-Linux-py3.8(1)/activitywatch-v0.12.0b2.dev-d45960d-linux-x86_64/activitywatch/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
```

They seem relatively benign, and don't cause a crash or anything, but it highlights an underlying issue that might be bigger/affect more libs.

Not sure if removing `libstdc++.so.6` from the bundle it is a good idea (although most/all systems should have it, not sure about compatibility), but fixes the issue on my machine.

## Additional context

Related to the general issue of which libraries to bundle: https://github.com/pyinstaller/pyinstaller/discussions/6645

Seems similar to https://github.com/Ultimaker/Cura/issues/11856

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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