SQL Error when defining zone in 1.26.4 (Bug report)
Posted: Sat Feb 15, 2014 4:09 pm
Hi !
recently I updateted an older Zoneminder installation to the newest version 1.26.4 (base: opensuse 13.1) and had immense problems to let it do the job as it was before. The problem was the zone definition.... The default definition does no motion detect at all. In the log I saw start/stop capturing messages, but no events have been recorded. So I tried to define a zone (door of a pub) but got all the time SQL-errors. I took a default (best,high sensivity), moved the corners to the right places and tried to store the setting, resulting in the following SQL-error:
I found out that the problem are the databasefields MaxBlobs and MaxPixelThreshold, that may not be empty, as it is to see in the given SQL statement. As I could read from documentation, it should be '0'. I changed it manually and entered the statement via mysql- interface like:
Now events are recorded.
Please correct this bug in sourcecode for all defaults (I checked all, they result in the same SQL-error).
Thank's
Nukem36
recently I updateted an older Zoneminder installation to the newest version 1.26.4 (base: opensuse 13.1) and had immense problems to let it do the job as it was before. The problem was the zone definition.... The default definition does no motion detect at all. In the log I saw start/stop capturing messages, but no events have been recorded. So I tried to define a zone (door of a pub) but got all the time SQL-errors. I took a default (best,high sensivity), moved the corners to the right places and tried to store the setting, resulting in the following SQL-error:
Code: Select all
SQL-ERR 'Incorrect integer value: '' for column 'MaxPixelThreshold' at row 1', statement was 'insert into Zones set MonitorId = '3', NumCoords = '4', Coords = '0,0 767,0 767,575 0,575', Area = '442368', AlarmRGB = '16711680', Name = 'Neu', Type = 'Active', Units = 'Percent', CheckMethod = 'Blobs', MinPixelThreshold = '20', MaxPixelThreshold = '', FilterX = '3', FilterY = '3', MinAlarmPixels = '35389', MaxAlarmPixels = '0', MinFilterPixels = '26542', MaxFilterPixels = '0', MinBlobPixels = '22118', MaxBlobPixels = '0', MinBlobs = '1', MaxBlobs = '', OverloadFrames = '0''
Code: Select all
insert into Zones set MonitorId = '3', NumCoords = '4', Coords = '0,0 767,0 767,575 0,575', Area = '442368', AlarmRGB = '16711680', Name = 'Neu', Type = 'Active', Units = 'Percent', CheckMethod = 'Blobs', MinPixelThreshold = '20', MaxPixelThreshold = '[b]0[/b]', FilterX = '3', FilterY = '3', MinAlarmPixels = '35389', MaxAlarmPixels = '0', MinFilterPixels = '26542', MaxFilterPixels = '0', MinBlobPixels = '22118', MaxBlobPixels = '0', MinBlobs = '1', MaxBlobs = '[b]0[/b]', OverloadFrames = '0'
Please correct this bug in sourcecode for all defaults (I checked all, they result in the same SQL-error).
Thank's
Nukem36