justadudewhohacks / justadudewhohacks/opencv4nodejs

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

Open
#628 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.