Strange behavior loading video files from data path

I’m making a script that mixes different videos on screen. The script works if I load the videos from the “data” path, but if i use subfolders like “data/something” I get an error (despite the files are loading correctly):

finishLifecycleAction(com.jogamp.opengl.util.FPSAnimator$3): ++++++ timeout reached ++++++ main-FPSAWTAnimator#00-Timer0
finishLifecycleAction(com.jogamp.opengl.util.FPSAnimator$3): OK false- pollPeriod 27, blocking true -> res false, waited 1001/1000 - main-FPSAWTAnimator#00-Timer0
 - com.jogamp.opengl.util.FPSAnimator[started true, animating true, paused false, drawable 1, totals[dt 0, frames 0, fps 0.0], modeBits 1, init'ed true, animThread Thread[main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1,5,main], exclCtxThread false(null)]
    [2]: com.jogamp.opengl.util.AnimatorBase.finishLifecycleAction(
    [3]: com.jogamp.opengl.util.FPSAnimator.stop(
    [4]: processing.opengl.PSurfaceJOGL.stopThread(
    [5]: processing.core.PApplet.dispose(
    [6]: processing.core.PApplet.die(
    [7]: processing.core.PApplet.die(
    [8]: Source)
    [9]:<init>(Unknown Source)
    [10]: sonusmap2.cargavideos(
    [11]: sonusmap2.setup(
    [12]: processing.core.PApplet.handleDraw(
    [13]: processing.opengl.PSurfaceJOGL$DrawListener.display(
    [14]: jogamp.opengl.GLDrawableHelper.displayImpl(
    [15]: jogamp.opengl.GLDrawableHelper.display(
    [16]: jogamp.opengl.GLAutoDrawableBase$
    [17]: jogamp.opengl.GLDrawableHelper.invokeGLImpl(
    [18]: jogamp.opengl.GLDrawableHelper.invokeGL(
    [19]: com.jogamp.newt.opengl.GLWindow.display(
    [20]: com.jogamp.opengl.util.AWTAnimatorImpl.display(
    [21]: com.jogamp.opengl.util.AnimatorBase.display(
    [22]: com.jogamp.opengl.util.FPSAnimator$
    [23]: java.util.TimerThread.mainLoop(

The script to load from folder is a very common one (and is working in both cases):

String[] files(){

// The data path of the folder to look in (write your own) folder = new;
// let's set a filter (which returns true if file's extension is .jpg) pngFilter = new {
  public boolean accept(File dir, String name) {
    return name.toLowerCase().endsWith(".mp4");
// list all the folders inside the main directory
String[] listFolders = folder.list(new {
  public boolean accept(File current, String name) {
    return new File(current, name).isDirectory();
// list the files in the data folder, passing the filter as parameter
String[] filenames = folder.list(pngFilter);


Any ideas? Somehow opengl won’t like files from a location different to “data”. This is nuts.

1 Like