opencv4nodejs
opencv4nodejs copied to clipboard
Help: new cv.VideoCapture(videoPath) crash in electron 5
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?
Is now the problem solved?