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

Segmentation fault (core dumped) when few video frames #66

Open
makecent opened this issue Jul 29, 2022 · 7 comments
Open

Segmentation fault (core dumped) when few video frames #66

makecent opened this issue Jul 29, 2022 · 7 comments

Comments

@makecent
Copy link

makecent commented Jul 29, 2022

My denseflow running always abort with error Segmentation fault (core dumped) at the middle of task.

I investigated the error information, and found that it always happens when the number of frames of current video is small.

Below are three error examples:

...
"abseiling/qqJisE6m6XI_000000_000010.mp4", frames ≈ 360                                              
push frames gray, video_flow_idx 0, batch_size 360                                                   
loaded video "abseiling/qqJisE6m6XI_000000_000010.mp4", 360 frames                                   
"abseiling/rseBvhN6dio_000003_000013.mp4", frames ≈ 300                                              
push frames gray, video_flow_idx 0, batch_size 300                                                   
loaded video "abseiling/rseBvhN6dio_000003_000013.mp4", 300 frames
"abseiling/xjhF2VEkh0E_000210_000220.mp4", frames ≈ 360
push frames gray, video_flow_idx 0, batch_size 360 
loaded video "abseiling/xjhF2VEkh0E_000210_000220.mp4", 360 frames
"abseiling/xnyOA58A07Q_000127_000137.mp4", frames ≈ 360
push frames gray, video_flow_idx 0, batch_size 360 
loaded video "abseiling/xnyOA58A07Q_000127_000137.mp4", 360 frames
"abseiling/y3-3i88mNPc_000008_000018.mp4", frames ≈ 78
frames_gray_queue full, waiting...
done video "abseiling/p1VKQa4N-hg_000000_000010"
push frames gray, video_flow_idx 0, batch_size 0
Segmentation fault (core dumped)

...
push frames gray, video_flow_idx 0, batch_size 341
loaded video "changing_wheel/0PAZuNazXY0_000106_000116.mp4", 341 frames
"changing_wheel/3QhnzaOGtJY_000177_000187.mp4", frames ≈ 288
frames_gray_queue full, waiting...
done video "changing_oil/yQN2Jex1ie0_000343_000353"
push frames gray, video_flow_idx 0, batch_size 288
loaded video "changing_wheel/3QhnzaOGtJY_000177_000187.mp4", 288 frames
"changing_wheel/49Cbc4YnJTE_000017_000027.mkv", frames ≈ 362
frames_gray_queue full, waiting...
done video "changing_oil/zc1eRTWvmKg_000041_000051"
push frames gray, video_flow_idx 0, batch_size 360
loaded video "changing_wheel/49Cbc4YnJTE_000017_000027.mkv", 360 frames
"changing_wheel/6UzqR0nlhPU_000104_000114.mp4", frames ≈ 92
frames_gray_queue full, waiting...                                                                   
done video "changing_wheel/-sw4w8ht36s_000386_000396"
push frames gray, video_flow_idx 0, batch_size 0
Segmentation fault (core dumped)

...
"drinking/bqrIi_jBOKI_000009_000019.mp4", frames ≈ 120            
push frames gray, video_flow_idx 0, batch_size 120         
loaded video "drinking/bqrIi_jBOKI_000009_000019.mp4", 120 frames            
"drinking/caFV09HNzzI_000023_000033.mp4", frames ≈ 228                       
push frames gray, video_flow_idx 0, batch_size 228                
loaded video "drinking/caFV09HNzzI_000023_000033.mp4", 228 frames            
"drinking/cnUjmGyYRmE_000089_000099.mkv", frames ≈ 289            
push frames gray, video_flow_idx 0, batch_size 287                                                   
loaded video "drinking/cnUjmGyYRmE_000089_000099.mkv", 287 frames            
"drinking/ecFPS0Ayhh0_000044_000054.mkv", frames ≈ 302                       
push frames gray, video_flow_idx 0, batch_size 300                
loaded video "drinking/ecFPS0Ayhh0_000044_000054.mkv", 300 frames   
"drinking/gDvxSxb3WuE_000188_000198.mp4", frames ≈ 90      
frames_gray_queue full, waiting...                                                                   
push frames gray, video_flow_idx 0, batch_size 0                                                     
Segmentation fault (core dumped)  

Emperically, it seems to happen when the video frames is less than 100?
I had tried turn down the batch_size to from 512 to 64, and it does NOT help.

@dingfengshi
Copy link

I have the same question...

@makecent
Copy link
Author

makecent commented Aug 22, 2022

I cannot say this is a solution -- but changing a computer solving my problem -- at least it proves it's not about my videos.

Actually, I kind of forcely install denseflow on the computer with this error. I encountered numerous problems and solved them one by one. While on the new computer, the installation is quite smooth and the denseflow just works well.

@jasorsi13
Copy link

getting the same seg fault

@jasorsi13
Copy link

I was facing segmentation fault core dump as It was writing the images back to disk. This worked.

import imageio ###conda install -c conda-forge imageio
replace all cv2.imwrite() or scipy.misc.imsave() to imageio.imwrite()
This is a mutex issue in new opencv releases. Always use imageio to write images back to the disk.

@jiaqingxiang111
Copy link

Segmentation fault (core dumped)

@jiaqingxiang111
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

@yuxi120407
Copy link

I have the same issue. Anybody could help?

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

5 participants