From 783dada13e76a7ef1afb64209b2d4e3076a0918e Mon Sep 17 00:00:00 2001 From: Antonio Russo Date: Tue, 22 May 2018 18:28:54 -0400 Subject: [PATCH] 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. --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 0ee7a8fa7..ecf47b9d4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); }