Hello,
I have installed Zoneminder 1.32.3 from clean install.
I have managed to get Event Notification working and pushes to my phone are working as expected. I have now got this running as a daemon.
I then moved onto Machine Learning Hooks and now have 2 issues:
- I have a Segfault that I am trying to debug
Aug 14 15:51:18 cctv kernel: [ 137.144893] detect.py[1527]: segfault at 2260 ip 0000000000002260 sp 00007ffd83dca228 error 14 in python3.5[400000+3aa000]
- Second issue is I can not get the debug logs working correctly for _zmesdetect
Not really sure where to go from here without been able to get debugging working, everything else looks great.
Event Notification detect.py Segfault
Re: Event Notification detect.py Segfault
This generally means you have some form of library conflict - maybe OpenCV (or maybe you are mixing python paths?)
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Re: Event Notification detect.py Segfault
Thanks for the hint, it was a combination of Python paths and a load of dependencies. Installing manually and reading the output has made for a successful install.
I just have one last issue that zmeventnotification can't write back to zoneminder to show the object it identified. Permissions seem fine.
I just have one last issue that zmeventnotification can't write back to zoneminder to show the object it identified. Permissions seem fine.
Code: Select all
Aug 16 18:56:54 cctv /detect.py[27595]: ERR [zmesdetect_m5] [Could not write image to ZoneMinder as eventpath not present]
Aug 16 18:56:54 cctv /detect.py[27595]: INF [zmesdetect_m5] [Prediction string:[a] detected:person:79% ]
Aug 16 18:56:54 cctv zmeventnotification[27567]: INF [For Monitor:5 event:597, hook script returned with text:[a] detected:person:79% exit:0]
Aug 16 18:56:54 cctv zmeventnotification[27567]: INF [Matching alarm to connection rules...]
Aug 16 18:56:54 cctv zmeventnotification[27567]: INF [Checking alarm rules for token ending in:...6H5-wAyMQC]
Aug 16 18:56:54 cctv zmeventnotification[27567]: INF [should NOT send alarm as Monitor 5 is excluded]
Aug 16 18:56:54 cctv zmeventnotification[27567]: INF [Checking alarm rules for token ending in:...jNrCutWqEj]
Aug 16 18:56:54 cctv zmeventnotification[27567]: INF [Monitor 5 event: last time not found, so should send]
Aug 16 18:56:54 cctv zmeventnotification[27567]: INF [Sending notification over FCM]
Re: Event Notification detect.py Segfault
Glad you got it working.
The reason that is not working is you are on ZM 1.32.3. It requires 1.33.x (see comments)
The reason that is not working is you are on ZM 1.32.3. It requires 1.33.x (see comments)
n8091977 wrote: ↑Fri Aug 16, 2019 6:20 pm Thanks for the hint, it was a combination of Python paths and a load of dependencies. Installing manually and reading the output has made for a successful install.
I just have one last issue that zmeventnotification can't write back to zoneminder to show the object it identified. Permissions seem fine.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Re: Event Notification detect.py Segfault
Sorry should have said I had upgraded to 1.33.14
Re: Event Notification detect.py Segfault
All working now, had to set hook_pass_image_path variable.
What an awesome addition to zoneminder that I've been using for 6 years!
What an awesome addition to zoneminder that I've been using for 6 years!
Re: Event Notification detect.py Segfault
Glad you like it!
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs