mjpg-streamer icon indicating copy to clipboard operation
mjpg-streamer copied to clipboard

Cleaning up resources allocated by server thread - Hang

Open victorromeo opened this issue 5 years ago • 4 comments

When I create a stream using input_file, and I issue a termination using ctrl-c combination on the keyboard, the service hangs rather than closes. Thoughts?

mjpg_streamer -o 'output_http.so -w ./www' -i 'input_file.so -f /home/pi/Service/capture/photo'
MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
 i: folder to watch...: /home/pi/Service/capture/photo/
 i: forced delay......: 1.0000
 i: delete file.......: no, do not delete
 i: filename must be..: -no filter for certain filename set-
 o: www-folder-path......: ./www/
 o: HTTP TCP port........: 8080
 o: HTTP Listen Address..: (null)
 o: username:password....: disabled
 o: commands.............: enabled
q
^Csetting signal to stop
force cancellation of threads and cleanup resources
 o: cleaning up resources allocated by server thread #00

victorromeo avatar Feb 09 '20 01:02 victorromeo

On "uname -a" Linux agtech01 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux

victorromeo avatar Feb 09 '20 01:02 victorromeo

Doesn't seem to occur if the server is closed soon after starting (30 seconds)

victorromeo avatar Feb 09 '20 01:02 victorromeo

This is related to/referenced by issue #182 - the solution referenced there was to migrate to a different application. Unfortunately not really a solution for those of us who want to keep using this one...

bpengu1n avatar May 08 '20 14:05 bpengu1n

I am experiencing this as well.

bvitaz-ck avatar Mar 01 '22 06:03 bvitaz-ck