Can't get shared memory ID (again)

Forum for questions and support relating to the 1.24.x releases only.
Post Reply
subliminal_boy_9
Posts: 14
Joined: Wed Nov 10, 2004 6:32 pm

Can't get shared memory ID (again)

Post by subliminal_boy_9 » Thu Aug 20, 2009 3:23 pm

Having an issue similar to this thread: http://www.zoneminder.com/forums/viewto ... y++zmwatch

Machine is quad core intel, tons of RAM, 4x1TB drives for images, 120GB system drive. Running Ubuntu 9.04 32-bit server.

Have two Axis 211 IP cameras, these function as expected in 640x480 resolution without putting much load on the system at all. Also a BTTV 4x4 card...all cams tied locally to this generate the following, with a black box instead of an image:

Code: Select all

Aug 20 10:20:03 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0005', 5: No such file or directory] 
Aug 20 10:20:03 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0006', 6: No such file or directory] 
Aug 20 10:20:03 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0007', 7: No such file or directory] 
Aug 20 10:20:03 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0008', 8: No such file or directory] 
Aug 20 10:20:03 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0009', 9: No such file or directory] 
Aug 20 10:20:03 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d000a', 10: No such file or directory] 
Aug 20 10:20:13 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0003', 3: No such file or directory] 
Aug 20 10:20:13 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory] 
Aug 20 10:20:13 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0005', 5: No such file or directory] 
Aug 20 10:20:13 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0006', 6: No such file or directory] 
Aug 20 10:20:13 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0007', 7: No such file or directory] 
Aug 20 10:20:13 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0008', 8: No such file or directory] 
Aug 20 10:20:13 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0009', 9: No such file or directory] 
Aug 20 10:20:13 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d000a', 10: No such file or directory] 
Aug 20 10:20:23 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0003', 3: No such file or directory] 
Aug 20 10:20:23 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory] 
Aug 20 10:20:23 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0005', 5: No such file or directory] 
Aug 20 10:20:23 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0006', 6: No such file or directory] 
Aug 20 10:20:23 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0007', 7: No such file or directory] 
Aug 20 10:20:23 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0008', 8: No such file or directory] 
Aug 20 10:20:23 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0009', 9: No such file or directory] 
Aug 20 10:20:23 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d000a', 10: No such file or directory] 
Aug 20 10:20:33 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0003', 3: No such file or directory] 
Aug 20 10:20:33 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory] 
Aug 20 10:20:33 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0005', 5: No such file or directory] 
Aug 20 10:20:33 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0006', 6: No such file or directory] 
Aug 20 10:20:33 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0007', 7: No such file or directory] 
Aug 20 10:20:33 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0008', 8: No such file or directory] 
Aug 20 10:20:33 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d0009', 9: No such file or directory] 
Aug 20 10:20:33 srv-cameras2 zmwatch[14320]: ERR [Can't get shared memory id '7a6d000a', 10: No such file or directory] 
Change of the shmall and shmmax values has no effect. Any help out there? Please be specific in your replies. While I'm not a n00b, concise help is the best kind.

subliminal_boy_9
Posts: 14
Joined: Wed Nov 10, 2004 6:32 pm

addtional note

Post by subliminal_boy_9 » Thu Aug 20, 2009 5:47 pm

Also note that the www-data user has been added as a member of the video group, to no effect.

subliminal_boy_9
Posts: 14
Joined: Wed Nov 10, 2004 6:32 pm

progress...sorta

Post by subliminal_boy_9 » Thu Aug 20, 2009 6:59 pm

I'm making (some) progress. No longer generating copious errors in my logs. And I can get video off of a single input from all four chips at once. So my 16 port card is now functioning as a four port. But as soon as I add a monitor on (say) /dev/video0, input1, in addition to input0, I get black images for both.

In short, the hardware works. I can take pictures from any of the inputs individually. But try to take pictures from more than one input from a chip = fail.

Suggestions?

scarrz
Posts: 23
Joined: Thu Aug 20, 2009 12:40 pm

Same errors but with IP Cameras

Post by scarrz » Fri Aug 21, 2009 7:00 pm

ZMWATCH.LOG
--------------------
08/21/09 14:48:32.340434 zmwatch[2832].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
08/21/09 14:48:42.341956 zmwatch[2832].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
08/21/09 14:48:52.343443 zmwatch[2832].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
08/21/09 14:49:02.344972 zmwatch[2832].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
08/21/09 14:49:12.346463 zmwatch[2832].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
-----------------------
/VAR/LOG/MESSAGES:
----------------------------

Aug 21 14:52:48 tarheel zmc_dvideo0[14169]: INF [Foyer: 9000 - Capturing at 12.05 fps]
Aug 21 14:52:48 tarheel zmc_dvideo0[14169]: INF [LivRoom: 9000 - Capturing at 12.05 fps]
Aug 21 14:53:36 tarheel zms[14627]: INF [Debug Level = 0, Debug Log = <none>]
Aug 21 14:53:36 tarheel zms[14627]: INF [Authenticated user 'admin']
Aug 21 14:53:36 tarheel zms[14627]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Aug 21 14:53:45 tarheel zmu[14632]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Aug 21 14:53:45 tarheel zmu[14634]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]



I have one 4 channel DVR card setup and I'm using /dev/Video0, with 2 camers input at the moment (LivRoom & Foyer). Both show video just fine. But, now I"m trying to add an assortment of Trendnet Ip cameras (IP110W, 312W and 410) I cannot get an image only a black box. And of course the dreaded "shared memory" error. I have tried increasing the memory allocation via the instructions but it does not seem to help.

I'm using Ubuntu 9.04 & 1.24.2 ZM.

NEED HELP!!!

--------------
Also here is my zm.conf file
_________________
# ==========================================================================
#
# ZoneMinder Base Configuration, $Date: 2008-07-25 05:48:16 -0400 (Fri, 25 Jul 2008) $, $Revision: 2612 $
#
# ==========================================================================
#
# This file is generated by 'configure'. Care should be taken if manually
# editing this file as an changes may be overwritten by subsequent configuration
# or installations.
#

# Current version of ZoneMinder
ZM_VERSION=1.24.2

# Path to build directory, used mostly for finding DB upgrade scripts
ZM_PATH_BUILD=/usr/src/zm

# Build time, used to record when to trigger various checks
ZM_TIME_BUILD=1250861123

# Path to ZoneMinder binaries
ZM_PATH_BIN=/usr/local/bin

# Path to ZoneMinder libraries (none at present, for future use)
ZM_PATH_LIB=/usr/local/lib

# Path to ZoneMinder configuration (this file only at present)
ZM_PATH_CONF=/usr/local/etc

# Path to ZoneMinder web files
ZM_PATH_WEB=/var/www

# Path to ZoneMinder cgi files
ZM_PATH_CGI=/usr/lib/cgi-bin

# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=www-data
ZM_WEB_GROUP=www-data

# ZoneMinder database hostname or ip address
ZM_DB_HOST=localhost

# ZoneMinder database name
ZM_DB_NAME=zm

# ZoneMinder database user
ZM_DB_USER=zmuser

# ZoneMinder database password
ZM_DB_PASS=zmpass
____________________-
Any ideas? I've spent about 3 days on this now and its driving me nuts.

DREMA
Posts: 162
Joined: Fri Dec 12, 2008 2:39 am
Location: México

Post by DREMA » Mon Oct 05, 2009 8:14 am

You should try recompiling with the --nmap=YES option in your configure, that way zm will handle the memory automatically and that problem should dissapear.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests