Crashing when streaming

Support and queries relating to all previous versions of ZoneMinder
Locked
ryan_marsh
Posts: 13
Joined: Wed May 09, 2007 6:50 pm

Crashing when streaming

Post by ryan_marsh »

I get the following when trying to play an event stream. I compiled ZM with ffmpeg. It looks to me that zms is actually generating the error. Has anyone seen this before?

Code: Select all

May 14 01:03:06 localhost zms[20264]: FAT [Error while writing video frame]
May 14 01:03:06 localhost zms[20264]: ERR [Got signal (Aborted), crashing]
May 14 01:03:06 localhost zms[20264]: ERR [Signal address is (nil), from 0x669402 ]
May 14 01:03:06 localhost zms[20264]: ERR [Backtrace: [0x669402]]
May 14 01:03:06 localhost zms[20264]: ERR [Backtrace: [0x669402]]
May 14 01:03:06 localhost zms[20264]: ERR [Backtrace: /lib/libc.so.6(gsignal+0x50) [0x2bad40]]
May 14 01:03:06 localhost zms[20264]: ERR [Backtrace: /lib/libc.so.6(abort+0x101) [0x2bc591]]
May 14 01:03:06 localhost zms[20264]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x8071498]]
May 14 01:03:06 localhost zms[20264]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x806fb2a]]
May 14 01:03:06 localhost zms[20264]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x8055e53]]
May 14 01:03:06 localhost zms[20264]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x804b0fc]]
May 14 01:03:06 localhost zms[20264]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x2a7f2c]]
May 14 01:03:06 localhost zms[20264]: ERR [Backtrace: /var/www/cgi-bin/nph-zms(__gxx_personality_v0+0x229) [0x804a5e1]]
May 14 01:03:06 localhost zms[20266]: FAT [Error while writing video frame]
May 14 01:03:06 localhost zms[20266]: ERR [Got signal (Aborted), crashing]
May 14 01:03:06 localhost zms[20266]: ERR [Signal address is (nil), from 0x1fd402 ]
May 14 01:03:06 localhost zms[20266]: ERR [Backtrace: [0x1fd402]]
May 14 01:03:06 localhost zms[20266]: ERR [Backtrace: [0x1fd402]]
May 14 01:03:06 localhost zms[20266]: ERR [Backtrace: /lib/libc.so.6(gsignal+0x50) [0x5b8d40]]
May 14 01:03:06 localhost zms[20266]: ERR [Backtrace: /lib/libc.so.6(abort+0x101) [0x5ba591]]
May 14 01:03:06 localhost zms[20266]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x8071498]]
May 14 01:03:06 localhost zms[20266]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x806fb2a]]
May 14 01:03:06 localhost zms[20266]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x8055e53]]
May 14 01:03:06 localhost zms[20266]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x804b0fc]]
May 14 01:03:06 localhost zms[20266]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x5a5f2c]]
May 14 01:03:06 localhost zms[20266]: ERR [Backtrace: /var/www/cgi-bin/nph-zms(__gxx_personality_v0+0x229) [0x804a5e1]]
I've tried all different manner of stream types for ZM_MPEG_REPLAY_FORMAT with no luck. Oddly, ffmpeg works just fine when generating a video. The problem only exists when streaming.
bidou.bidou
Posts: 1
Joined: Tue Apr 01, 2008 3:01 pm

same problems with ZoneMinder 1.23.2

Post by bidou.bidou »

Apr 1 16:35:05 lsdjsf zms[8769]: ERR [Got signal (Aborted), crashing]
Apr 1 16:35:05 lsdjsf zms[8767]: ERR [Signal address is (nil), from 0xffffe410 ]
Apr 1 16:35:05 lsdjsf zms[8769]: ERR [Signal address is (nil), from 0xffffe410 ]
Apr 1 16:35:05 lsdjsf zms[8769]: ERR [Backtrace: [0xffffe410]]
Apr 1 16:35:05 lsdjsf zms[8769]: ERR [Backtrace: [0xffffe410]]
Apr 1 16:35:05 lsdjsf zms[8769]: ERR [Backtrace: /lib/i686/libc.so.6(gsignal+0x55) [0xb75365d5]]
Apr 1 16:35:05 lsdjsf zms[8769]: ERR [Backtrace: /lib/i686/libc.so.6(abort+0x101) [0xb7538021]]
Apr 1 16:35:05 lsdjsf zms[8769]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x8070ee7]]
Apr 1 16:35:05 lsdjsf zms[8769]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x806f0a8]]
Apr 1 16:35:05 lsdjsf zms[8769]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x80659ef]]
Apr 1 16:35:05 lsdjsf zms[8769]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x8068068]]

addr2line -e /var/www/cgi-bin/nph-zms 0x8070ee7 0x806f0a8 0x80659ef 0x8068068 0x804b225
ZoneMinder-1.23.2/src/zm_debug.c:355
ZoneMinder-1.23.2/src/zm_mpeg.cpp:381
ZoneMinder-1.23.2/src/zm_monitor.cpp:2890
ZoneMinder-1.23.2/src/zm_monitor.cpp:3092
ZoneMinder-1.23.2/src/zms.cpp:315

If I delete the abort line in zm_debug.c I obtain
the following message
Apr 1 17:00:32 lsdjsf zms[9360]: FAT [Error while writing video frame]

So it seems the error is in the av_write_frame call (but I don't know how to use libavcodec so I can't debug)
System: Mandriva 2008.1 rc 2, i586,
ffmpeg-0.4.9-3.pre1.11599.2plf2008.1
(ie FFmpeg version SVN-r11599)
Locked