plugdata icon indicating copy to clipboard operation
plugdata copied to clipboard

Raspbian 12: could not initialise nvg

Open alexmlucas opened this issue 9 months ago • 8 comments

I installed Plugdata 0.9.1 on Raspbian 12 via the binary package. When I run Plugdata the canvas is black and I cannot see any objects I create.

In the terminal window I see the following message

could not initialise nvg
Shader shader/vert error:

When I quit Plugdata I get the following additional message in the terminal.

JUCE Assertion failure in juce_OpenGLContext.cpp:690

Any help would be very much appreciated!

Image

alexmlucas avatar Apr 08 '25 15:04 alexmlucas

Which Raspberry Pi do you have? the minimum requirement is one that has OpenGL 3 support.

dromer avatar Apr 08 '25 16:04 dromer

This was a RPi 500, but I also encountered the same problem on a RPi 5 also running Raspbian 12. Seemingly these models support OpenGL ES 3.0 and 3.1 respectively. I was reading that ES is an acronym for Embedded Systems. According to Wikipedia this is a subset of OpenGL. Could that be an issue?

alexmlucas avatar Apr 08 '25 19:04 alexmlucas

Afaik plugdata should be able to run on those!

I don't have one myself to help test, but I assume you maybe need to install some additional tools to make it work.

dromer avatar Apr 08 '25 20:04 dromer

v0.9.2 will have Raspberry PI working again I believe...

carthach avatar Apr 15 '25 19:04 carthach

I have the same issu with my CM4 module on v0.9.1

daveclavsell avatar Apr 17 '25 19:04 daveclavsell

v0.9.2 will have Raspberry PI working again I believe...

Is there any detail on when the repos will be updated to v0.9.2 for all of the distro's package managers?

headstrongsolutions avatar May 02 '25 12:05 headstrongsolutions

@headstrongsolutions v0.9.2 is not released yet. There is no set date of when this will happen.

dromer avatar May 02 '25 13:05 dromer

Hello, I'm having the same problem with a raspberry pi 4. I tried rapsbian 11, raspbian 12, x11 or wayland on both. Plugdata runs but doesn't display the patches, same error in the terminal :

could not initialise nvg Shader shader/vert error:

is there any solution ?

leopoldfrey avatar Jun 16 '25 15:06 leopoldfrey

This is now fixed!

If you build from source, you'll need to add the -DNANOVG_GLES_IMPLEMENTATION=1 flag to cmake.

Or, you can download the "Debian (aarch64)" build from here: https://plugdata.org/download.html, at the bottom of the page. This has been confirmed to work on Rpi too!

timothyschoen avatar Jul 15 '25 14:07 timothyschoen

Unfortunately this is still and issue for me both with 0.9.2 via the "Add repository and install manually option" and the latest Debian (aarch64) build 11b5050

alexmlucas avatar Sep 24 '25 21:09 alexmlucas

Would it be possible to reopen this issue please @timothyschoen ?

alexmlucas avatar Oct 01 '25 08:10 alexmlucas

Would it be possible to reopen this issue please @timothyschoen ?

Are you using X11 or Wayland? I've heard JUCE has some issues with openGLES and Wayland, so perhaps using X11 will fix it?

timothyschoen avatar Oct 01 '25 16:10 timothyschoen

Thanks for your response. I've now tested both X11 and Wayland. Unfortunately the issue persists with both.

alexmlucas avatar Oct 05 '25 21:10 alexmlucas

I've now managed to resolve the issue! I'm using Raspberry Pi OS 13 Trixie on a Raspberry Pi 5. To get this to work on my machine, I switched to X11 via raspi-conifg. I then run plugdata from the terminal using the following command

LIBGL_ALWAYS_SOFTWARE=1 plugdata

alexmlucas avatar Oct 08 '25 08:10 alexmlucas