ActivityWatch / ActivityWatch/activitywatch

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

Đang mở
#764 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
stale type: bug
Ngôn ngữ chính
Python
Star
18.9k
Fork
1k
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
28

Mô tả

- **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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.