opencv4nodejs icon indicating copy to clipboard operation
opencv4nodejs copied to clipboard

Help: new cv.VideoCapture(videoPath) crash in electron 5

Open chengyingyuan opened this issue 5 years ago • 1 comments

I tried latest opencv4nodejs (^5.2.0) with electron ^1.8.4, it goes well as https://github.com/justadudewhohacks/opencv-electron does. But when I upgraded electron to ^5.0.10, it crashed suddenly. My system is ubuntu 18.04 with opencv 4.1.1. The source line which crashed renderer process as following:

var cap = new cv.VideoCapture(videoPath);

If i replace it with:

var cap = new cv.VideoCapture(0);

Everything is OK.

I also tried opencv4nodejs for nodejs 10.16.0. It works perfectly.

So I guess the crash is related to electron ^5.0.10 only, which ships a nodejs 12.0 with node module version 70. I don't know how to resolve it. Should I build a debug electron to debug opencv4nodejs? It is a bit challenge to me.

The crash has bothered me two days. Any hint?

chengyingyuan avatar Sep 11 '19 14:09 chengyingyuan

Is now the problem solved?

yinwuyang avatar Jun 30 '21 09:06 yinwuyang