Shared data size conflict in shared_data for 3 monitors

Forum for questions and support relating to the 1.28.x releases only.
Locked
joedaman1999
Posts: 2
Joined: Sat Nov 22, 2014 3:01 pm

Shared data size conflict in shared_data for 3 monitors

Post by joedaman1999 »

Hi,

I'm running ZM v 1.28.0 on an Ubuntu 12.04 server. I have been receiving the following errors for some time now, and I was hoping to figure what is causing them. I recently added an additional camera to my setup and now these three monitors have been experiencing freezes (i.e recording stops) with no additional errors about once every 24 hours, with a working solution of restarting zoneminder. Additionally, the cameras are all the same, and I have no errors for the other three cameras that are different makes/models. The cameras are Huacam HCV724's using the libvlc source type. I've tried playinhg with the buffers in the monitor settings but nothing seems to stop the errors. So, does anybody have any idea of what might be the problem or suggestions as to what to check? Thanks in advance.

The buffers I have setup for the three cameras are:
Image Buffer Size (frames): 80
Warmup Frames: 25
Pre Event Image Count: 40
Post Event Image Count: 80
Stream Replay Image Buffer: 1000
Alarm Frame Count: 2

The Error messages are below and they are repeated every 10 seconds:

Code: Select all

2014-11-22 08:45:57.530740	zmwatch	30802	ERR	Shared data size conflict in shared_data for monitor Front_Door, expected 336, got 930623579	zmwatch.pl	
2014-11-22 08:45:57.480860	zmwatch	30802	ERR	Shared data size conflict in shared_data for monitor Front_Door, expected 336, got 930623579	zmwatch.pl	
2014-11-22 08:45:57.438850	zmwatch	30802	ERR	Shared data size conflict in shared_data for monitor Driveway, expected 336, got 897069147	zmwatch.pl	
2014-11-22 08:45:57.358890	zmwatch	30802	ERR	Shared data size conflict in shared_data for monitor Driveway, expected 336, got 897069147	zmwatch.pl	
2014-11-22 08:45:57.063440	zmwatch	30802	ERR	Shared data size conflict in shared_data for monitor Backyard, expected 336, got 897069147	zmwatch.pl	
2014-11-22 08:45:56.857460	zmwatch	30802	ERR	Shared data size conflict in shared_data for monitor Backyard, expected 336, got 897069147	zmwatch.pl
I've checked to see that the 32bit/64bit perl bug was not the issue by running the test perl script menitoned in another post. The results of that are:

Code: Select all

Value of length test: 20
Value of our arch: 64
Config value of selectminbits: 64
Additionally I am using the following kernel:

Code: Select all

$ uname -a
Linux 3.13.0-39-generic #66~precise1-Ubuntu SMP Wed Oct 29 09:56:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Shared Memory Limits are:

Code: Select all

$ ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 976562
max total shared memory (kbytes) = 2048000
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages Limits --------
max queues system wide = 14751
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384

Code: Select all

$ cat /etc/sysctl.conf
net.ipv4.ip_forward=0
kernel.shmmax=1000000000
kernel.shmall=512000
bbunge
Posts: 2967
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Shared data size conflict in shared_data for 3 monitors

Post by bbunge »

Recommend you switch to ffmpeg to see if you still get errors. I also remember something about newer versions of ZM using mmapp and you do not need to change any shared memory settings. Sounds like you may want to lower the resolution on your cameras.

bb
joedaman1999
Posts: 2
Joined: Sat Nov 22, 2014 3:01 pm

Re: Shared data size conflict in shared_data for 3 monitors

Post by joedaman1999 »

I appreciate the suggestion. I used to use ffmpeg, but using libvlc dropped my server loads down significantly. I may have to go back to using it if this keeps up. Thanks.
User avatar
iconnor
Posts: 3332
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Shared data size conflict in shared_data for 3 monitors

Post by iconnor »

That's really just a warning, and although it is annoying to have things in the logs, it is really not affecting anything.

The perl side scripts are just looking for the header part of the shared mmap file, so expect a size of 336, but the zmc process includes all the image buffers, etc, so the mmap is much larger.

This warning will go away in future versions.
sysel
Posts: 1
Joined: Thu Dec 25, 2014 2:25 pm

Re: Shared data size conflict in shared_data for 3 monitors

Post by sysel »

Hi all,
i am new to ZoneMinder, therefore please be patient with my questions :)

Yesterday i tried to use external triggers to start and stop recording on my cameras. I have 2 HD chinese IP camera and they have some "alarm server" output, which i am able to catch and according to this send something to ZoneMinder trigger. I started with understanding of zmtrigger.pl script and finally i was able to switch on/off recording via echo to tcp port.

But, after some tests it stoped working and i saw this error in zmwatch.log
zmwatch[21109].ERR [Shared data size conflict in shared_data for monitor Monitor-1, expected 336, got 1852404565]
This error was never in my log (i have version 1.28.0 for 4 months with 2 cameras as monitor only).
When this happened i am not able to use trigger any more, although i have monitor ID 1..
zmtrigger[30222].WAR [Can't find monitor '1' for message '1|on+10|255|pokus']
I tried everything - reinstall zoneminder, use older version etc, but still same issue. I am using install from repository, not from source..

I have feeling, that this shared memory issue have some comonality with zmtrigger issue..

Do you have some suggestions what can i have wrong?

Thank you for you answers.
Jan
Locked