Can't see live event and stored event at the same time.

Support and queries relating to all previous versions of ZoneMinder
Locked
akschu
Posts: 14
Joined: Wed Jul 27, 2005 5:30 pm

Can't see live event and stored event at the same time.

Post by akschu »

Hello,

I am having a problem with zm perhaps someone knows how to resolve. When I click on my camera I can see the live video, but then when I click on an event, the event never loads. If I close the live window then suddenly it starts working so it seems that I cant watch live and an event at the same time.

I think this issue is on the server because it happens to a linux based viewer running firefox and also a windows based viewer using IE/cambozola.

Here is the hardware I'm running:
Intel(R) Pentium(R) 4 CPU 2.80GHz
Intel SATA controller
WDC WD1600JD-75H SATA Disk
512MB of ram.

Software is:
Slackware 10.1 (didn't have to much trouble making it work, but it is different)
zm-1.21.3
Using firefox for a browser
apache-2.0.54
php-5.0.4

Camera is:
Axis 213 PTZ set for mjpeg streaming at 5 fps. 704x480 resolution, high color.

Networks is:
100Mb full duplex switched
akschu
Posts: 14
Joined: Wed Jul 27, 2005 5:30 pm

Post by akschu »

While looking at this more, the problem is that the web server keeps streaming even after I close one of the pages, so after I click on a few things I'm being sent a zillion images, even though my windows are closed.

Anyone know of a fix for this?

schu
akschu
Posts: 14
Joined: Wed Jul 27, 2005 5:30 pm

Post by akschu »

After more packet sniffing I found that my browser sends a FIN packet to the web server and it stops when I close the live window, but whenever I am looking at an event and close the FIN packet never gets sent so the webserver keeps on streaming.

I'm using firefox 1.0.6. At this polint I'm pretty sure it's a bug with ZM or the browser, but I'm not sure.

schu
akschu
Posts: 14
Joined: Wed Jul 27, 2005 5:30 pm

Post by akschu »

Pretty much down to a firefox bug at this point. Surely someone else has ran into this, it makes using firefox with zm VERY slow VERY quickly.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

I have run into this but only on the zm machine. If i load a montage then try and do anything else with zm nowt happens. I assume if i understand you correctly that this is similar. No help im afraid. I have read another post about this on here somewhere.

BTW dont leave your rig on montage for extended periods. I went away for a week and left it on by mistake and came back to crashed box. If you leave it open it just chews all resources. A few of the experts on here are looking at developing an x app which will solve this.

Regards James
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

In the past there was an apache bug that prevented cgi process from being closed correctly. I assume that no system still has that problem nowadays though. Have you tweaked the FireFox config to allow several simultaneous connections, in case that is getting it confused?

Phil
akschu
Posts: 14
Joined: Wed Jul 27, 2005 5:30 pm

Post by akschu »

Thanks for your reply Phil.

I did at one point have some firefox settings tweeked, but blew away my profile to make sure that I had an absolutly default firefox. I see the problem on both windows and linux so it should be quite reproduceable for anyone.

1. Open tcpdump on the server and look for port 80 packets to the client.
2. Open ZM on the client, click on the live view, then click on one event.
3. Close the event, then the live view.

Now notice that the mjpeg stream keeps on coming, and firefox continues to maintain the stream with ACK packets.

If you can't reproduce it then I'll start working though what is different on the server end, but at this point I'm quite sure it's a mozilla bug
seb3s
Posts: 27
Joined: Wed Aug 31, 2005 10:27 am
Location: Paris, France

A solution anybody ?

Post by seb3s »

Hi,

Has anybody got a solution for the described problem ?
I just encounter the same case here on my debian sarge install (1.21.3).
I'm viewing event streams with firefox 1.0.6 on W2K.

Thanks,
Sebastien.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

not as yet that i know too,but its easy to work around
henke
Posts: 60
Joined: Thu Nov 10, 2005 8:16 am

Post by henke »

Hi,

I encountered the same problem on debian sarge with firefox browsers with default settings. Did anyone of you come up with a solution on the server side?

-h
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

if you modify the settings in firefox i think that fixes it. if you search for firefox and montage cordel made a list of the changes required
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
henke
Posts: 60
Joined: Thu Nov 10, 2005 8:16 am

Post by henke »

Yes thanks, but the idea would be to fix it on the server so some "unfixed" browsers wouldnt break the server.

Strange that it seems to be encountered only on debian.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i dont think this is a server problem
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Locked