1.36.19 zmc is crashing...

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
ChuckSmith
Posts: 7
Joined: Wed Jul 21, 2021 12:10 pm

1.36.19 zmc is crashing...

Post by ChuckSmith »

I have created a new VM, into which I installed Ubuntu 22.04, then ZoneMinder 1.36.19. I added my cameras without issue, setting their mode to Monitor. In the log, I see these messages:

Date/Time Component Server PID Level Message File Line
2022-06-12 09:43:22 zmdc 936 ERR 'zmc -m 1' exited abnormally, exit status 7 zmdc.pl -
2022-06-12 09:43:22 zmc_m1 4620 INF Backtrace complete, please execute the following command for more information: addr2line -e /usr/bin/zmc 0x5567117eb803 0x7f1474781520 0x7f14748e01ca 0x5567117b22a0 0x7f1474768d90 0x7f1474768e40 0x5567117b4bd5 zm_signal.cpp 108
2022-06-12 09:43:22 zmc_m1 4620 ERR Backtrace 6: /usr/bin/zmc(+0x18bd5) [0x5567117b4bd5] zm_signal.cpp 101
2022-06-12 09:43:22 zmc_m1 4620 ERR Backtrace 5: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f1474768e40] zm_signal.cpp 101
2022-06-12 09:43:22 zmc_m1 4620 ERR Backtrace 4: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f1474768d90] zm_signal.cpp 101
2022-06-12 09:43:22 zmc_m1 4620 ERR Backtrace 3: /usr/bin/zmc(+0x162a0) [0x5567117b22a0] zm_signal.cpp 101
2022-06-12 09:43:22 zmc_m1 4620 ERR Backtrace 2: /lib/x86_64-linux-gnu/libc.so.6(+0x1a11ca) [0x7f14748e01ca] zm_signal.cpp 101
2022-06-12 09:43:22 zmc_m1 4620 ERR Backtrace 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f1474781520] zm_signal.cpp 101
2022-06-12 09:43:22 zmc_m1 4620 ERR Backtrace 0: /usr/bin/zmc(+0x4f803) [0x5567117eb803] zm_signal.cpp 101
2022-06-12 09:43:22 zmc_m1 4620 ERR Signal address is 0x7f1456705000, from 0x7f14748e01ca zm_signal.cpp 80
2022-06-12 09:43:22 zmc_m1 4620 ERR Got signal 7 (Bus error), crashing zm_signal.cpp 50
2022-06-12 09:43:21 zmc_m1 4620 INF Starting Capture version 1.36.19 zmc.cpp 220
2022-06-12 09:43:21 zmdc 936 INF 'zmc -m 1' starting at 22/06/12 09:43:21, pid = 4620 zmdc.pl -
2022-06-12 09:43:21 zmdc 4620 INF 'zmc -m 1' started at 22/06/12 09:43:21 zmdc.pl -
2022-06-12 09:43:21 zmdc 936 INF Starting pending process, zmc -m 1 zmdc.pl -

Running the addr2line command just returns seven lines of "??:0".

I believe my installation is up to date.

Any help would be greatly appreciated.

Thank you,
Chuck
paul-h
Posts: 7
Joined: Sun Jun 12, 2022 2:53 pm

Re: 1.36.19 zmc is crashing...

Post by paul-h »

I'm seeing exactly the same segfault after upgrading from Ubuntu 20.04 to 22.04 :(

I'm using the package that comes from the official Ubuntu repos 1.36.12+dfsg1-1 I was previous using the PPA at http://ppa.launchpad.net/iconnor/zoneminder-1.34/ubuntu
paul-h
Posts: 7
Joined: Sun Jun 12, 2022 2:53 pm

Re: 1.36.19 zmc is crashing...

Post by paul-h »

Someone has also reported a GitHub Issue 3497
ChuckSmith
Posts: 7
Joined: Wed Jul 21, 2021 12:10 pm

Re: 1.36.19 zmc is crashing...

Post by ChuckSmith »

Yesterday, I increased the memory of my VM, from 4G to 8G, then began changing the camera modes from "None" to "Monitor", one by one. As I did, I see the /dev/shm percentage increase. With two cameras in "Modect" mode and two in "Monitor" mode, it is reporting 77%. I am not back to my full configuration, but will continue making adjustments.
User avatar
iconnor
Posts: 2939
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: 1.36.19 zmc is crashing...

Post by iconnor »

You can reduce your image buffers setting... to like 3 which is the default now.
ChuckSmith
Posts: 7
Joined: Wed Jul 21, 2021 12:10 pm

Re: 1.36.19 zmc is crashing...

Post by ChuckSmith »

That reduced /dev/shm to 6%, and fps are at a normal range for my 5MP cameras.
Post Reply