# "Target VM failed to initialize" with P2D & P3D

**URL:** <https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029>\
**Category:** Processing\
**Created:** [May 19, 2023, 8:42am UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029 "2023-05-19T08:42:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-no](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jean-no/32/3352_2.png) [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Post date:** [May 19, 2023, 8:42am UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029/1 "2023-05-19T08:42:44Z")

</div>

Hi there !  
I suddenly have this message :

```auto
Could not run the sketch (Target VM failed to initialize).
For more information, read Help → Troubleshooting.

```

I wish it was more specific.  
It happens only when I ask for P2D or P3D (both in static or dynamic mode), so it seems to be an OPENGL related issue.

After reading many previous forum contributions (like [this one](https://discourse.processing.org/t/when-using-p3d-could-not-run-the-sketch-target-vm-failed-to-initialize/8103), specificaly related to P3D), I see it can be related to fonts, to my graphic driver, to librairies, but there it happens without doing anything (but I might have upgraded my graphic card driver though),… I really don’t have a clue and I’m not sure when I used P3D mode the last time.  
I’m using Processing 4.2 on kubuntu, with a radeon graphics card…  
If anyone has a clue, knows how to get a more specific error message, or has experienced the same problem recently on a similar system, I’m interested to know more !

---

<div class="post-metadata">

**Author:** ![Jean-no](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jean-no/32/3352_2.png) [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Post date:** [May 20, 2023, 4:12pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029/2 "2023-05-20T16:12:58Z")

</div>

So…  
I did a lot of tryouts about my graphic card configuration, and at one point, kubuntu was unable to start at all, except with the shell. I tried a lot of other things, and eventually uninstalled “amdgpu”…  
Now my system works apparently fine, and P2D/P3D works too !  
I didn’t write down seriously each step, so I just can tell I ended up succeding.

---

<div class="post-metadata">

**Author:** ![Aryszin](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Post date:** [May 20, 2023, 7:26pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029/3 "2023-05-20T19:26:31Z")

</div>

you can mark the topic as “solved” 😃

---

<div class="post-metadata">

**Author:** ![sergiF](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sergiF](https://discourse.processing.org/u/sergiF)\
**Post date:** [May 10, 2024, 11:10am UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029/4 "2024-05-10T11:10:00Z")

</div>

hi, i have the same problem. could you explain what archives and how did you uninstall “amdgpu”? because when i’ve search “amdgpu” i’ve found a lot of archives.  
thanks!

---

<div class="post-metadata">

**Author:** ![Jean-no](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jean-no/32/3352_2.png) [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Post date:** [May 10, 2024, 12:05pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029/5 "2024-05-10T12:05:17Z")

</div>

> [@sergiF](#):
>
> amdgpu

AMDgpu is a display driver, wich I apparently uninstalled (I must say I forgot about that story). My operating system is Ubuntu 22.04.

---

<div class="post-metadata">

**Author:** ![sergiF](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sergiF](https://discourse.processing.org/u/sergiF)\
**Post date:** [May 10, 2024, 12:58pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029/6 "2024-05-10T12:58:34Z")

</div>

thanks for your answer. i’ve also got ubuntu 22.04. on an old macbookPro. with GeForce 9600M GT/PCIe/SSE2. i’ve tried to uninstall amdgpu with synaptic but it says that is related to a lot of other archives, so i wonder how can i uninstall it without affecting something else… i’ll keep searching…

---

<div class="post-metadata">

**Author:** ![Jean-no](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jean-no/32/3352_2.png) [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Post date:** [May 10, 2024, 1:06pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029/7 "2024-05-10T13:06:08Z")

</div>

Sorry, when it finaly worked I was happy but I didn’t take notes or dig deeper…  
What I can say is that it finaly works, and that my graphic cards seems to work fine too - 3D is fast,…)

---

<div class="post-metadata">

**Author:** ![sergiF](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sergiF](https://discourse.processing.org/u/sergiF)\
**Post date:** [May 10, 2024, 5:31pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029/8 "2024-05-10T17:31:27Z")

</div>

hi again. this message is for someone reading topic. i uninstalled “undgpu” with synaptic and when i reboot i’ve got a black screen asking for my login … it doesn’t look good… so be carefull with these archives…

---

<div class="post-metadata">

**Author:** ![Jean-no](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jean-no/32/3352_2.png) [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Post date:** [May 10, 2024, 7:05pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029/9 "2024-05-10T19:05:53Z")

</div>

outch!  
I guess you can install Mesa driver

> **[How to Install Mesa Drivers on Ubuntu \[Latest and Stable\]](https://itsfoss.com/install-mesa-ubuntu/)**
>
> This quick tutorial shows the steps to get a newer version of Mesa drivers on Ubuntu, be it stable release or cutting-edge development release.
> 
> 
> 
> 
> 
> 
> What is Mesa?
> 
> 
> 
> 
> 
> Mesa itself is not a graphics card like Nvidia or AMD. Instead, it provides open...
