bgslibrary icon indicating copy to clipboard operation
bgslibrary copied to clipboard

Aborted (core dumped) in GUI-qt after pressing on start

Open arasharchor opened this issue 7 years ago • 2 comments
trafficstars

My system is;

ubuntu 16.04 opencv 3.4.1 qt 5.10.1

--------------------------------------------
Background Subtraction Library v2.0.0       
https://github.com/andrewssobral/bgslibrary 
by:                                         
Andrews Sobral ([email protected])    
--------------------------------------------
Using OpenCV version 3.4.1
Selected algorithm: DPMean
Looking for: ./config/DPMean.xml
Openning: ./dataset/video.avi

(bgslibrary_gui:16740): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed
GStreamer: Error opening bin: no source element for URI "./dataset/video.avi"
Cannot open video file ./dataset/video.avi
Openning: /home/majid/bgslibrary/dataset/video.avi
capture_fps: 30
capture_length: 374
OK!
DPMean()
OpenCV(3.4.1) Error: Null pointer (Invalid pointer to file storage) in cvWriteInt, file /home/majid/opencv/modules/core/src/persistence_c.cpp, line 859
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(3.4.1) /home/majid/opencv/modules/core/src/persistence_c.cpp:859: error: (-27) Invalid pointer to file storage in function cvWriteInt

Aborted (core dumped)

arasharchor avatar Mar 11 '18 19:03 arasharchor

Hi @smajida , I am sorry for my very long feedback, This error occurs when the config folder doesn't exist. You need to put the qt_gui executable in the root folder of bgslib e.g. ./bgslibrary/bgslibrary_qtgui

andrewssobral avatar Aug 20 '18 12:08 andrewssobral

Please see this recent video:

Build & Execute BGSLibrary QT GUI on MacOSX using CMake

https://youtu.be/vl0c-mXWQEo

andrewssobral avatar Aug 20 '18 13:08 andrewssobral