Any outstanding issues?

Forum for questions and support relating to the 1.24.x releases only.
szimszon
Posts: 26
Joined: Mon Nov 27, 2006 8:41 pm

zms err got big negative fps at jpeg live streaming &sta

Post by szimszon »

Hi!

I wonder if somebody could help me!

I recently installed 1.24beta (ZoneMinder-1.24.0-rc1-2740.tar.gz)

If I watch live jpeg streaming after a while I got -139 fps or so on display and live streaming is stalled. I have to restart my firefox 3.0.5 or restart apache2...

The zm page doesn't respond until I restart ff or apache :(

I got the same result with nph-zms... :(

[Sun Feb 08 10:09:48 2009] [warn] [client 192.168.55.12] Timeout waiting for output from CGI script /srv/www/cgi-bin/zoneminder/zms, referer: https://192.168.55.2/zm/index.php?view=watch&mid=1
[Sun Feb 08 10:09:48 2009] [error] [client 192.168.55.12] (70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed, referer: https://192.168.55.2/zm/index.php?view=watch&mid=1

I wasn't able to use mpeg streaming but the video generation works fine with ffmpeg :-o

There isn't any additional log in zm*log or syslog... :(
szimszon
Posts: 26
Joined: Mon Nov 27, 2006 8:41 pm

Post by szimszon »

The -139.76 fps seems to be a constans fps value...

With ff 3.1 Beta2 the result is the same :(
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

rdmelin wrote:
Would you mind rebuilding with debug enabled? You'll have to recreate the error I think for addr2line to work though.
--enable-debug=yes
Done, and used the switch --enable-crashtrace=yes as well. I still get the same output:

Code: Select all

[ross ~]$   addr2line -e /usr/lib/zm/bin/zmc 0x80641bc 0x806d0ca 0x804d008
??:0
??:0
??:0
I have tried channels over zero here and don't get the issue. I wonder if there is a driver problem.
Phil
tanderson
Posts: 2
Joined: Fri Jan 30, 2009 3:21 pm

Post by tanderson »

rdmelin wrote:Phil, I have rc1_2740mm running using a generic 4 input 1 chip bttv card. The same system I've been using with previous rc versions. I cannot get a monitor to work on any channel other than channel 0.
I have also updated my kernel to 2.6.28.2. The bttv driver does work on all channels with xawtv so I really suspect the changes to zm. I did create a new database with the last zm build and so had to recreate the monitors. I have tried both v4l1 and v4l2 with several different palettes but no go. The error in syslog looks like this:

If anyone has a similar card and it's working properly I will consider this a problem with my system or configuration. Can anyone confirm or deny a problem with multiple channel single chip devices?
I have a similar card, and my problems were solved by passing the card=42 option to modprobe. Apparently the bttv driver is incapable of autodetecting these cards.
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

I wonder if there is a driver problem.
I reinstalled zm 1.23.3 on this system and it still works on all channels.
I have a similar card, and my problems were solved by passing the card=42 option to modprobe. Apparently the bttv driver is incapable of autodetecting these cards.
OK tried that. Also card=77 which I have been using with this card. Nothing seems to help this issue

If most others are not seeing this problem then don't hold up release on my account. I can sort this out later.

BTW with rc1_2740 I cannot use swf streaming. It was working with rc1_2737. I was inclined to suspect ffmpeg which I had to update before rc1_2740 would build. But 1.23.3 will stream swf with this ffmpeg, so ??
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Ross there is at least one other account that I have seen, the post showed up right aftter I got off the phone with you. If I find it again I'll put the link in this post.
nuck
Posts: 148
Joined: Tue Nov 11, 2008 1:43 am
Location: Canada

Post by nuck »

rdmelin wrote:I reinstalled zm 1.23.3 on this system and it still works on all channels.
I have a similar card, and my problems were solved by passing the card=42 option to modprobe. Apparently the bttv driver is incapable of autodetecting these cards.
OK tried that. Also card=77 which I have been using with this card. Nothing seems to help this issue
Have you looked in "kernel"/Documentation/video4linux/CARDLIST.bttv to see if you can't find a specific identifier for your card? Mine is a 118 -> LMLBT4

As yet I haven't had a chance to look at the changelog to see if anything has been done recently that may be upsetting things. Wife has had me busy doing that "life" thing...
nuck
Posts: 148
Joined: Tue Nov 11, 2008 1:43 am
Location: Canada

Post by nuck »

zoneminder wrote:I have tried channels over zero here and don't get the issue. I wonder if there is a driver problem.
I'll have another go at it later on today. It was the 5th monitor I was trying to add at the time I ran into my problem. I've also noticed that 1.23.3 can be stubborn about certain options (setting a camera to 640x480) on my system without a restart, so perhaps I was a bit premature in assuming anything is "broken" that may not have been previously.
szimszon
Posts: 26
Joined: Mon Nov 27, 2006 8:41 pm

Re: zms err got big negative fps at jpeg live streaming &

Post by szimszon »

szimszon wrote:Hi!

I wonder if somebody could help me!

I recently installed 1.24beta (ZoneMinder-1.24.0-rc1-2740.tar.gz)

If I watch live jpeg streaming after a while I got -139 fps or so on display and live streaming is stalled. I have to restart my firefox 3.0.5 or restart apache2...

The zm page doesn't respond until I restart ff or apache :(

I got the same result with nph-zms... :(

[Sun Feb 08 10:09:48 2009] [warn] [client 192.168.55.12] Timeout waiting for output from CGI script /srv/www/cgi-bin/zoneminder/zms, referer: https://192.168.55.2/zm/index.php?view=watch&mid=1
[Sun Feb 08 10:09:48 2009] [error] [client 192.168.55.12] (70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed, referer: https://192.168.55.2/zm/index.php?view=watch&mid=1

I wasn't able to use mpeg streaming but the video generation works fine with ffmpeg :-o

There isn't any additional log in zm*log or syslog... :(
I made some tests on my PC, no failed memory or capacitor as I see...

It seems that only the live streaming is affected.

The faild request header:

Code: Select all

Host	 192.168.55.2
User-Agent	Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.04 (hardy) Firefox/3.0.6
Accept	text/javascript, text/html, application/xml, text/xml, */*
Accept-Language	en-us,en;q=0.5
Accept-Encoding	 gzip,deflate
Accept-Charset	ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive	 300
Connection	keep-alive
Content-Type	application/x-www-form-urlencoded; charset=utf-8
X-Requested-With	XMLHttpRequest
Referer	https://192.168.55.2/zm/index.php?view=watch&mid=1
Content-Length	53
Cookie	zmBandwidth=medium; replayMode=gapless; zmSkin=classic; ZMSESSID=2ba2e661e241749d6715886c40afc502
Post:

Code: Select all

command	99
connkey	339986
request	stream
view	request
No answer.

The last good query:

Response header:

Code: Select all

DateSun, 15 Feb 2009 09:26:00 GMT
Server	Apache/2.2.11 (Debian) PHP/5.2.6-3 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.8g
X-Powered-By	PHP/5.2.6-3
Expires	Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control	no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma	no-cache
Vary	Accept-Encoding
Content-Encoding	gzip
Content-Length	140
Keep-Alive	 timeout=15, max=85
Connection	Keep-Alive
Content-Type	text/plain
question headers:

Code: Select all

Host	192.168.55.2
User-Agent	Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.04 (hardy) Firefox/3.0.6
Accept	text/javascript, text/html, application/xml, text/xml, */*
Accept-Language	en-us,en;q=0.5
Accept-Encoding	 gzip,deflate
Accept-Charset	ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive	 300
Connection	keep-alive
Content-Type	application/x-www-form-urlencoded; charset=utf-8
X-Requested-With	XMLHttpRequest
Referer	https://192.168.55.2/zm/index.php?view=watch&mid=1
Content-Length	53
Cookie	zmBandwidth=medium; replayMode=gapless; zmSkin=classic; ZMSESSID=2ba2e661e241749d6715886c40afc502
The good post:

Code: Select all

command	99
connkey	339986
request	stream
view	request
And the good answer:

Code: Select all

{'result':'Ok','status':{'type':2,'monitor':1,'fps':'-400.11','state':0,'level':0,'delayed':0,'paused'
:0,1:0,'rate':1,'delay':'0.25','zoom':'1.0','enabled':1,'forced':0}}
The 'fps':'-400.11' is a bit weired :-o

In the zms debug log:

Code: Select all

02/15/09 10:26:00.641612 zms[4961].DB3-zm_stream.cpp/146 [Last send image width = 620, height = 450]
02/15/09 10:26:00.641634 zms[4961].DB3-zm_stream.cpp/164 [Real image width = 620, height = 450]
02/15/09 10:26:00.681567 zms[4961].DB2-zm_monitor.cpp/3496 [Storing frame 227]
02/15/09 10:26:00.872015 zms[4961].DB2-zm_monitor.cpp/2909 [Got message, type 1, msg 99]
02/15/09 10:26:00.872102 zms[4961].DB1-zm_monitor.cpp/3115 [Got QUERY command, sending STATUS]
02/15/09 10:26:00.872129 zms[4961].DB2-zm_monitor.cpp/3163 [L:0, D:0, P:0, R:100, d:0.251, Z:100, E:1 F:0]
02/15/09 10:26:00.872207 zms[4961].DB3-zm_stream.cpp/58 [FPS:-400.11, MXFPS:10, BFPS:-400, EFPS:-400, FM:1]
02/15/09 10:26:00.872261 zms[4961].DB3-zm_stream.cpp/65 [aEFPS:-400, aFM:1]
02/15/09 10:31:00.682191 zms[4961].INF-zm_signal.cpp/43 [Got signal 15 (Terminated), exiting]
How can I help to track this issue down?

Thank you!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What arch is this on?
Wouldn't be x86_64??
szimszon
Posts: 26
Joined: Mon Nov 27, 2006 8:41 pm

Post by szimszon »

cordel wrote:What arch is this on?
Wouldn't be x86_64??
model name : Intel(R) Pentium(R) 4 CPU 2.40GHz

With 32bit Debian Lenny installed.
szimszon
Posts: 26
Joined: Mon Nov 27, 2006 8:41 pm

Post by szimszon »

szimszon wrote:
cordel wrote:What arch is this on?
Wouldn't be x86_64??
model name : Intel(R) Pentium(R) 4 CPU 2.40GHz

With 32bit Debian Lenny installed.
The http://www.zoneminder.com/forums/viewto ... highlight= didn't solve my problem :(
nuck
Posts: 148
Joined: Tue Nov 11, 2008 1:43 am
Location: Canada

Post by nuck »

szimszon wrote:
szimszon wrote:
cordel wrote:What arch is this on?
Wouldn't be x86_64??
model name : Intel(R) Pentium(R) 4 CPU 2.40GHz

With 32bit Debian Lenny installed.
The http://www.zoneminder.com/forums/viewto ... highlight= didn't solve my problem :(
Just curious. Have you updated your ZM install to the latest svn release?
szimszon
Posts: 26
Joined: Mon Nov 27, 2006 8:41 pm

Post by szimszon »

nuck wrote: The http://www.zoneminder.com/forums/viewto ... highlight= didn't solve my problem :(
Just curious. Have you updated your ZM install to the latest svn release?
Not yet. If I have luck then at weekend I give it a try... :) After I'll report if something change.
nuck
Posts: 148
Joined: Tue Nov 11, 2008 1:43 am
Location: Canada

Post by nuck »

szimszon wrote:Not yet. If I have luck then at weekend I give it a try... :) After I'll report if something change.
Look here. http://svn.zoneminder.com/

You'll also want to have a look around (I know it's here somewhere) and find out for sure what the oldest ffmpeg release is that you'll be able to use. When ZM-1.24.0 was released ffmpeg was a rapidly moving target (still is) and it was just a matter of a day and you had a version that was too old.
Locked