OpenCV Error: Null pointer

asked 2014-10-17 13:21:34 -0600

Chintan gravatar image

updated 2014-10-17 22:28:21 -0600

C:\fakepath\opencv_error.PNG

Hey, i am working on openfabmap project and i am trying to run that in visual studio 2008 as told in readmefile in project.i done all the step correctly but that show me error about null pointer.

i think this error is about the setting.yml file but i am not able to solve this error.

i am using opencv 2.4.9

Error is " OpenCV Error:Null pointer <null or="" empty="" buffer=""> in cvOpenFileStorage,file ........\opencv\modules\core\src\persistence.cpp, line 2697"

edit retag flag offensive close merge delete

Comments

can you replace your screenshot with error txt, please ?

berak gravatar imageberak ( 2014-10-17 13:29:46 -0600 )edit

error is "OpenCV Error:Null pointer <NULL or empty buffer> in cvOpenFileStorage,file ........\opencv\modules\core\src\persistence.cpp, line 2697"

Chintan gravatar imageChintan ( 2014-10-17 22:29:18 -0600 )edit

I'm also getting the same error.

OpenCV Error: Null pointer (NULL or empty buffer) in cvOpenFileStorage, file /Users/vp/work/opencv/modules/core/src/persistence.cpp, line 2665 libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /Users/vp/work/opencv/modules/core/src/persistence.cpp:2665: error: (-27) NULL or empty buffer in function cvOpenFileStorage

Pradeep C gravatar imagePradeep C ( 2014-10-31 15:19:09 -0600 )edit

I experienced the same error repeatedly. Any info on how to fix it would be greatly appreciated it.

When compiling "cascadeclassifier.cpp" in the "/opencv/samples/gpu" folder on OpenCV (up-to-date master branch) with NVIDIA6.5 on XCode6.1, OSX 10.9.5, I get the following ERROR:

... OpenCV Error: Null pointer (NULL or empty buffer) in cvOpenFileStorage, file .../src/persistence.cpp, line 2665 libc++abi.dylib: terminating with uncaught exception of type cv::Exception: .../src/persistence.cpp:2665: error: (-27) NULL or empty buffer in function cvOpenFileStorage

In contrast, non-CUDA face detection code loads XML files (defined as "const String filename") without ERROR and CUDA sample "morphology.cpp" builds/runs perfectly fine (no errors).

cvfan gravatar imagecvfan ( 2014-11-03 17:05:58 -0600 )edit