I have programed the node.js plug-in(add-on) code, which called c++/OpenCV’s cv::FileStorage to open the XML file.(See below code)
And it is compiled successfully, but ran an error at cv::FileStorage.open() in Node.js version more than v14,
prompting a message “Segmentation fault (core dumped)”.
But it is success to be running at cv::FileStorage.open() in Node.js version v12.18.2.
Namely,
1.In the case of Node.js v16.15.1, “Segmentation fault” has occured at fs.open().
2.In the case of Node.js v14.17.6, “Segmentation fault” has occured at fs.open().
3.In the case of Node.js v12.18.2, the code is running normally with no “Segmentation fault”.
Question:
I want to get the c++/OpenCV code be running normally in latest version of Node.js without “Segmentation fault”.
How should I do in order to request for the fix and improvement of Node.js modules or OpenCV modules in terms of cv::FileStorage()'s “Segmentation fault”
to the package’s maintainer?
----C++(OpenCV) side program:
cv::FileStorage fs;
try{
puts(“Doing fs.open() at try{}.”);
bool flg_ok = fs.open(“./haarcascade_frontalface_alt.xml”, cv::FileStorage::READ); // Segmentation fault (core dumped)
puts(flg_ok?“ok”:“fail”);
}catch(cv::Exception ex)
{
puts(“Catch Exception!!”);
puts(ex.what());
}
My environment :
OS: Ubuntu18.04
OpenCV: version4.5.3
node-gyp@9.0.0
Node.js: version node@16.15.1, @14.17.6, @12.18.2