Page 1 of 2
"Shared data size conflict in shared_data for monitor"
Posted: Fri Aug 05, 2022 11:21 pm
by RonRN18
I was have no problems at all with my system until today. The only change I can think of is that I saw that there was an update to ZoneMinder 1.36.23, so I upgraded. I then noticed that all of a sudden, all of my monitors have become unstable. I saw that in the logs, I am seeing nearly constant errors with lines saying something akin to: "Shared data size conflict in shared_data for monitor INSIDE Office Left, expected 768, got 760". The"INSIDE Office Left" is the name of one of the monitors. Each monitor will display for a few seconds... then go black, and then after a couple more seconds, return.
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 12:10 am
by sphillips
yes i can confirm after update had the same problem on ubuntu 20.04
Aug 5 17:56:00 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Frente24h, expected 768, got 760]
Aug 5 17:56:00 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Frente, expected 768, got 760]
Aug 5 17:56:00 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Cozinha, expected 768, got 760]
Aug 5 17:56:00 server zmc_m3[1294317]: ERR [zmc_m3] [Failed to capture image from monitor 3 Cozinha (1/1)]
Aug 5 17:56:00 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Lavanderia, expected 768, got 760]
Aug 5 17:56:01 server zmc_m4[1294322]: ERR [zmc_m4] [Failed to capture image from monitor 4 Lavanderia (1/1)]
Aug 5 17:56:01 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Consultorio, expected 768, got 760]
Aug 5 17:56:01 server zmc_m5[1294329]: ERR [zmc_m5] [Failed to capture image from monitor 5 Consultorio (1/1)]
Aug 5 17:56:01 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Entrada, expected 768, got 760]
Aug 5 17:56:01 server zmc_m6[1294336]: ERR [zmc_m6] [Failed to capture image from monitor 6 Entrada (1/1)]
Aug 5 17:56:11 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Frente24h, expected 768, got 760]
Aug 5 17:56:11 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Frente, expected 768, got 760]
Aug 5 17:56:11 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Cozinha, expected 768, got 760]
Aug 5 17:56:11 server zmc_m3[1294798]: ERR [zmc_m3] [Failed to capture image from monitor 3 Cozinha (1/1)]
Aug 5 17:56:11 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Lavanderia, expected 768, got 760]
Aug 5 17:56:12 server zmc_m4[1294804]: ERR [zmc_m4] [Failed to capture image from monitor 4 Lavanderia (1/1)]
Aug 5 17:56:12 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Consultorio, expected 768, got 760]
Aug 5 17:56:12 server zmc_m5[1294808]: ERR [zmc_m5] [Failed to capture image from monitor 5 Consultorio (1/1)]
Aug 5 17:56:12 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Entrada, expected 768, got 760]
Aug 5 17:56:12 server zmc_m6[1294815]: ERR [zmc_m6] [Failed to capture image from monitor 6 Entrada (1/1)]
Aug 5 17:56:22 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Frente24h, expected 768, got 760]
Aug 5 17:56:22 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Frente, expected 768, got 760]
Aug 5 17:56:22 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Cozinha, expected 768, got 760]
Aug 5 17:56:23 server zmc_m3[1294884]: ERR [zmc_m3] [Failed to capture image from monitor 3 Cozinha (1/1)]
Aug 5 17:56:23 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Lavanderia, expected 768, got 760]
Aug 5 17:56:23 server zmc_m4[1294892]: ERR [zmc_m4] [Failed to capture image from monitor 4 Lavanderia (1/1)]
Aug 5 17:56:23 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Consultorio, expected 768, got 760]
Aug 5 17:56:23 server zmc_m5[1294891]: ERR [zmc_m5] [Failed to capture image from monitor 5 Consultorio (1/1)]
Aug 5 17:56:23 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Entrada, expected 768, got 760]
Aug 5 17:56:24 server zmc_m6[1294890]: ERR [zmc_m6] [Failed to capture image from monitor 6 Entrada (1/1)]
Aug 5 17:56:34 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Frente24h, expected 768, got 760]
Aug 5 17:56:34 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Frente, expected 768, got 760]
Aug 5 17:56:34 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Cozinha, expected 768, got 760]
Aug 5 17:56:34 server zmc_m3[1294941]: ERR [zmc_m3] [Failed to capture image from monitor 3 Cozinha (1/1)]
Aug 5 17:56:34 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Lavanderia, expected 768, got 760]
Aug 5 17:56:34 server zmc_m4[1294942]: ERR [zmc_m4] [Unable to open input http://server_local_ip/videostream.cgi?user=user&pwd=pass&rate=15 due to: Immediate exit requested]
Aug 5 17:56:34 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Consultorio, expected 768, got 760]
Aug 5 17:56:34 server zmc_m5[1294950]: ERR [zmc_m5] [Failed to capture image from monitor 5 Consultorio (1/1)]
Aug 5 17:56:34 server zmwatch[1294362]: ERR [Shared data size conflict in shared_data for monitor Entrada, expected 768, got 760]
Aug 5 17:56:34 server zmc_m6[1294949]: ERR [zmc_m6] [Failed to capture image from monitor 6 Entrada (1/1)]
Aug 5 17:56:44 server zmwatch[1294362]: ERR [Memory map file '/dev/shm/zm.mmap.1' does not exist in zmMemAttach. zmc might not be running.]
Aug 5 17:56:45 server zmwatch[1294362]: ERR [Memory map file '/dev/shm/zm.mmap.2' does not exist in zmMemAttach. zmc might not be running.]
Aug 5 17:56:45 server zmwatch[1294362]: ERR [Memory map file '/dev/shm/zm.mmap.3' does not exist in zmMemAttach. zmc might not be running.]
Aug 5 17:56:45 server zmwatch[1294362]: ERR [Memory map file '/dev/shm/zm.mmap.4' does not exist in zmMemAttach. zmc might not be running.]
Aug 5 17:56:45 server zmwatch[1294362]: ERR [Memory map file '/dev/shm/zm.mmap.5' does not exist in zmMemAttach. zmc might not be running.]
Aug 5 17:56:45 server zmwatch[1294362]: ERR [Memory map file '/dev/shm/zm.mmap.6' does not exist in zmMemAttach. zmc might not be running.]
it will just keep looping that, on the webui cameras will go up and down
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 12:11 am
by leewells
I'm seeing the same thing. Running Ubuntu 18.04.6. I finally built 1.36.21 from scratch using packpack, so I could downgrade (I couldn't find an older .deb file anywhere). I did try building 1.36.23 and it had the same "data size conflict' errors as the iconnor ppa version.
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 1:05 am
by rip
Yes. 1.36.23 annihilated my setup. The funny thing is, the changes are minor.
I suspect Packet queue, TZ change would not seem to be very traumatic unless the formatting really messes up the DB.
https://github.com/ZoneMinder/zoneminde ... ...1.36.23
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 1:14 am
by keithp
+1 for seeing this on 20.04. Very similar messages for me across 3 cameras that end with "expected 768, got 760". There are also, "..., shared data not valid" messages with those. I also noticed that while I do have /dev/shm mounted and the 3 camera files in there with activity (i.e. timestamps are being updated), /dev/shm in the console never moves off 0%.
Additionally after searching around, I tried the following things that did NOT work...
1) downgrade ffmpeg from 4.2.7 to 4.2.2
2) increasing MaxImageBufferCount (cleaned up errors in the log but that is it)
3) stopping zmwatch.pl... seems to work for a bit but then things got really bad... had to restart a camera twice for some odd reason and a couple of minutes after that the system load was up past 40.
I'm really not sure what is going on but I upgraded to 1.36.21 on 8/2. That version still had my camera's cycling offline but I could not pull up the log. It at one point seemed to be stable so I thought maybe it was just taking longer to settle down. I noticed today the problem returned and decided to do another update which installed .23 and since then the system has not been stable at all.
I really don't want to go back to 1.34.x but I'm at a loss and I really don't want to leave the system down.
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 3:13 am
by tsp84
the data structure "shared_data" is expected to be 768 bytes but is returning 760 bytes which is causing the error. ic0n is pushing a fix asap if not already done.
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 5:57 am
by Magic919
Just roll back to 1.36.21 pending a fix. Wait until someone else has tried .24 if you are being cautious.
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 9:00 am
by seaweed
Magic919 wrote: ↑Sat Aug 06, 2022 5:57 am
Just roll back to 1.36.21 pending a fix. Wait until someone else has tried .24 if you are being cautious.
Is it possible to rollback if you are using the ppa or do you need to build it from source?
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 9:59 am
by Magic919
I go here
https://launchpad.net/~iconnor/+archive ... tate=built
Download the .deb file. Run sudo dpkg -i on the file.
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 10:13 am
by seaweed
Thankyou much appreciated I'm back to 1.36.21 now and everything running again
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 10:59 am
by Magic919
You’re welcome. I’d suggest keeping the file handy as a bit of insurance.
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 2:43 pm
by iconnor
1.36.24 looks to be good.
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 3:41 pm
by ZMBrian
Upgrading to 1.36.24 resolved my issue. Thanks iConnor for a quick resolution!
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 6:17 pm
by sphillips
iconnor wrote: ↑Sat Aug 06, 2022 2:43 pm
1.36.24 looks to be good.
thank you all looks well again
Re: "Shared data size conflict in shared_data for monitor"
Posted: Sat Aug 06, 2022 9:31 pm
by JerWah
Can also confirm 1.36.24 fixed my issues.