Modect crashes then reappears again and again

Forum for questions and support relating to the 1.24.x releases only.
Locked
ultiskeet
Posts: 2
Joined: Fri Feb 18, 2011 7:48 pm
Location: Canada

Modect crashes then reappears again and again

Post by ultiskeet »

I am using a Trendnet ip-100w at 640X480 @5fps medium compression. I am able to use the camera intermittently and see the feed OK for short periods of time in Zoneminder using Fedora 13. I have been trying to follow different posts regarding shmmax and shmall settings as I was getting the dreaded "0x7a6d0002" error. I defined shmmax as below and let the system arrange shmall itself.

Code: Select all

more ./kernel/shmmax
268435456
 more ./kernel/shmall
2097152

Code: Select all

more meminfo
MemTotal:        1026828 kB
MemFree:          254200 kB
Buffers:           34916 kB
Cached:           528580 kB

Code: Select all

more cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm) XP 2100+
stepping        : 1
cpu MHz         : 1730.674
cache size      : 256 KB
I managed to capture the instance when the screen goes black on Debug=9 so I hope there is enough there for someone to glean info. I came up frustrated after Googleing for a few days of playing around with shared memory settings.

The gold starts in the second block where zmu changes to zms
I just did a "head -10 /tmp/zm_debug.log.08883[3-7] to spare you the spam.

Code: Select all

02/18/11 11:07:49.260921 zmu[8833].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log.08833]
02/18/11 11:07:49.262293 zmu[8833].DB1-zm_monitor.cpp/2262 [Got 1 monitors]
02/18/11 11:07:49.266332 zmu[8833].DB1-zm_monitor.cpp/338 [monitor purpose=0]
02/18/11 11:07:49.266403 zmu[8833].DB1-zm_monitor.cpp/345 [mem.size=138242072]
02/18/11 11:07:49.266802 zmu[8833].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
02/18/11 11:07:49.267522 zmu[8833].DB9-zm_image.cpp/1354 [x1:0,y1:479 x2:0,y2:0]
02/18/11 11:07:49.267586 zmu[8833].DB9-zm_image.cpp/1354 [x1:0,y1:0 x2:639,y2:0]
02/18/11 11:07:49.267603 zmu[8833].DB9-zm_image.cpp/1354 [x1:639,y1:0 x2:639,y2:479]
02/18/11 11:07:49.267618 zmu[8833].DB9-zm_image.cpp/1354 [x1:639,y1:479 x2:0,y2:479]
02/18/11 11:07:49.267639 zmu[8833].DB9-zm_image.cpp/1388 [Moving global edge]

Code: Select all


02/18/11 11:07:50.458766 zms[8835].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log.08835]
02/18/11 11:07:50.459133 zms[8835].DB1-zms.cpp/98 [Query: mode=single&monitor=2&scale=100&connkey=578825&rand=1298054999&1298056074553]
02/18/11 11:07:50.465498 zms[8835].DB1-zm_monitor.cpp/2262 [Got 1 monitors]
02/18/11 11:07:50.475676 zms[8835].DB1-zm_monitor.cpp/338 [monitor purpose=0]
02/18/11 11:07:50.475750 zms[8835].DB1-zm_monitor.cpp/345 [mem.size=138242072]
02/18/11 11:07:50.475841 zms[8835].WAR-zm_monitor.cpp/437 [Shared data not initialised by capture
02/18/11 11:07:50.478497 zms[8835].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb
02/18/11 11:07:50.479291 zms[8835].DB9-zm_image.cpp/1354 [x1:0,y1:479 x2:0,y2:0]
02/18/11 11:07:50.479357 zms[8835].DB9-zm_image.cpp/1354 [x1:0,y1:0 x2:639,y2:0]
02/18/11 11:07:50.479374 zms[8835].DB9-zm_image.cpp/1354 [x1:639,y1:0 x2:639,y2:479]
 

Code: Select all

02/18/11 11:07:50.508801 zmu[8837].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /tmp/
02/18/11 11:07:50.510213 zmu[8837].DB1-zm_monitor.cpp/2262 [Got 1 monitors]
02/18/11 11:07:50.522195 zmu[8837].DB1-zm_monitor.cpp/338 [monitor purpose=0]
02/18/11 11:07:50.522254 zmu[8837].DB1-zm_monitor.cpp/345 [mem.size=138242072]
02/18/11 11:07:50.522347 zmu[8837].WAR-zm_monitor.cpp/437 [Shared data not initialised by capture
02/18/11 11:07:50.523007 zmu[8837].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb
02/18/11 11:07:50.523759 zmu[8837].DB9-zm_image.cpp/1354 [x1:0,y1:479 x2:0,y2:0]
02/18/11 11:07:50.523826 zmu[8837].DB9-zm_image.cpp/1354 [x1:0,y1:0 x2:639,y2:0]
02/18/11 11:07:50.523842 zmu[8837].DB9-zm_image.cpp/1354 [x1:639,y1:0 x2:639,y2:479]
02/18/11 11:07:50.523856 zmu[8837].DB9-zm_image.cpp/1354 [x1:639,y1:479 x2:0,y2:479]



Let me know I need to supply more info. Thanks for your eyes and brains.
Skeeter
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Post by PacoLM »

Try to lower down 'Stream Replay Image Buffer' to 100 instead of 1000. Post results.
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Post by mastertheknife »

Hi,

Please post debug log for zmc too.

Also, you might want to try using mmap mode. I believe its the default selection in 1.24.3 and in my opinion is superior because it usually just works out of the box, no need to fiddle with the shmall\shmax stuff.

mastertheknife :D
ultiskeet
Posts: 2
Joined: Fri Feb 18, 2011 7:48 pm
Location: Canada

Post by ultiskeet »

PacoLM wrote:Try to lower down 'Stream Replay Image Buffer' to 100 instead of 1000. Post results.
I did this sort of. My original value was 2000 so I knocked off a zero and it seems to be working for the last two days.

Thanks!
Locked