Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZMS Segfault - Event Playback completely broken ("NaN" timestamps and JS Errors) #2497

Closed
frhun opened this issue Feb 2, 2019 · 5 comments
Closed
Labels

Comments

@frhun
Copy link

frhun commented Feb 2, 2019

Describe Your Environment
Centos 7
RPM Fusion
Versions:

  • httpd: 2.4.6 : 88.el7.centos
  • zoneminder: 1.32.3 : 1.el7

continuous recording on all cameras

Describe the bug
There seem to be problems in multiple places that make any kind of event review function completely unusable. The recording seems to be fine.
Forum Thread - multiple people having the same kind of issue (apparently even on fresh installs)
Forum Thread 2 - a little bit of a different immediate problem (but similar symptoms so probably related)
Symptoms:

  • "NaN" timestamps in event reviews (try german locale if it does not appear for you)
  • Event playback control not working
  • montage review not working
  • maybe unrelated: "Status: - FPS" in live montage

To Reproduce
Look at events in 1.32.3 under centos (with the event montage)
(for me it happened after updating from a previous version but on the forum someone reported similar problems on a fresh install.
JS spews errors (one every second or so)

uncaught TypeError: Cannot read property 'ServerId' of undefined
    at getImageSource (skins_classic_views_js_montagereview-classic-1544278956.js:120)
    at outputUpdate (skins_classic_views_js_montagereview-classic-1544278956.js:472)
    at timerFire (skins_classic_views_js_montagereview-classic-1544278956.js:247)
  1. in Console Click: Montage Review
  2. Click: 8 HOUR
  3. try changing time (jumps back and does nothing)
  4. look at Log or press F12 in Chrome

Expected behavior

  • clicking on play pause in event review should do something
  • scrubbing through the event montage after clicking on e.g. the 8h review should do something

Debug Logs
These are the errors are from the event review montage (hundreds of the same when you wait a few minutes)
Originating from here (in montage)

skins_classic_views_js_montagereview-classic-1544278956.js:120 Uncaught TypeError: Cannot read property 'ServerId' of undefined
    at getImageSource (skins_classic_views_js_montagereview-classic-1544278956.js:120)
    at outputUpdate (skins_classic_views_js_montagereview-classic-1544278956.js:472)
    at timerFire (skins_classic_views_js_montagereview-classic-1544278956.js:247)
    at setSpeed (skins_classic_views_js_montagereview-classic-1544278956.js:573)
    at initPage (skins_classic_views_js_montagereview-classic-1544278956.js:897)
    at mootools-core.js:4909
    at Array.forEach (<anonymous>)
    at Function.forEach (mootools-core.js:227)
    at Array.each (mootools-core.js:337)
    at fireEvent (mootools-core.js:4907)
skins_classic_views_js_montagereview-classic-1544278956.js:120 Uncaught TypeError: Cannot read property 'ServerId' of undefined
    at getImageSource (skins_classic_views_js_montagereview-classic-1544278956.js:120)
    at outputUpdate (skins_classic_views_js_montagereview-classic-1544278956.js:472)
    at timerFire (skins_classic_views_js_montagereview-classic-1544278956.js:247)
@frhun
Copy link
Author

frhun commented Feb 2, 2019

New Logs from trying to view event - grep'ed for ERR

2019-02-02 19:40:16.044317 web_js[4473].ERR-?view=event [getCmdResponse stream error: No data to read from socket - checkStreamForErrors()]
2019-02-02 19:40:15.912695 web_php[4473].ERR-/usr/share/zoneminder/www/includes/functions.php/2048 [No data to read from socket]
2019-02-02 19:40:15.891764 web_php[4473].ERR-/usr/share/zoneminder/www/ajax/stream.php/90 [Timed out waiting for msg /var/lib/zoneminder/sock/zms-359611s.sock]
2019-02-02 19:40:14.923601 zms_e45058[13539].ERR-zm_signal.cpp/102 [Backtrace 7: /usr/libexec/zoneminder/cgi-bin/nph-zms(+0x265f7) [0x559ba9ec55f7]]
2019-02-02 19:40:14.912529 zms_e45058[13539].ERR-zm_signal.cpp/102 [Backtrace 6: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f23e6c593d5]]
2019-02-02 19:40:14.901378 zms_e45058[13539].ERR-zm_signal.cpp/102 [Backtrace 5: /usr/libexec/zoneminder/cgi-bin/nph-zms(main+0xc5e) [0x559ba9ec429e]]
2019-02-02 19:40:14.890180 zms_e45058[13539].ERR-zm_signal.cpp/102 [Backtrace 4: /usr/libexec/zoneminder/cgi-bin/nph-zms(_ZN11EventStream9runStreamEv+0x108) [0x559ba9ee7508]]
2019-02-02 19:40:14.879185 zms_e45058[13539].ERR-zm_signal.cpp/102 [Backtrace 3: /usr/libexec/zoneminder/cgi-bin/nph-zms(_ZN10StreamBase17checkCommandQueueEv+0xd5) [0x559ba9f846e5]]
2019-02-02 19:40:14.867981 zms_e45058[13539].ERR-zm_signal.cpp/102 [Backtrace 2: /usr/libexec/zoneminder/cgi-bin/nph-zms(_ZN11EventStream14processCommandEPKN10StreamBase6CmdMsgE+0x1a3) [0x559ba9eda2f3]]
2019-02-02 19:40:14.856930 zms_e45058[13539].ERR-zm_signal.cpp/102 [Backtrace 1: /lib64/libpthread.so.0(+0xf5d0) [0x7f23eadd35d0]]
2019-02-02 19:40:14.839080 zms_e45058[13539].ERR-zm_signal.cpp/102 [Backtrace 0: /usr/libexec/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x72) [0x559ba9f7e812]]
2019-02-02 19:40:14.690194 zms_e45058[13539].ERR-zm_signal.cpp/81 [Signal address is 0x7f23ec0fdff8, from 0x559ba9eda2f3]
2019-02-02 19:40:14.670378 zms_e45058[13539].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]
2019-02-02 19:40:11.679729 zms_e45066[13332].ERR-zm_eventstream.cpp/720 [Unable to send stream frame: Broken pipe]
2019-02-02 19:39:48.743178 web_php[3272].ERR-/usr/share/zoneminder/www/includes/functions.php/2048 [Socket /var/lib/zoneminder/sock/zms-783012s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.]
2019-02-02 19:34:56.698365 zms_e38047[12947].ERR-zm_eventstream.cpp/720 [Unable to send stream frame: Broken pipe]
2019-02-02 19:33:50.969037 zms_e38047[12838].ERR-zm_eventstream.cpp/720 [Unable to send stream frame: Broken pipe]

By the way, watching the captured Stream live works.

@frhun frhun changed the title Event Playback completely broken ("NaN" timestamps and JS Errors) Event Playback completely broken ("NaN" timestamps and JS Errors) Segfault Feb 2, 2019
@frhun frhun changed the title Event Playback completely broken ("NaN" timestamps and JS Errors) Segfault Event Playback completely broken ("NaN" timestamps and JS Errors) ZMS Segfault Feb 2, 2019
@frhun frhun changed the title Event Playback completely broken ("NaN" timestamps and JS Errors) ZMS Segfault ZMS Segfault - Event Playback completely broken ("NaN" timestamps and JS Errors) Feb 2, 2019
@frhun
Copy link
Author

frhun commented Feb 3, 2019

New Error when trying to look at Event montage
web_js[26848].ERR-https:[Server URL]/zm/cache/skins_classic_views_js_montagereview-base-1544278956.js/120 [TypeError: storage is undefined]
Line 120

@connortechnology
Copy link
Member

I may have fixed the storage error. Can you confirm?

I suspect that you have deleted your default Storage area.

@frhun
Copy link
Author

frhun commented Feb 13, 2019

Yes i deleted it while trying to fix the above errors ironically.

@stale
Copy link

stale bot commented Apr 14, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 14, 2019
@stale stale bot closed this as completed Apr 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants