ActivityWatch / ActivityWatch/activitywatch
Getting `libGL error: failed to load driver` caused by `libstdc++.so.6: version 'GLIBCXX_3.4.29' not found`
- Dominant language
- Python
- Stars
- 18.9k
- Forks
- 1k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 28
Description
- **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
Contributor guide
Assessment
This issue has not been assessed yet.