Open hamoid opened 3 years ago
This is probably related to #166 - the code for direct to texture was not correctly updated for GStreamer 1.x.
Thank you Neil for taking the time to comment :)
@hamoid well, you know where you can find integration with GStreamer 1.x that works correctly :wink:
Looking at your stack trace, the problem is probably at https://github.com/processing/processing/blob/master/core/src/processing/opengl/Texture.java#L827 - usedBuffers
can be null there. Needs fixing when 166 is fixed or it will cause a native memory leak.
Thanks @neilcsmith-net , I was just informing for other users and developers. I think we both have found a way to avoid such issues :-)
@hamoid good to hear! Yes, same, trying to document the key areas where interaction between the video library and GStreamer 1.x / gst1-java-core are failing - do keep a loose eye on issues here (as with other users) in case they're pointers to upstream bugs.
Hi,
In my current program (3 midi controllers, one webcam, one video file, loading meshes, a web server, OSC) I see a bunch of NPEs in the console printed by Capture.
The program works fine, but the console is quite full and red because of jogamp warnings, jetty being noisy and now the following shown 8 times:
Since it was shown 8 times I wondered if it was related to 8 frames, so I added
if(frameCount > 10)
around the webcam.read()
and "draw" and those errors are gone. Something to do with slow start up of my program?