Capture crash

Previous development branch now released as 1.36
Locked
Famous_Longwing
Posts: 4
Joined: Wed May 12, 2021 3:03 am

Capture crash

Post by Famous_Longwing »

Hello, Apologies if I am in the wrong area, however I am having trouble deciphering an error I have come across.

Host system:
Fedora 33 (uname -r) 5.11.18-200.fc33.x86_64

Zoneminder packages currently installed (these have updated as of when the error first occurred) I am using the zmrepo provided by zoneminder.com:
zoneminder-common-1.35.28-1.38.20210511gitgc080dd8a1.fc33.x86_64
zoneminder-httpd-1.35.28-1.38.20210511gitgc080dd8a1.fc33.x86_64
zoneminder-1.35.28-1.38.20210511gitgc080dd8a1.fc33.x86_64

Library version referenced in the below error (attempted downgrade, with same result listed below):
libstdc++-10.3.1-1.fc33.x86_64

Error when attempting to run zmc -m 1 manually:

Code: Select all

/usr/include/c++/10/bits/stl_vector.h:1045: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = Image*; _Alloc = std::allocator<Image*>; std::vector<_Tp, _Alloc>::reference = Image*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
5/11/21 23:01:31.793625 zmc_m1[67256].ERR-zm_signal.cpp/49 [Got signal 6 (Aborted), crashing]
05/11/21 23:01:31.793738 zmc_m1[67256].ERR-zm_signal.cpp/79 [Signal address is 0x106b8, from 0x7f276f6509d5]
05/11/21 23:01:31.794097 zmc_m1[67256].ERR-zm_signal.cpp/100 [Backtrace 0: zmc(+0x731f1) [0x55bb7df341f1]]
05/11/21 23:01:31.794147 zmc_m1[67256].ERR-zm_signal.cpp/100 [Backtrace 1: /lib64/libpthread.so.0(+0x141e0) [0x7f27715701e0]]
05/11/21 23:01:31.794183 zmc_m1[67256].ERR-zm_signal.cpp/100 [Backtrace 2: /lib64/libc.so.6(gsignal+0x145) [0x7f276f6509d5]]
05/11/21 23:01:31.794216 zmc_m1[67256].ERR-zm_signal.cpp/100 [Backtrace 3: /lib64/libc.so.6(abort+0x116) [0x7f276f6398a4]]
05/11/21 23:01:31.794249 zmc_m1[67256].ERR-zm_signal.cpp/100 [Backtrace 4: zmc(+0x48dc4) [0x55bb7df09dc4]]
05/11/21 23:01:31.794282 zmc_m1[67256].ERR-zm_signal.cpp/100 [Backtrace 5: zmc(+0x3c3f8) [0x55bb7defd3f8]]
05/11/21 23:01:31.794315 zmc_m1[67256].ERR-zm_signal.cpp/100 [Backtrace 6: zmc(+0x158ba) [0x55bb7ded68ba]]
05/11/21 23:01:31.794343 zmc_m1[67256].ERR-zm_signal.cpp/100 [Backtrace 7: /lib64/libc.so.6(__libc_start_main+0xf2) [0x7f276f63b1e2]]
05/11/21 23:01:31.794376 zmc_m1[67256].ERR-zm_signal.cpp/100 [Backtrace 8: zmc(+0x1752e) [0x55bb7ded852e]]
Camera:
rtsp connection to an ip camera (1080P resolution), works through VLC, both on my own machine, and on the host.


This error started appearing today (May 11th 2021) after I grabbed the latest zoneminder packages this morning (around 11 AM Eastern US time).
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Capture crash

Post by iconnor »

I don't know if I've fixed this, but we went looking and found once spot that could cause a problem.

So please update and try today's build.
Famous_Longwing
Posts: 4
Joined: Wed May 12, 2021 3:03 am

Re: Capture crash

Post by Famous_Longwing »

Sorry, seems the issue is still present in this version:

zoneminder-common-1.35.28-1.42.20210512gitg6f977da94.fc33.x86_64
zoneminder-httpd-1.35.28-1.42.20210512gitg6f977da94.fc33.x86_64
zoneminder-1.35.28-1.42.20210512gitg6f977da94.fc33.x86_64

Code: Select all

