From fa72abf6b39bf33349735ae2f4c47304be8e7003 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sat, 15 Jan 2022 07:07:09 -0500 Subject: [PATCH] remove NVIDIA driver bug warning from 2017 --- app/src/processing/app/Base.java | 40 -------------------------------- 1 file changed, 40 deletions(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 6fcca6344..47853883a 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -233,7 +233,6 @@ public class Base { handleWelcomeScreen(base); handleCrustyDisplay(); - //checkDriverBug(); // that was 2017, right? } catch (Throwable t) { // Catch-all to pick up badness during startup. @@ -290,45 +289,6 @@ public class Base { } - /* - // Remove this code in a couple of months [fry 170211] - // https://github.com/processing/processing/issues/4853 - // Or maybe not, if NVIDIA keeps doing this [fry 170423] - // https://github.com/processing/processing/issues/4997 - @SuppressWarnings("SpellCheckingInspection") - static private void checkDriverBug() { - if (System.getProperty("os.name").contains("Windows 10")) { - new Thread(() -> { - try { - Process p = Runtime.getRuntime().exec("powershell Get-WmiObject Win32_PnPSignedDriver| select devicename, driverversion | where {$_.devicename -like \\\"*nvidia*\\\"}"); - BufferedReader reader = PApplet.createReader(p.getInputStream()); - String line; - while ((line = reader.readLine()) != null) { - if (line.contains("3.7849")) { - EventQueue.invokeLater(() -> Messages.showWarning("NVIDIA screwed up", - "Due to an NVIDIA bug, you need to update your graphics drivers,\n" + - "otherwise you won't be able to run any sketches. Update here:\n" + - "http://nvidia.custhelp.com/app/answers/detail/a_id/4378\n" + - "or read background about the issue at this link:\n" + - "https://github.com/processing/processing/issues/4853")); - } else if (line.contains("3.8165")) { - EventQueue.invokeLater(() -> Messages.showWarning("NVIDIA screwed up again", - "Due to an NVIDIA bug, you need to update your graphics drivers,\n" + - "otherwise you won't be able to run any sketches. Update here:\n" + - "http://nvidia.custhelp.com/app/answers/detail/a_id/4453/\n" + - "or read background about the issue at this link:\n" + - "https://github.com/processing/processing/issues/4997")); - } - } - } catch (Exception e) { - Messages.err("Problem checking NVIDIA driver", e); - } - }).start(); - } - } - */ - - /** * Temporary workaround as we try to sort out * https://github.com/processing/processing4/issues/231