11

I am running Processing 3.2.4 on Windows 10, and am trying to run a simple 3D program:

void setup(){
   size(1200, 800, P3D);
}

void draw(){  
}

Whenever I try running the program, instead of getting my program window, I am getting a popup with the following error:LoadLibrary failed with error 1114: A dynamic link library (DLL) initialization routine failed.

What does this error mean, and how can I fix it? (I already tried reinstalling Processing). I am running Processing 3.2.4 on Windows 10, and am trying to run a simple 3D program:

void setup(){
   size(1200, 800, P3D);
}

void draw(){  
}

Whenever I try running the program, instead of getting my program window, I am getting a popup with the following error:LoadLibrary failed with error 1114: A dynamic link library (DLL) initialization routine failed.

What does this error mean, and how can I fix it? (I already tried reinstalling Processing).

Edit: After clicking close on the error message, the console prints:

Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help ? Troubleshooting.

The default graphics renderer works. Restarting my computer or moving the installation to another folder hasn't worked either.

Kevin Workman
  • 41,537
  • 9
  • 68
  • 107
DarkHorse
  • 963
  • 1
  • 10
  • 28
  • Does any more information show up in the console area? (Maybe a bunch of red text?) Have you tried the simple stuff like restarting your computer? Does the default renderer work? Have you tried moving the Processing installation to a different directory? – Kevin Workman Feb 08 '17 at 03:46
  • Just edited the question. I have tried my ProgramFiles folder, Desktop, and Downloads. Run as Administrator still gives the same error. – DarkHorse Feb 08 '17 at 03:49
  • Turn on [loader snaps](https://blogs.msdn.microsoft.com/junfeng/2006/11/20/debugging-loadlibrary-failures/) to get details on the loading process. – Raymond Chen Feb 11 '17 at 01:45
  • It's going to be pretty hard to help you, since this problem is specific to your computer. But if I were you I might try using Processing as a library and seeing if the natives load if you run that way. – Kevin Workman Feb 13 '17 at 01:39
  • @KevinWorkman how do I do that? – DarkHorse Feb 14 '17 at 00:23
  • @Shiven https://processing.org/tutorials/eclipse/ – Kevin Workman Feb 14 '17 at 01:23
  • @KevinWorkman I still get the same error. – DarkHorse Feb 15 '17 at 23:35
  • @Shiven Okay, now it's a matter of figuring out which native fails to load. What happens if you don't load any of them? Then add them back one at a time until something breaks, and you'll know which one is the culprit. – Kevin Workman Feb 16 '17 at 02:14

1 Answers1

4

I'm not sure why this works, but go to Battery Power plans, and edit the Switchable Dynamic Graphics -> Global Setting inside the advanced power plan settings and set both of the options to Maximize Performance.

DarkHorse
  • 963
  • 1
  • 10
  • 28