zmu gives segmentation fault

Support and queries relating to all previous versions of ZoneMinder
Locked
Darkstar
Posts: 9
Joined: Mon Mar 20, 2006 5:42 pm

zmu gives segmentation fault

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I suspect this is due to a zone misconfiguration. Can you print out the entries in the Zones DB table?
Phil
Darkstar
Posts: 9
Joined: Mon Mar 20, 2006 5:42 pm

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
Darkstar
Posts: 9
Joined: Mon Mar 20, 2006 5:42 pm

Post by Darkstar »

Thank you, that did the trick!

Helge.
Locked