bytedeco/javacv

JVM crash error

Offen

#2.070 geöffnet am 24.07.2023

 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (1.583 Forks)batch import
help wantedquestion

Repository-Metriken

Stars
 (6.985 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Pseudocode

public class Demo {
   private final static OpenCVFrameConverter.ToMat converter = new OpenCVFrameConverter.ToMat();
    public static void main(String[] args) throws Exception {
                      FFmpegFrameGrabber grabber = new FFmpegFrameGrabber("test.mp4")
                      grabber.start();
                      Frame img = null;
                      while((img = grabber.grabImage()) !=null ) {
                          Mat mat = converter.convert(img);
                          //todo do something
                      }
     }
}

description

It worked very well at first, and I would repeat this logic over and over again, and immediately after a while, the JVM crashed, and here is the screenshot

screenshots

Contributor Guide