Memory map and palette issues

Forum for questions and support relating to the 1.26.x releases only.
Locked
ratatine
Posts: 6
Joined: Thu Feb 16, 2012 5:20 am

Memory map and palette issues

Post by ratatine »

Hey all. Just bit the bullet and upgraded my 1.25 to 1.26.4 and nothing has worked since. The first issue I ran into was complaints about access to a shared memory ID. The usual fixes didn't work. Had plenty of allocated shared memory. In the end fixed that one by adding -DENABLE_MMAP to the compile on cmake.

However now I'm having two separate log errors. One is fatal which is:
zmc_dvideo1 - Unable to find a suitable format conversion for the selected palette and target colorspace.

The other is an error:
zmwatch - Memory map file '/dev/shm/zm.mmap.1' should have been 896 but was instead 0

I look at the shared memory files and (while previously it was creating them) it is not now. This may be because zmc is crashing.

I'm not really get much more from the log. Any advice on where I can look next would be appreciated! Log is attached as well.

2013-10-30 14:13:38.747100 zmpkg[25059].INF-zmpkg.pl [Command: start]
2013-10-30 14:13:46.378020 zmdc[25087].INF-zmdc.pl [Server starting at 13/10/30 14:13:46]
2013-10-30 14:13:49.504340 zmdc[25087].INF-zmdc.pl ['zmc -d /dev/video2' starting at 13/10/30 14:13:49, pid = 25113]
2013-10-30 14:13:49.504400 zmdc[25113].INF-zmdc.pl ['zmc -d /dev/video2' started at 13/10/30 14:13:49]
2013-10-30 14:13:49.590198 zmc_dvideo2[25113].INF-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/406 [No direct match for the selected palette and target colorspace. Format conversion is required, performance penalty expected]
2013-10-30 14:13:49.662736 zmc_dvideo2[25113].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:13:49.730300 zmdc[25087].ERR-zmdc.pl ['zmc -d /dev/video2' exited abnormally, exit status 255]
2013-10-30 14:13:49.771300 zmdc[25087].INF-zmdc.pl [Starting pending process, zmc -d /dev/video2]
2013-10-30 14:13:49.814970 zmdc[25087].INF-zmdc.pl ['zmc -d /dev/video2' starting at 13/10/30 14:13:49, pid = 25121]
2013-10-30 14:13:49.815070 zmdc[25121].INF-zmdc.pl ['zmc -d /dev/video2' started at 13/10/30 14:13:49]
2013-10-30 14:13:49.865140 zmdc[25087].INF-zmdc.pl ['zma -m 1' starting at 13/10/30 14:13:49, pid = 25124]
2013-10-30 14:13:49.865200 zmdc[25124].INF-zmdc.pl ['zma -m 1' started at 13/10/30 14:13:49]
2013-10-30 14:13:49.907537 zmc_dvideo2[25121].INF-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/406 [No direct match for the selected palette and target colorspace. Format conversion is required, performance penalty expected]
2013-10-30 14:13:49.957298 zma_m1[25124].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:13:49.979858 zmc_dvideo2[25121].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:13:50.055760 zmdc[25087].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2013-10-30 14:13:50.138450 zmdc[25087].ERR-zmdc.pl ['zmc -d /dev/video2' exited abnormally, exit status 255]
2013-10-30 14:13:50.180170 zmdc[25087].INF-zmdc.pl [Starting pending process, zma -m 1]
2013-10-30 14:13:50.223930 zmdc[25087].INF-zmdc.pl ['zma -m 1' starting at 13/10/30 14:13:50, pid = 25134]
2013-10-30 14:13:50.224020 zmdc[25134].INF-zmdc.pl ['zma -m 1' started at 13/10/30 14:13:50]
2013-10-30 14:13:50.274050 zmdc[25087].INF-zmdc.pl ['zmc -d /dev/video1' starting at 13/10/30 14:13:50, pid = 25137]
2013-10-30 14:13:50.274120 zmdc[25137].INF-zmdc.pl ['zmc -d /dev/video1' started at 13/10/30 14:13:50]
2013-10-30 14:13:50.324137 zma_m1[25134].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:13:50.383999 zmc_dvideo1[25137].INF-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/406 [No direct match for the selected palette and target colorspace. Format conversion is required, performance penalty expected]
2013-10-30 14:13:50.422920 zmdc[25087].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2013-10-30 14:13:50.505590 zmc_dvideo1[25137].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:13:50.557970 zmdc[25087].INF-zmdc.pl ['zmfilter.pl' starting at 13/10/30 14:13:50, pid = 25147]
2013-10-30 14:13:50.558060 zmdc[25147].INF-zmdc.pl ['zmfilter.pl' started at 13/10/30 14:13:50]
2013-10-30 14:13:50.639290 zmdc[25087].ERR-zmdc.pl ['zmc -d /dev/video1' exited abnormally, exit status 255]
2013-10-30 14:13:50.772840 zmdc[25087].INF-zmdc.pl [Starting pending process, zmc -d /dev/video1]
2013-10-30 14:13:50.831090 zmdc[25087].ERR-zmdc.pl ['zmfilter.pl ' exited abnormally, exit status 9]
2013-10-30 14:13:50.866480 zmdc[25087].INF-zmdc.pl ['zmc -d /dev/video1' starting at 13/10/30 14:13:50, pid = 25155]
2013-10-30 14:13:50.866510 zmdc[25155].INF-zmdc.pl ['zmc -d /dev/video1' started at 13/10/30 14:13:50]
2013-10-30 14:13:50.917073 zmc_dvideo1[25155].INF-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/406 [No direct match for the selected palette and target colorspace. Format conversion is required, performance penalty expected]
2013-10-30 14:13:50.947940 zmdc[25087].INF-zmdc.pl [Starting pending process, zmfilter.pl]
2013-10-30 14:13:50.989497 zmc_dvideo1[25155].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:13:51.025120 zmdc[25087].INF-zmdc.pl ['zmfilter.pl' starting at 13/10/30 14:13:51, pid = 25160]
2013-10-30 14:13:51.025120 zmdc[25160].INF-zmdc.pl ['zmfilter.pl' started at 13/10/30 14:13:51]
2013-10-30 14:13:51.098150 zmdc[25087].ERR-zmdc.pl ['zmc -d /dev/video1' exited abnormally, exit status 255]
2013-10-30 14:13:51.133900 zmdc[25163].INF-zmdc.pl ['zmaudit.pl -c' started at 13/10/30 14:13:51]
2013-10-30 14:13:51.133940 zmdc[25087].INF-zmdc.pl ['zmaudit.pl -c' starting at 13/10/30 14:13:51, pid = 25163]
2013-10-30 14:13:51.289750 zmdc[25087].ERR-zmdc.pl ['zmfilter.pl ' exited abnormally, exit status 9]
2013-10-30 14:13:51.350570 zmdc[25087].INF-zmdc.pl ['zmwatch.pl' starting at 13/10/30 14:13:51, pid = 25174]
2013-10-30 14:13:51.350640 zmdc[25174].INF-zmdc.pl ['zmwatch.pl' started at 13/10/30 14:13:51]
2013-10-30 14:13:51.541280 zmwatch[25174].INF-zmwatch.pl [Watchdog starting]
2013-10-30 14:13:51.558590 zmdc[25087].INF-zmdc.pl ['zmupdate.pl -c' starting at 13/10/30 14:13:51, pid = 25182]
2013-10-30 14:13:51.558660 zmdc[25182].INF-zmdc.pl ['zmupdate.pl -c' started at 13/10/30 14:13:51]
2013-10-30 14:13:51.590060 zmwatch[25174].INF-zmwatch.pl [Watchdog pausing for 30 seconds]
2013-10-30 14:13:55.037400 zmdc[25087].INF-zmdc.pl [Starting pending process, zma -m 1]
2013-10-30 14:13:55.081310 zmdc[25087].INF-zmdc.pl ['zma -m 1' starting at 13/10/30 14:13:55, pid = 25191]
2013-10-30 14:13:55.081450 zmdc[25191].INF-zmdc.pl ['zma -m 1' started at 13/10/30 14:13:55]
2013-10-30 14:13:55.120900 zmdc[25087].INF-zmdc.pl [Starting pending process, zmc -d /dev/video2]
2013-10-30 14:13:55.173036 zma_m1[25191].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:13:55.198270 zmdc[25087].INF-zmdc.pl ['zmc -d /dev/video2' starting at 13/10/30 14:13:55, pid = 25196]
2013-10-30 14:13:55.198270 zmdc[25196].INF-zmdc.pl ['zmc -d /dev/video2' started at 13/10/30 14:13:55]
2013-10-30 14:13:55.279550 zmdc[25087].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2013-10-30 14:13:55.290439 zmc_dvideo2[25196].INF-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/406 [No direct match for the selected palette and target colorspace. Format conversion is required, performance penalty expected]
2013-10-30 14:13:55.354546 zmc_dvideo2[25196].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:13:55.388610 zmdc[25087].ERR-zmdc.pl ['zmc -d /dev/video2' exited abnormally, exit status 255]
2013-10-30 14:13:56.022600 zmdc[25087].INF-zmdc.pl [Starting pending process, zmc -d /dev/video1]
2013-10-30 14:13:56.048060 zmdc[25087].INF-zmdc.pl ['zmc -d /dev/video1' starting at 13/10/30 14:13:56, pid = 25201]
2013-10-30 14:13:56.048140 zmdc[25201].INF-zmdc.pl ['zmc -d /dev/video1' started at 13/10/30 14:13:56]
2013-10-30 14:13:56.079340 zmdc[25087].INF-zmdc.pl [Starting pending process, zmfilter.pl]
2013-10-30 14:13:56.123645 zmc_dvideo1[25201].INF-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/406 [No direct match for the selected palette and target colorspace. Format conversion is required, performance penalty expected]
2013-10-30 14:13:56.140210 zmdc[25087].INF-zmdc.pl ['zmfilter.pl' starting at 13/10/30 14:13:56, pid = 25206]
2013-10-30 14:13:56.140210 zmdc[25206].INF-zmdc.pl ['zmfilter.pl' started at 13/10/30 14:13:56]
2013-10-30 14:13:56.171176 zmc_dvideo1[25201].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:13:56.230290 zmdc[25087].ERR-zmdc.pl ['zmc -d /dev/video1' exited abnormally, exit status 255]
2013-10-30 14:13:56.393120 zmdc[25087].ERR-zmdc.pl ['zmfilter.pl ' exited abnormally, exit status 9]
2013-10-30 14:14:05.034810 zmdc[25087].INF-zmdc.pl [Starting pending process, zma -m 1]
2013-10-30 14:14:05.073740 zmdc[25087].INF-zmdc.pl ['zma -m 1' starting at 13/10/30 14:14:05, pid = 25212]
2013-10-30 14:14:05.073890 zmdc[25212].INF-zmdc.pl ['zma -m 1' started at 13/10/30 14:14:05]
2013-10-30 14:14:05.122980 zmdc[25087].INF-zmdc.pl [Starting pending process, zmc -d /dev/video2]
2013-10-30 14:14:05.174971 zma_m1[25212].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:14:05.200310 zmdc[25087].INF-zmdc.pl ['zmc -d /dev/video2' starting at 13/10/30 14:14:05, pid = 25217]
2013-10-30 14:14:05.200330 zmdc[25217].INF-zmdc.pl ['zmc -d /dev/video2' started at 13/10/30 14:14:05]
2013-10-30 14:14:05.289970 zmdc[25087].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2013-10-30 14:14:05.300835 zmc_dvideo2[25217].INF-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/406 [No direct match for the selected palette and target colorspace. Format conversion is required, performance penalty expected]
2013-10-30 14:14:05.364901 zmc_dvideo2[25217].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:14:05.407340 zmdc[25087].ERR-zmdc.pl ['zmc -d /dev/video2' exited abnormally, exit status 255]
2013-10-30 14:14:06.049480 zmdc[25087].INF-zmdc.pl [Starting pending process, zmc -d /dev/video1]
2013-10-30 14:14:06.083360 zmdc[25087].INF-zmdc.pl ['zmc -d /dev/video1' starting at 13/10/30 14:14:06, pid = 25222]
2013-10-30 14:14:06.083410 zmdc[25222].INF-zmdc.pl ['zmc -d /dev/video1' started at 13/10/30 14:14:06]
2013-10-30 14:14:06.131310 zmdc[25087].INF-zmdc.pl [Starting pending process, zmfilter.pl]
2013-10-30 14:14:06.184125 zmc_dvideo1[25222].INF-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/406 [No direct match for the selected palette and target colorspace. Format conversion is required, performance penalty expected]
2013-10-30 14:14:06.217150 zmdc[25087].INF-zmdc.pl ['zmfilter.pl' starting at 13/10/30 14:14:06, pid = 25227]
2013-10-30 14:14:06.217150 zmdc[25227].INF-zmdc.pl ['zmfilter.pl' started at 13/10/30 14:14:06]
2013-10-30 14:14:06.256496 zmc_dvideo1[25222].FAT-/root/ZoneMinder-1.26.4/src/zm_local_camera.cpp/485 [Unable to find a suitable format conversion for the selected palette and target colorspace.]
2013-10-30 14:14:06.340680 zmdc[25087].ERR-zmdc.pl ['zmc -d /dev/video1' exited abnormally, exit status 255]
2013-10-30 14:14:06.494740 zmdc[25087].ERR-zmdc.pl ['zmfilter.pl ' exited abnormally, exit status 9]
chippy99
Posts: 66
Joined: Wed Aug 30, 2006 5:38 pm
Location: Barnet, Herts. UK

Re: Memory map and palette issues

Post by chippy99 »

What is your capture pallete and target colourspace set to ?
ratatine
Posts: 6
Joined: Thu Feb 16, 2012 5:20 am

Re: Memory map and palette issues

Post by ratatine »

So after 24 hours doing nothing on the system it has magically started working on its own. No reboots, no changes. Insane.

I did notice one issue after it started working where I had to log out and log back in to see video because zms was reporting authentication issues in the log. The memory map files exist now on the filesystem. Will report back if the issue resurfaces.
ratatine
Posts: 6
Joined: Thu Feb 16, 2012 5:20 am

Re: Memory map and palette issues

Post by ratatine »

Oh and Chippy, to answer your question for reference sake, BGR32/NTSC with 32 bit color. Resolution is 720x480. Capture method is vfl2 and I'm using a bt878 capture card.

ipcs -l is
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 67108864
max total shared memory (kbytes) = 17179869184
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 = 15731
max size of message (bytes) = 65536
default max size of queue (bytes) = 65536
chippy99
Posts: 66
Joined: Wed Aug 30, 2006 5:38 pm
Location: Barnet, Herts. UK

Re: Memory map and palette issues

Post by chippy99 »

Well, good to hear that all is working ok :)
Locked