1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-02-02 12:26:48 +01:00

Revert "Blacklist all NVidia drivers"

In 2011, there was a bug that caused NVIDIA drivers to hang
Clementine on shutdown. In 2012, only some drivers had the
fix for this issue. Now, in 2019, we do not need to work
around this bug. By reverting commit

c2723008a22c5a4c4e307ba9a278fd2162ef6bdb

we work around known bad drivers, but do not penalize all
NVIDIA users for this ancient bug.
This commit is contained in:
Antonio Russo 2018-05-22 18:28:54 -04:00
parent 36cc5b82f4
commit 783dada13e

View File

@ -480,7 +480,11 @@ int main(int argc, char* argv[]) {
QFile self_maps("/proc/self/maps");
if (self_maps.open(QIODevice::ReadOnly)) {
QByteArray data = self_maps.readAll();
if (data.contains("libnvidia-tls.so.")) {
if (data.contains("libnvidia-tls.so.304.37") ||
data.contains("libnvidia-tls.so.285.03") ||
data.contains("libnvidia-tls.so.280.13") ||
data.contains("libnvidia-tls.so.275.28") ||
data.contains("libnvidia-tls.so.275.19")) {
qLog(Warning) << "Exiting immediately to work around NVIDIA driver bug";
_exit(ret);
}