Opencv 3.4.1 FileStorage crash on Android

asked 2018-05-23 04:12:49 -0500

dtxtmnt gravatar image

updated 2018-05-23 04:30:08 -0500

I upgrade from Opencv 3.2 to 3.4.1. However, the filestorage functions cannot work any more. The app crash when step over the filestorage functions. If I change back to 3.2.0, this problem just disappear. I do not know how to fix this problem in 3.4.1

std::string filename = "/sdcard/test.yml";

cv::FileStorage fs(filename, cv::FileStorage::WRITE);
fs << "iterationNr" << "xyz";
fs.release();

The crash messages:

A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xd29800b4 in tid 28996 (d.cvfilestorage), pid 28996 (d.cvfilestorage)

edit retag flag offensive close merge delete

Comments

exact errormsg ? where does it crash ? where do you use the filestorage ?

berak gravatar imageberak ( 2018-05-23 04:15:00 -0500 )edit

which version of android are you working with? 8.1?

Ella Feng gravatar imageElla Feng ( 2018-05-23 05:04:31 -0500 )edit