Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about Segmentation fault (core dumped) #50

Open
ADstudyer opened this issue Nov 10, 2021 · 7 comments
Open

Questions about Segmentation fault (core dumped) #50

ADstudyer opened this issue Nov 10, 2021 · 7 comments

Comments

@ADstudyer
Copy link

Hello author! I downloaded denseflow through your link, and an exception was thrown when using “denseflow videolist.txt -s=0 -v”:
"/home/developers/xianyun/anaconda3/envs/pt/lib/python3.6/site-packages/denseflow/build/video0.avi", frames ≈ 300
Segmentation fault (core dumped).

When I extract a single video frame, run “denseflow test.avi -b=20 -a=tvl1 -s=1 -v”:
"video0.avi", frames ≈ 300
push frames gray, video_flow_idx 0, batch_size 300
loaded video "video0.avi", 300 frames
load frames exit.
Segmentation fault (core dumped)

I tried to change many avi files, but still failed with the same error.

The followings are the Installation process:
(pt) xianyun@zhangd3:/home/developers/xianyun/anaconda3/envs/pt/lib/python3.6/site-packages/denseflow/build$ cmake -DCMAKE_INSTALL_PREFIX=/home/develoDF5=no -DUSE_NVFLOW=no ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda-9.0 (found version "9.0")
-- Found OpenCV: /home/developers/xianyun/anaconda3/envs/pt (found version "3.4.10")
-- OpenCV library status:
-- config: /home/developers/xianyun/anaconda3/envs/pt/share/OpenCV
-- version: 3.4.10
-- libraries: opencv_calib3d;opencv_core;opencv_cudaarithm;opencv_cudabgsegm;opencv_cudacodec;opencv_cudafeatures2d;opencv_cudafilters;opencv_cudabjdetect;opencv_cudaoptflow;opencv_cudastereo;opencv_cudawarping;opencv_cudev;opencv_dnn;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecetect;opencv_photo;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;opencv_videostab;opencv_aruco;opencv_bgsegm;opencv_bioinsencv_dnn_objdetect;opencv_dpm;opencv_face;opencv_freetype;opencv_fuzzy;opencv_hdf;opencv_hfs;opencv_img

-- libraries: /usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_regex.so
-- include path: /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/developers/xianyun/anaconda3/envs/pt/lib/python3.6/site-packages/denseflow/build
(pt) xianyun@zhangd3:/home/developers/xianyun/anaconda3/envs/pt/lib/python3.6/site-packages/denseflow/build$ make -j
[ 16%] Building CXX object CMakeFiles/zzdenseflow.dir/src/common.cpp.o
[ 33%] Building CXX object CMakeFiles/zzdenseflow.dir/src/denseflow_gpu.cpp.o
[ 50%] Building CXX object CMakeFiles/zzdenseflow.dir/src/utils.cpp.o
[ 66%] Linking CXX static library libzzdenseflow.a
[ 66%] Built target zzdenseflow
[ 83%] Building CXX object CMakeFiles/denseflow.dir/tools/denseflow.cpp.o
[100%] Linking CXX executable denseflow
[100%] Built target denseflow
(pt) xianyun@zhangd3:/home/developers/xianyun/anaconda3/envs/pt/lib/python3.6/site-packages/denseflow/build$ make install
Consolidate compiler generated dependencies of target zzdenseflow
[ 66%] Built target zzdenseflow
Consolidate compiler generated dependencies of target denseflow
[100%] Built target denseflow
Install the project...
-- Install configuration: ""
-- Installing: /home/developers/xianyun/anaconda3/envs/pt/bin/denseflow
-- Set runtime path of "/home/developers/xianyun/anaconda3/envs/pt/bin/denseflow" to ""
-- Installing: /home/developers/xianyun/anaconda3/envs/pt/lib/libzzdenseflow.a

Please give me some advice, thank you!

@innerlee
Copy link
Contributor

I have no clue... from the above info.

lib/python3.6/site-packages/denseflow/

Maybe it loads the wrong library. Try to re-compile&install everything without anaconda python environments and without the anaconda3/bin at the PATH. Anaconda interferes with the package compilation from my experience. But its just based on guessing

@ADstudyer
Copy link
Author

Thank you, I followed your suggestion to configure the environment from the beginning outside anaconda, but according to your denseflow link, the installation is still not successful, and other tutorials are indeed successful. There are too many experiences that are difficult to describe. Interference between environments may be the biggest problem. Thank you again, it took me a lot of time to install denseflow.

@YuLengChuanJiang
Copy link

@innerlee @ADstudyer I also encountered a similar problem, which occurs when the frame count is low. Can you share your solution?

QQ截图20230925213652

@qingxiangjia
Copy link

denseflow test.avi -b=20 -a=tvl1 -s=1 -v Segmentation fault (core dumped) Hello, I have been experiencing this error for a day and it has not been resolved yet. Thank you very much 我也遇到这个问题了能帮忙解决一下吗

@YuLengChuanJiang
Copy link

YuLengChuanJiang commented Nov 26, 2023 via email

@qingxiangjia
Copy link

image
您好我这错误怎么解决呢?Hello, I have been experiencing this error for a day and it has not been resolved yet. Thank you very much

@qingxiangjia
Copy link

谢谢,我按照你的建议从anaconda外面开始配置环境,但是根据你的denseflow链接,安装还是不成功,其他教程确实成功了。有太多的经历很难描述。环境之间的干扰可能是最大的问题。再次感谢您,我花了很多时间来安装denseflow。

image
您好您怎么解决错误的链接辛苦发一下可以吗,Hello, I have been experiencing this error for a day and it has not been resolved yet. Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants