Closed jnikolich closed 2 years ago
Lots has changed since this. That forum post was resolved by reducing ImageBuffers to a sane number (3). Perhaps that will work here as well. Anyways, please update us on the status of this issue.
Re-tested with the OS / apps and ZM updated to the following versions, all-of-which were current as of the time this comment was written:
OS: _Fedora 36 (kernel-5.18.16-200.fc36.x8664 ZoneMinder: _zoneminder-1.37.20-1.1.20220810gitg80227d749.fc36.x8664 FFMpeg: _ffmpeg-5.0.1-3.fc36.x8664 GlibC: _glibc-2.35-15.fc36.x8664
No change - the issue persists. The backtrace looks identical, and the logging info preceding the segv also looks the same. More specifically, there's nothing being mentioned about buffers getting overrun, permissions errors being encountered, etc.
FWIW I never really thought the issue in that forum post was related - they had at least a few monitors working in recording mode, In my case, as soon as I turn on recording for the only defined monitor, the problem occurs.
Memory-wise, the VM has 8GB allocated, with approx. 87% of that free right before I toggle recording on. Once it enable recording, it rapidly decreases to about 80.5% free, before the segv occurs and free memory bounces back up to 87%. I originally had only 4GB memory allocated, but upped it to 8GB in order to conclusively rule out the possibility of systemd-oomd killing off any processes due to memory-constraints.
Please advise on any additional info you might need from me, or next-steps you'd like me to take.
Thanks very much.
I can confirm this issue. For now you can record only jpegs. Turn off video writer. I should have a fix soon
After some time spent re-testing, I can confirm this is now working. Thanks for the fix - if anything else comes up as I test this fix more thoroughly, I'll raise a new issue.
Thanks again.
Describe Your Environment OS: Fedora 36 (5.17.11-300.fc36.x86_64) ZoneMinder Version: zoneminder-common-1.37.16-1.177.20220604gitg4be56ec67 from ZMRepo Browser: n/a, but FireFox 101.0 (Windows 10) FFMpeg: 5.0.1 Glibc: 2.35-11.fc36.x86_64 Output of
rpm -qa | grep -i zoneminder
:List of ALL installed packages is available on PasteBin here.
Describe the bug ZoneMinder 1.37.16-1.177 is installed on a Fedora 36 x86_64 host. One monitor has been configured, and with capture and analysis set to Always but recording None, live-view is possible. Things work as expected.
However as soon as recording is changed to Always, zmc_m1 immediately tosses a SEGV and emits a backtrace. zmc_m1 respawns and again SEGVs, repeating endlessly.
No data gets recorded into
/var/data/zm_data/events/1/2022-06-04/34
. In fact nothing exists anywhere under/var/data/zm_data/events
except for a bunch of subdirectories.Zoneminder runs as user
apache:apache
. Perms on/var/data/zm_data/events/1/2022-06-04/34
:Expected behavior Recording commences, with no segment violations/backtraces, and with recorded data accumulating in the proper filesystem location.
Debug Logs Full zmc_m1 debug log (lvl 4) has been preserved, and is available on PasteBin here. Pertinent output at the time of failure looks like:
Executing addr2line as suggested above yields little info: