Errors with zms (viewing events)

Forum for questions and support relating to the 1.24.x releases only.
Locked
User avatar
Blazer
Posts: 234
Joined: Sun Jun 05, 2005 12:57 pm

Errors with zms (viewing events)

Post by Blazer »

Just in case anything is relevant I am going to summarize the whole story:

1. I had a completely working ZM 1.24.2 Install w/ 3 bttv cams and 1 UVC cam (which as actually plugged into another machine and accessed via mjpeg-streamer because I could never get it to work locally)
2. I upgraded to Ubuntu Natty (11.04)
3. I had problems getting the bttv cams to work.
4. I ended up removing the Ubuntu zoneminder 1.24.2 package
5. I compiled and installed 1.24.4
6. bttv cams now worked (yay!)
7. Had problems getting my UVC camera to work (Logitech 9000 Pro USB)
8. Resolved the logitech issue by rebooting and letting the logitech become /dev/video0 (probably just needed videodev module reloaded since I had plugged it in last previously)
10. Now all cams working (yay!)

EXCEPT...

When I try to view any saved events, I get errors from zms and it only shows one frame of the event. Viewing live monitors works fine.

Here are the errors I am seeing, from the debug log:

Code: Select all

06/19/11 01:55:49.230981 zms[2547].INF-zm_debug.c/296 [New Debug Level = 9, New Debug Log = /tmp/zm/zm_debug.log.02547]
06/19/11 01:55:49.231221 zms[2547].DB1-zms.cpp/98 [Query: source=event&mode=jpeg&event=82&frame=1&scale=100&rate=100&maxfps=5&replay=single&connkey=923742&rand=1308473749]
06/19/11 01:55:49.235189 zms[2547].DB3-zm_stream.cpp/58 [FPS:27.33, MXFPS:5.00, BFPS:27.33, EFPS:27.33, FM:1]
06/19/11 01:55:49.235286 zms[2547].DB3-zm_stream.cpp/65 [aEFPS:3.42, aFM:8]
06/19/11 01:55:49.238778 zms[2547].DB2-zm_event.cpp/835 [Event:82, Frames:414, Duration: 15.15]
06/19/11 01:55:49.239196 zms[2547].DB1-zm_monitor.cpp/2306 [Got 1 monitors]
06/19/11 01:55:49.240855 zms[2547].DB1-zm_monitor.cpp/340 [monitor purpose=0]
06/19/11 01:55:49.240963 zms[2547].DB1-zm_monitor.cpp/347 [mem.size=9217192]
06/19/11 01:55:49.241104 zms[2547].DB1-zm_monitor.cpp/371 [Unable to map file /dev/shm/zm.mmap.1 (9217192 bytes) to locked memory, trying unlocked]
06/19/11 01:55:49.241331 zms[2547].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 320x240 - 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]



06/19/11 01:55:49.303102 zms[2547].DB1-zm_monitor.cpp/460 [Monitor FrontYard has function 3]
06/19/11 01:55:49.303136 zms[2547].DB1-zm_monitor.cpp/461 [Monitor FrontYard LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
06/19/11 01:55:49.303163 zms[2547].DB1-zm_monitor.cpp/462 [Monitor FrontYard IBC = 40, WUC = 25, pEC = 40, PEC = 20, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
06/19/11 01:55:49.303193 zms[2547].DB1-zm_monitor.cpp/2509 [Loaded monitor 1(FrontYard), 0 zones]
06/19/11 01:55:49.303441 zms[2547].DB3-zm_stream.cpp/58 [FPS:27.33, MXFPS:5.00, BFPS:27.33, EFPS:27.33, FM:1]
06/19/11 01:55:49.303486 zms[2547].DB3-zm_stream.cpp/65 [aEFPS:3.42, aFM:8]
06/19/11 01:55:49.303783 zms[2547].DB2-zm_event.cpp/1185 [Sending frame 1]
06/19/11 01:55:49.304623 zms[2547].DB3-zm_event.cpp/1400 [dUs: 0]
06/19/11 01:55:49.805090 zms[2547].DB2-zm_event.cpp/842 [Got message, type 1, msg 99]
06/19/11 01:55:49.805198 zms[2547].DB1-zm_event.cpp/1062 [Got QUERY command, sending STATUS]
06/19/11 01:55:49.805268 zms[2547].DB2-zm_event.cpp/1089 [E:82, P:0, p:-2 R:100, Z:100]
06/19/11 01:55:49.805369 zms[2547].DB3-zm_stream.cpp/58 [FPS:27.33, MXFPS:5.00, BFPS:27.33, EFPS:27.33, FM:1]
06/19/11 01:55:49.805423 zms[2547].DB3-zm_stream.cpp/65 [aEFPS:3.42, aFM:8]
06/19/11 01:55:50.305722 zms[2547].DB2-zm_stream.cpp/234 [Sending text frame 'Time to next event = 1 seconds']
06/19/11 01:55:50.313073 zms[2547].ERR-zm_stream.cpp/267 [Unable to send stream text frame: Resource temporarily unavailable]
So it seems to be complaining about "locked memory" in the mmap file in /dev/shm. I'm not sure what the issue could be. My /dev/shm seems viable:

Code: Select all

# df -h /dev/shm
Filesystem            Size  Used Avail Use% Mounted on
none                  501M   53M  448M  11% /dev/shm
Here is a snapshot of my /dev/shm while zm is running:

Code: Select all

# ls -l /dev/shm
total 54084
-rwxrwxrwx 1 www-data www-data  9217192 2011-06-19 02:11 zm.mmap.1
-rwxrwxrwx 1 www-data www-data  9217192 2011-06-19 02:11 zm.mmap.2
-rwxrwxrwx 1 www-data www-data 36865192 2011-06-19 02:21 zm.mmap.4
Any ideas or suggestions would be much appreciated. Thank You!

P.S. I get the errors when viewing saved events from any of the monitors.
Locked