Skip to content

Commit fa72abf

Browse files
committed
remove NVIDIA driver bug warning from 2017
1 parent e4b9312 commit fa72abf

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

app/src/processing/app/Base.java

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ static private void createAndShowGUI(String[] args) {
233233

234234
handleWelcomeScreen(base);
235235
handleCrustyDisplay();
236-
//checkDriverBug(); // that was 2017, right?
237236

238237
} catch (Throwable t) {
239238
// Catch-all to pick up badness during startup.
@@ -290,45 +289,6 @@ static private void handleWelcomeScreen(Base base) {
290289
}
291290

292291

293-
/*
294-
// Remove this code in a couple of months [fry 170211]
295-
// https://github.com/processing/processing/issues/4853
296-
// Or maybe not, if NVIDIA keeps doing this [fry 170423]
297-
// https://github.com/processing/processing/issues/4997
298-
@SuppressWarnings("SpellCheckingInspection")
299-
static private void checkDriverBug() {
300-
if (System.getProperty("os.name").contains("Windows 10")) {
301-
new Thread(() -> {
302-
try {
303-
Process p = Runtime.getRuntime().exec("powershell Get-WmiObject Win32_PnPSignedDriver| select devicename, driverversion | where {$_.devicename -like \\\"*nvidia*\\\"}");
304-
BufferedReader reader = PApplet.createReader(p.getInputStream());
305-
String line;
306-
while ((line = reader.readLine()) != null) {
307-
if (line.contains("3.7849")) {
308-
EventQueue.invokeLater(() -> Messages.showWarning("NVIDIA screwed up",
309-
"Due to an NVIDIA bug, you need to update your graphics drivers,\n" +
310-
"otherwise you won't be able to run any sketches. Update here:\n" +
311-
"http://nvidia.custhelp.com/app/answers/detail/a_id/4378\n" +
312-
"or read background about the issue at this link:\n" +
313-
"https://github.com/processing/processing/issues/4853"));
314-
} else if (line.contains("3.8165")) {
315-
EventQueue.invokeLater(() -> Messages.showWarning("NVIDIA screwed up again",
316-
"Due to an NVIDIA bug, you need to update your graphics drivers,\n" +
317-
"otherwise you won't be able to run any sketches. Update here:\n" +
318-
"http://nvidia.custhelp.com/app/answers/detail/a_id/4453/\n" +
319-
"or read background about the issue at this link:\n" +
320-
"https://github.com/processing/processing/issues/4997"));
321-
}
322-
}
323-
} catch (Exception e) {
324-
Messages.err("Problem checking NVIDIA driver", e);
325-
}
326-
}).start();
327-
}
328-
}
329-
*/
330-
331-
332292
/**
333293
* Temporary workaround as we try to sort out
334294
* https://github.com/processing/processing4/issues/231

0 commit comments

Comments
 (0)