ajax errors?

Forum for questions and support relating to the 1.24.x releases only.
RockaFunk
Posts: 6
Joined: Fri Mar 27, 2009 11:54 am

Post by RockaFunk »

I have tested the latest svn on three systems. FC3, FC6 and FC3. On all this system the latest svn works without problems. On FC3 I had to remove some lines in zm_local_camera.cpp. But then, even on this old system everything is working fine. Great work!
donnie-gg
Posts: 5
Joined: Fri Mar 27, 2009 9:52 pm

april fools day bug

Post by donnie-gg »

#1) I have been to the test site setup by newvisionantenna mentioned above. It still does not work properly with Firefox 3.0.6 on my HP nc6000 laptop running Desktop Ubuntu 8.10 (with recent updates to firefox and everything else.) (The laptop does not have ZM installed)

#2) The first time I went to the site :
After I got the the montage view things looked good for about 1 minute... and then the entire browser suddenly closed, taikng with it all open windows including those unrelated to ZM.

#3) All subsequent visits to the test site did not bomb...but did display many of the characteristics of the "April fools day bug" except without the negative frame rate.

#4) When remotely accessed the cycle view works but images sometimes freeze they are however somehow reset when the next camera view switches on.(my own test server when remotely accessed behaves like this as well.

#5) When remotely accessed the montage view will quickly freeze within seconds(no negative fps) and will sometimes reset and sometimes remain permanently frozen.
RockaFunk
Posts: 6
Joined: Fri Mar 27, 2009 11:54 am

Re: april fools day bug

Post by RockaFunk »

donnie-gg wrote:#1) I have been to the test site setup by newvisionantenna mentioned above. It still does not work properly with Firefox 3.0.6 on my HP nc6000 laptop running Desktop Ubuntu 8.10 (with recent updates to firefox and everything else.) (The laptop does not have ZM installed)

#2) The first time I went to the site :
After I got the the montage view things looked good for about 1 minute... and then the entire browser suddenly closed, taikng with it all open windows including those unrelated to ZM.

#3) All subsequent visits to the test site did not bomb...but did display many of the characteristics of the "April fools day bug" except without the negative frame rate.

#4) When remotely accessed the cycle view works but images sometimes freeze they are however somehow reset when the next camera view switches on.(my own test server when remotely accessed behaves like this as well.

#5) When remotely accessed the montage view will quickly freeze within seconds(no negative fps) and will sometimes reset and sometimes remain permanently frozen.
I have also been to the test site setup by newvisionantenna. I didnt encounter the problems that you describe in your post. I used the firefox browser 3.0.8 en I have watch the montage window for a long time. It didnt freeze. My own installations of zoneminder are running very well sinds I installed the latest svn version. I think the bug is not there anymore. Maybe you should try newvisionsantennas setup from another computer to test if your installation is correct.
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Post by c0mputerking »

Ok as stated last night i am still getting the same ajax error or at least i think it is the same ajax error however i do not get -199 fps any more. Some 2 or 3 out of 8 cameras on the montage screen never give any fps (these monitors are fozen and do not seem to ever come back. The others give the standard 5 fps this is with firefox 3.0.0.8.

I have also tried with internet explorer on get very simalar results however with the cambazola interface things seem a bit more stable and less 1 or 2 out of 8 cameras freeze.

ps here is the output of the error to refresh
==> /var/log/messages.log <Apr>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 'file' => '/var/lib/zm/www/ajax/stream.php',
Apr 2 16:28:53 cedars 'line' => 51,
Apr 2 16:28:53 cedars 'function' => 'ajaxError',
Apr 2 16:28:53 cedars 'args' =>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 0 => 'socket_sendto( /var/lib/zm/socks/zms-564623s.sock ) failed: Connection refused',
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars 1 =>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 'file' => '/var/lib/zm/www/index.php',
Apr 2 16:28:53 cedars 'line' => 116,
Apr 2 16:28:53 cedars 'args' =>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 0 => '/var/lib/zm/www/ajax/stream.php',
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars 'function' => 'require_once',
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars )

==> /var/log/httpd/access_log <68> /var/log/messages.log <Apr>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 'file' => '/var/lib/zm/www/ajax/stream.php',
Apr 2 16:28:53 cedars 'line' => 51,
Apr 2 16:28:53 cedars 'function' => 'ajaxError',
Apr 2 16:28:53 cedars 'args' =>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 0 => 'socket_sendto( /var/lib/zm/socks/zms-893919s.sock ) failed: Connection refused',
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars 1 =>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 'file' => '/var/lib/zm/www/index.php',
Apr 2 16:28:53 cedars 'line' => 116,
Apr 2 16:28:53 cedars 'args' =>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 0 => '/var/lib/zm/www/ajax/stream.php',
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars 'function' => 'require_once',
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars )
Apr 2 16:28:53 cedars httpd: socket_sendto( /var/lib/zm/socks/zms-748454s.sock ) failed: Connection refused
Apr 2 16:28:53 cedars httpd: array (
Apr 2 16:28:53 cedars 0 =>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 'file' => '/var/lib/zm/www/ajax/stream.php',
Apr 2 16:28:53 cedars 'line' => 51,
Apr 2 16:28:53 cedars 'function' => 'ajaxError',
Apr 2 16:28:53 cedars 'args' =>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 0 => 'socket_sendto( /var/lib/zm/socks/zms-748454s.sock ) failed: Connection refused',
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars 1 =>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 'file' => '/var/lib/zm/www/index.php',
Apr 2 16:28:53 cedars 'line' => 116,
Apr 2 16:28:53 cedars 'args' =>
Apr 2 16:28:53 cedars array (
Apr 2 16:28:53 cedars 0 => '/var/lib/zm/www/ajax/stream.php',
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars 'function' => 'require_once',
Apr 2 16:28:53 cedars ),
Apr 2 16:28:53 cedars )

