When using P3D: "Could not run the sketch (Target VM failed to initialize)"

Hi, since about a week I’m not able to run any sketches anymore in P3D mode on my Windows machine with Intel i5 6200U and HD 520 onboard graphics card. It has probably to do with the graphics driver after an automatic Windows Update but I can’t find a solution for it. I tried different versions of Processing (from 3.5.3 back to 3.4). I tried other versions of the graphics driver without luck so far.

Any ideas?

Hi,
I am having the same error with my processing now. Did you fix this? If so can you give some hint?
Thank you so much!

ohhhh I know why, I was using the 32bit version, after download 64-bit version, it now works fine

1 Like

Last time I checked (a week ago) the problem still persisted. I will check if your solution works for me. The weird thing is that it worked fine until at some day it stopped working.

I had similar issues.

It improved with:

  • have size() as first line in setup () and nothing before

  • especially don’t load anything before setup and before size

  • don’t use createFont loadFont and anything to do with the hard drive before setup and before size

  • restart processing or computer

Best, Chrisir

I suspect that if you used

void settings(){
  size(200, 200, P3D);
}

rather than declare size in setup, processing pre-processes the size from setup (if first line in setup) to settings anyway.

You would be OK

In JRubyArt I do this because its actually quite simple to do.

same problem !how to fix it
win 10
.gtx 2080max q
…* NVIDIA 26.21.14.4219
processing 3.5.4

i try them all
not worked :sob:

thanks i fix it!thanks