Floating Point Exception

Discussions related to the 1.36.x series of ZoneMinder
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Floating Point Exception

Post by SteveGilvarry »

So your error about monitor not decoding is coming from this line.
if ((monitor->GetType() == Monitor::FFMPEG) and !monitor->DecodingEnabled() ) {

So that is pretty cut and dry as to what would cause it, the fact that you get this error says you have FFMPEG monitor and second part is NOT DecodingEnabled. So fingers crossed this will fix it.

Go to the monitor settings and look on the General tab, about half way down is Decoding Enabled, should be ticked, without it Live view won't work. Hope this is it.

Interestingly you never got that Floating Point Exception in that part of the debug log, well not that I saw. If you can get get it to do that please post the log. Can always do via DM if worried about contents.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
SBCDave
Posts: 36
Joined: Tue Mar 24, 2020 8:32 pm

Re: Floating Point Exception

Post by SBCDave »

I don't have a check box for decoding enabled.
I'm on 1.37.1 (just upgraded again yesterday and at some point I put the development repo in my sources.list)
My general tab has these:

Name: NW-SW Front Yard
Notes:
Server: none
Source type: ffmpeg
Function: mocord
Analysis enabled (which is checked)
Linked monitors: 0 selected
Groups: 0 selected
Analysis fps:
Maximum fps:
Alarm maximum fps:
Reference Image Blend %ge: 10
Alarm Reference Image Blend %ge: 20
Triggers: none available
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Floating Point Exception

Post by SteveGilvarry »

Here is what it should look like (Sorry was testing Dark CSS). I have seen the GUI not load new changes before on an upgrade. CTRL+F5 maybe clear the cache.
Screen Shot 2021-08-15 at 4.53.19 pm.png
Screen Shot 2021-08-15 at 4.53.19 pm.png (148.41 KiB) Viewed 7306 times
Might have to check your DB to see if field is there in monitor table
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
SBCDave
Posts: 36
Joined: Tue Mar 24, 2020 8:32 pm

Re: Floating Point Exception

Post by SBCDave »

Thanks so much. I really appreciate the help.

I couldn't figure out how to clear the cache on my phone browser but I was able to ssh in and look at the db with my phone from bed, and sure enough DecodingEnabled was zero on this monitor but 1 on the monitors that work. I updated it and voila, live stream works now.

Code: Select all

mysql> select DecodingEnabled from Monitors where Id = 3;
+-----------------+
| DecodingEnabled |
+-----------------+
|               0 |
+-----------------+
1 row in set (0.00 sec)

mysql> select DecodingEnabled from Monitors where Id = 2;
+-----------------+
| DecodingEnabled |
+-----------------+
|               1 |
+-----------------+
1 row in set (0.00 sec)

mysql> update Monitors set DecodingEnabled = 1  where Id = 3;
Query OK, 1 row affected (0.08 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> select DecodingEnabled from Monitors where Id = 3;
+-----------------+
| DecodingEnabled |
+-----------------+
|               1 |
+-----------------+
1 row in set (0.00 sec)

mysql> exit
Bye
dave@server:~$ sudo systemctl restart zoneminder.service
This is the newest monitor, so maybe an upgrade auto updated the field to 1 for the others, but then I added this one with a bad GUI page that didn't populate that field for me. I'll check clearing cache on my computer tomorrow and hopefully be able to get that check box. Thanks again.
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Floating Point Exception

Post by SteveGilvarry »

Great glad we could work it out. DB defaults it to 1 on new and also updates, but maybe somewhere in the save code in php it is putting a zero if it doesn't get a value.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Post Reply