/usr/include/c++/10/bits/stl_vector.h:1045: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = Image*; _Alloc = std::allocator<Image*>; std::vector<_Tp, _Alloc>::reference = Image*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
05/12/21 18:57:58.782460 zmc_m1[182879].ERR-zm_signal.cpp/49 [Got signal 6 (Aborted), crashing]
05/12/21 18:57:58.782546 zmc_m1[182879].ERR-zm_signal.cpp/79 [Signal address is 0x2ca5f, from 0x7fd8381849d5]
05/12/21 18:57:58.782802 zmc_m1[182879].ERR-zm_signal.cpp/100 [Backtrace 0: zmc(+0x73251) [0x55fe25d5e251]]
05/12/21 18:57:58.782832 zmc_m1[182879].ERR-zm_signal.cpp/100 [Backtrace 1: /lib64/libpthread.so.0(+0x141e0) [0x7fd83a0a41e0]]
05/12/21 18:57:58.782858 zmc_m1[182879].ERR-zm_signal.cpp/100 [Backtrace 2: /lib64/libc.so.6(gsignal+0x145) [0x7fd8381849d5]]
05/12/21 18:57:58.782892 zmc_m1[182879].ERR-zm_signal.cpp/100 [Backtrace 3: /lib64/libc.so.6(abort+0x116) [0x7fd83816d8a4]]
05/12/21 18:57:58.782914 zmc_m1[182879].ERR-zm_signal.cpp/100 [Backtrace 4: zmc(+0x48e24) [0x55fe25d33e24]]
05/12/21 18:57:58.782933 zmc_m1[182879].ERR-zm_signal.cpp/100 [Backtrace 5: zmc(+0x3c458) [0x55fe25d27458]]
05/12/21 18:57:58.782953 zmc_m1[182879].ERR-zm_signal.cpp/100 [Backtrace 6: zmc(+0x158ba) [0x55fe25d008ba]]
05/12/21 18:57:58.782972 zmc_m1[182879].ERR-zm_signal.cpp/100 [Backtrace 7: /lib64/libc.so.6(__libc_start_main+0xf2) [0x7fd83816f1e2]]
05/12/21 18:57:58.782992 zmc_m1[182879].ERR-zm_signal.cpp/100 [Backtrace 8: zmc(+0x1752e) [0x55fe25d0252e]]

Edit:
Avoiding a double post, but I downgraded until I got a working version, apparently the change happened between these two versions:
Working:
zoneminder-common-1.35.28-1.19.20210508gitgd3e91da51.fc33.x86_64
zoneminder-httpd-1.35.28-1.19.20210508gitgd3e91da51.fc33.x86_64
zoneminder-1.35.28-1.19.20210508gitgd3e91da51.fc33.x86_64

First version with the failure I am seeing:
zoneminder-1.35.28-1.24.20210509gitg01834d4dd.fc33.x86_64.rpm
zoneminder-httpd-1.35.28-1.24.20210509gitg01834d4dd.fc33.x86_64.rpm
zoneminder-common-1.35.28-1.24.20210509gitg01834d4dd.fc33.x86_64.rpm
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Capture crash

Post by iconnor »

I have an idea what is going on based on some googling.

Do you have your ImageBufferCount set to 0? It actually needs to be somewhere around 3 to 5 (3 works for me but I've seen some choppiness in live view).

Some code assumes at least 1
Famous_Longwing
Posts: 4
Joined: Wed May 12, 2021 3:03 am

Re: Capture crash

Post by Famous_Longwing »

Imagebuffercount is set as 3. This seems to be default, as I did not change it since i reinstalled as a test.
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Capture crash

Post by iconnor »

I think I have it figured out. New packages building now.
Famous_Longwing
Posts: 4
Joined: Wed May 12, 2021 3:03 am

Re: Capture crash

Post by Famous_Longwing »

Installed these versions, monitors all work.

zoneminder-1.35.28-1.46.20210513gitga56b4053f.fc33.x86_64
zoneminder-common-1.35.28-1.46.20210513gitga56b4053f.fc33.x86_64
zoneminder-httpd-1.35.28-1.46.20210513gitga56b4053f.fc33.x86_64

Edit: Changed formatting, original post was on mobile.
Locked