Event Notification detect.py Segfault

Discussion topics related to mobile applications for ZoneMinder
Post Reply
n8091977
Posts: 5
Joined: Thu Oct 11, 2018 6:20 pm

Event Notification detect.py Segfault

Post by n8091977 » Wed Aug 14, 2019 3:03 pm

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.

User avatar
asker
Posts: 1070
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event Notification detect.py Segfault

Post by asker » Thu Aug 15, 2019 3:48 pm

This generally means you have some form of library conflict - maybe OpenCV (or maybe you are mixing python paths?)
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

n8091977
Posts: 5
Joined: Thu Oct 11, 2018 6:20 pm

Re: Event Notification detect.py Segfault

Post by n8091977 » 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.

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]

User avatar
asker
Posts: 1070
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event Notification detect.py Segfault

Post by asker » Fri Aug 16, 2019 9:59 pm

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)
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.
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

n8091977
Posts: 5
Joined: Thu Oct 11, 2018 6:20 pm

Re: Event Notification detect.py Segfault

Post by n8091977 » Sat Aug 17, 2019 8:05 am

Sorry should have said I had upgraded to 1.33.14

n8091977
Posts: 5
Joined: Thu Oct 11, 2018 6:20 pm

Re: Event Notification detect.py Segfault

Post by n8091977 » Sat Aug 17, 2019 6:07 pm

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!

User avatar
asker
Posts: 1070
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event Notification detect.py Segfault

Post by asker » Sun Aug 18, 2019 8:19 pm

Glad you like it!
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest