Processing and pcduino3b problem

hello!

I have a problem to use processing,
When i run it, the result is :
If you know the issue, thanks a lot !

Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v0.0.0, connection :0.0, unitID 0, handle 0x0, owner true, ResourceToolkitLock[obj 0x1018d42, isOwner true, <1c67ed2, 1f9e632>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518)
    [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [2]: java.lang.Thread.run(Thread.java:748)
Caused[0] by GLException: Failed to created/initialize EGL display incl. fallback default: native 0x0, error 0x3008/0x3000 on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDisplayUtil.eglGetDisplayAndInitialize(EGLDisplayUtil.java:297)
    [1]: jogamp.opengl.egl.EGLDisplayUtil.access$300(EGLDisplayUtil.java:58)
    [2]: jogamp.opengl.egl.EGLDisplayUtil$1.eglGetAndInitDisplay(EGLDisplayUtil.java:320)
    [3]: com.jogamp.nativewindow.egl.EGLGraphicsDevice.open(EGLGraphicsDevice.java:125)
    [4]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:532)
    [5]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516)
    [6]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [7]: java.lang.Thread.run(Thread.java:748)
Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1c91f4b, isOwner true, <c086d1, f781c0>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518)
    [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [2]: java.lang.Thread.run(Thread.java:748)
Caused[0] by GLException: Failed to created/initialize EGL display incl. fallback default: native 0x0, error 0x3008/0x3000 on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDisplayUtil.eglGetDisplayAndInitialize(EGLDisplayUtil.java:297)
    [1]: jogamp.opengl.egl.EGLDisplayUtil.access$300(EGLDisplayUtil.java:58)
    [2]: jogamp.opengl.egl.EGLDisplayUtil$1.eglGetAndInitDisplay(EGLDisplayUtil.java:320)
    [3]: com.jogamp.nativewindow.egl.EGLGraphicsDevice.open(EGLGraphicsDevice.java:125)
    [4]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:532)
    [5]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516)
    [6]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [7]: java.lang.Thread.run(Thread.java:748)
Use surface.setTitle() instead of frame.setTitle in Processing 3
"Arial" is not available, so another font will be used. Use PFont.list() to show available fonts.
NullPointerException

Show your entire code

Sometimes it’s something small like loading before size()

Here the minimum of the code makes this mistake

// Librairies
import java.util.*;
import processing.video.*;
import jp.nyatla.nyar4psg.*;


// Déclaration des objets et des constantes
Capture cam;

// Déclaration des variables globales
String extcam = "/dev/video0";


PFont maPolice;
String[] cameras;



// Initialisations
void setup() 
{

    

  size(1280, 480,P3D); background(200); smooth(); //noLoop();
  
 
  cameras = Capture.list();
  
  if (cameras.length == 0) 

  {
    println("No camera"); 
    exit();
  } 
  else 
  {
    println("cameras:");
    for (int i = 0; i < cameras.length; i++) println(cameras[i]);
  }
  cam=new Capture(this,640,480,extcam); 
  cam.start();
}

// Programme principal
void draw()
{
  

 
  if (cam.available()) cam.read();
  cam.updatePixels(); image(cam,0,0);

  
}

any ideas?

thanks a lot !

What is this import? Are you using it in the provided minimal sketch above? If you remove it, does the error go away?

There are a few additional important details that you need to describe:

What is this other import in your sketch? Description, github link or library webpage? What is this library for? Removing the library resolves the problem?

Second, when you get the error, what line gets highlighted in the Processing editor?

What OS are you using?

The code you provided, beside the alien library, is a standard code available as an example in the PDE so it should work.

Kf