==> /var/log/httpd/access_log <==
68.144.18.110 - - [02/Apr/2009:16:28:53 -0600] "POST /index.php HTTP/1.1" 200 164
68.144.18.110 - - [02/Apr/2009:16:28:53 -0600] "POST /index.php HTTP/1.1" 200 114
68.144.18.110 - - [02/Apr/2009:16:28:53 -0600] "POST /index.php HTTP/1.1" 200 114
^C
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

I'm really wondering if it's something with certain browers? I connect to my own demo with IE7 and everything seems ok. I don't have the ability to leave my connection on for long so maybe the bug occurs after some time. I think I understand what you guys are saying, it's all in watching any sort of stream right? You want to have your montage view or stream up at all times and Zoneminder is not allowing this due to the view crashing correct?

I'll leave my site going and try any changes you guys suggest. Right now everything is bone stock to include the apache connection settings. I have no idea how many people are viewing or connecting but everytime I check out my demo it's working so it must be stable. If some people give me access to something bigger then 320x240 I'll add it to my demo. I was hoping more people would add camera's so new equipment could be checked out and added if it turns out it's working.
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

For what it's worth, connected to my demo last night wirelessly here in the UK. Pulled up the montage view with the two camera feeds using IE7. I left my laptop on the entire night and fell asleep. Just woke up almost 7-8 hours later and looked down at my laptop to see the montage view still going and both feeds still streaming live. I would think that's pretty stable, but it's only 2 feeds at 320x240.
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Post by c0mputerking »

Yes I too have a lightly loaded system with only 4 analog bttv cameras turned down to run at 320X240 and 5fps until this issue is sorted. This system will run quite well it occasionally spits out the ajax error, but seems to hold the montage quite well for extended periods.

However with my 8 camera system with 8 chip bttv card running 320X240 and 5 fps I get lots of errors and montage does not work right even at startup. This machine runs at about 20% CPU and has 2GB of RAM so i do not think system resources are the issue.

Tommorow i will go onsite and setup the nicely created and packaged for zmlarchcd zmviewer. Technically this should work better and not use any kind of ajax interface. Not really sure what it will prove other than how great it is to watch 8 camera feed live without any errors or hangups hopefully.
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

I'm interested in the zmviewer. As soon as I get back I'll add it into my DVD. I'll install the SVN version, but if somone want to try the current release just look at the following info.

http://www.qt-apps.org/content/show.php ... tent=76874

or here

http://downloads.sourceforge.net/zmview ... _hardy.deb

Just download the deb package and run the following,

Code: Select all

dpkg -i zmviewer_0.1.6_i386_hardy.deb
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I have made a few further changes to improve the montage view, especially in lower bandwidth scenarios where the streams will drop frame rates if they detect a congested connection.

Make sure you are suing the appropriate bandwidth settings also, there is no point in using High bandwidth mode when viewing 8 streams over a 512k upstream domestic connection. You may still have to increase the ajax timeout in the bandwidth options if it too low for your particular circumstances.
Phil
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

So far no errors in the logs viewing montage.

Using the default, not compact view, the fps is blank.
I will probably switch to using compact view, but just reporting.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The FPS should not be blank. Can you see the requests being sent in the FF console? Also check your ZM log for any messages about throttling frame rates etc.
Phil
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

FF console:
Here is syslog:
Apr 3 10:36:34 archbox zms[27156]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 10:36:34 archbox zms[27158]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 10:36:34 archbox zms[27160]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 10:37:10 archbox zmc_dvideo0[8078]: INF [Front: 52000 - Capturing at 5.00 fps]
Apr 3 10:37:10 archbox zmc_dvideo0[8078]: INF [Shop: 52000 - Capturing at 5.00 fps]
Apr 3 10:37:48 archbox zma_m2[25718]: INF [Shop: 5000 - Processing at 5.00 fps]
Apr 3 10:39:15 archbox zmc_dvideo1[8095]: INF [USB: 21000 - Capturing at 1.99 fps]
And here is apache logs
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /zm/index.php?view=montage&group=0 HTTP/1.1" 200 4716
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /zm/css/reset.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /zm/skins/classic/css/skin.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /zm/skins/classic/views/css/montage.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /zm/tools/mootools/mootools-1.2.1-core-nc.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /zm/tools/mootools/mootools-1.2-more-nc.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /zm/js/mootools.ext.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /zm/skins/classic/js/skin.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /zm/skins/classic/views/js/montage.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /zm/skins/classic/views/css/montage_freeform.css HTTP/1.1" 304 -
Bandwidth is set to high as this is client and server on localhost.
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

Strange. This appeared in apache logs only after closing montage view and after entries with a later timestamp:
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /cgi-zm/nph-zms?mode=jpeg&monitor=2&scale=100&maxfps=15&connkey=960224&rand=12
38780194 HTTP/1.1" 200 -
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /cgi-zm/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=15&connkey=22868&rand=123
8780194 HTTP/1.1" 200 -
127.0.0.1 - - [03/Apr/2009:10:36:34 -0700] "GET /cgi-zm/nph-zms?mode=jpeg&monitor=4&scale=100&maxfps=15&connkey=769853&rand=12
38780194 HTTP/1.1" 200 -
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Post by c0mputerking »

rdmelin wrote:So far no errors in the logs viewing montage.

Using the default, not compact view, the fps is blank.
I will probably switch to using compact view, but just reporting.
Same here fps reading is gone after last update
Locked