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

c2723008a2

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
1 changed files with 5 additions and 1 deletions

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);
}