Page 1 of 1

zmu gives segmentation fault

Posted: Tue Mar 21, 2006 5:43 pm
by Darkstar
Hi,
so far I have (nearly) no problems with Zoneminder but when I use zmu -l it gives me a segmentation fault after the first monitor (out of two) and also zmu -m 2 -q (2 is my first monitor) gives me a segmentation fault after printing out the informations about the last zone. As everything works fine I don't know if this indicates a serious problem or only a minor bug somewhere. Any ideas?

Helge.

Code: Select all

sfu2-server:/tmp# zmu -m 2 -q
Id : 2
Name : EG
Type : Remote
Host : 192.168.2.200
Port : 80
Path : /IMAGE.JPG
Width : 640
Height : 480
Palette : 4
Colours : 3
Event Prefix : Event-
Label Format : %%s - %y/%m/%d %H:%M:%S
Label Coord : 0,0
Image Buffer Count : 50
Warmup Count : 15
Pre Event Count : 10
Post Event Count : 10
Alarm Frame Count : 1
Section Length : 600
Maximum FPS : 5.00
Reference Blend %ge : 15
Track Motion : 0
Function: 3 - Motion Detection
Zones : 3
  Id : 2
  Label : All
  Type: 1 - Active
  Alarm RGB : ff0000
  Check Method: 1 - Alarmed Pixels
  Min Pixel Threshold : 10
  Max Pixel Threshold : 0
  Min Alarm Pixels : 15360
  Max Alarm Pixels : 0
  Filter Box : 5,5
  Min Filter Pixels : 0
  Max Filter Pixels : 0
  Min Blob Pixels : 0
  Max Blob Pixels : 0
  Min Blobs : 1
  Max Blobs : 0
  Id : 5
  Label : New
  Type: 5 - Inactive
  Alarm RGB : 000000
  Check Method: 0 - Unknown
  Min Pixel Threshold : 0
  Max Pixel Threshold : 0
  Min Alarm Pixels : 0
  Max Alarm Pixels : 0
  Filter Box : 0,0
  Min Filter Pixels : 0
  Max Filter Pixels : 0
  Min Blob Pixels : 0
  Max Blob Pixels : 0
  Min Blobs : 0
  Max Blobs : 0
  Id : 6
  Label : New
  Type: 5 - Inactive
  Alarm RGB : 000000
  Check Method: 0 - Unknown
  Min Pixel Threshold : 0
  Max Pixel Threshold : 0
  Min Alarm Pixels : 0
  Max Alarm Pixels : 0
  Filter Box : 0,0
  Min Filter Pixels : 0
  Max Filter Pixels : 0
  Min Blob Pixels : 0
  Max Blob Pixels : 0
  Min Blobs : 0
  Max Blobs : 0

Speicherzugriffsfehler

Posted: Thu Mar 23, 2006 4:44 pm
by zoneminder
I suspect this is due to a zone misconfiguration. Can you print out the entries in the Zones DB table?

Posted: Fri Mar 24, 2006 11:46 am
by Darkstar
That was my guess too, so I deleted the two additional zones and created one new, and now zmu -m 2 -q works, but "zmu -l" still gives a segmentation fault after the first monitor:

Code: Select all

sfu2-server:/tmp# zmu -l
  Id Func State TrgState    LastImgTim RdIdx WrIdx LastEvt FrmRate
   2    4     4        0 1143200811.01    31    31    2280    0.66
Speicherzugriffsfehler
Helge.

Posted: Fri Mar 24, 2006 12:01 pm
by zoneminder
There was abug in zmu.cpp with an extra 'delete monitor' in zmu.cpp at line 716. If you delete this and rebuild then it should be ok.

Posted: Fri Apr 07, 2006 8:55 am
by Darkstar
Thank you, that did the trick!

Helge.