Floating Point exceptions Ubuntu 64bit

Forum for questions and support relating to the 1.24.x releases only.
Locked
User avatar
caprio
Posts: 16
Joined: Wed Mar 04, 2009 4:14 pm
Location: California

Floating Point exceptions Ubuntu 64bit

Post by caprio »

I can't get zoneminder working on my fresh Ubuntu 64bit install with ACTi IP cameras.
I've followed the build and install guides on the wiki several times with the same results.
Zoneminder and ffmpeg where built from the svn repositories. I even went back to the
ffmpeg 0.5 and zoneminder 1.24.1 bases but no luck there either. :?

zmc is crashing with signal 8 (floating point exception). At this point I'm not sure if it's a shared memory, zmc, 64 bit O/S or combination.
When I turn on debug I'm seeing that the capture daemon does grab frames but gets errors trying to decode the frame. Am I correct to assume if zmc is getting frames
then shared memory is working?
ffmpeg works capturing video streams from the camera using rtsp and I can playback with mplayer.

I'm running out of ideas. does anyone out there have any clues whats going on here?
Any help and/or suggestions would be greatly appreciated.

Thank you.

zmdc.log:

Code: Select all

Jul  9 08:29:37 zm1 zmc_m1[9156]: INF [Starting Capture]
Jul  9 08:29:37 zm1 zmdc[9111]: WAR [Can't find process with command of 'zma -m 
1'] 
Jul  9 08:29:39 zm1 zmc_m1[9156]: ERR [Error while decoding frame 1]
Jul  9 08:29:39 zm1 zmc_m1[9156]: ERR [256: 74 88 a4 73 9a 5a 1c bc a3 a1 a1 20 
e0 1d 05 ca 48 17 a0 e5 82 64 ec 1d a3 30 71 f0 76 8d d1 c3 e5 62 10 84 33 47 60
 e1 58 38 15 d4 fe a4 5c 1c 5a 7c 46 d0 e4 3c 58 4c 56 b0 e4 26 e2 76 87 03 91 b
1 39 47 13 73 b1 09 30 0a 11 a6 52 54 dd 28 a5 90 9d 18 72 56 23 a0 77 01 c2 12 
02 39 b8 88 a9 a6 97 b6 6a 47 39 36 9b 59 1a 06 d3 f0 5e 9a 71 7a 38 4a 1c 3b 81
 c2 3c 65 7a 22 ad b1 c8 70 37 4b 88 88 c4 6d 54 83 bd ce a4 95 85 86 fa 48 9b 7
b 5b e7 17 a1 b0 8d 39 1d 57 4e 58 9d 31 31 49 69 a0 71 20 8f 21 07 60 7e 31 67 
4b 22 5d bc 17 0e 42 fd 36 99 18 39 be 30 38 23 c0 74 29 29 26 04 66 ca 70 6a de
 8e ae 51 c4 2c 09 84 75 dd 2d 2a 15 62 f7 31 42 cd a4 16 de 23 a8 3d 7d 9a 97 9
4 dd 6e f6 b7 6e ae c8 b5 0a 73 e2 37 60 a9 27 18 65 96 57 38 54 ca 40 f4 09 86 
62 18 a8 18]
Shared memory segments are there for the two monitors:

Code: Select all

root@:/tmp# ipcs -m

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status      
0x7a6d0001 262144     www-data  700        36865524   1                       
0x7a6d0002 294913     www-data  700        36865524   1
root@:/tmp# sysctl -a | grep shm
kernel.shmmax = 4194304000
kernel.shmall = 2048000
kernel.shmmni = 4096
Errors in the apache log but I think these are just an artifact of the capture daemon barfing:

Code: Select all

[Thu Jul 09 10:31:32 2009] [error] [client 10.16.1.95] array (\n  0 => \n  array (\n    'file' => '/srv/zm/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-017705s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/srv/zm/www/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/srv/zm/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://zoneminder.merfinllc.com/index.php?view=watch&mid=2
While composing this post I just got this in the syslog:

Code: Select all

Jul  9 11:01:39 zm1 zmc_m1[23559]: INF [Got signal 11 (Segmentation fault), crashing]
Jul  9 11:01:39 zm1 zmc_m1[23559]: ERR [Signal address is 0x10206, no eip]
Jul  9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /lib/libpthread.so.0 [0x7f82523ac0f0]]
Jul  9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /lib/libc.so.6(memcpy+0x15b) [0x7f82512e424b]]
Jul  9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /usr/local/bin/zmc [0x43604a]]
Jul  9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /usr/local/bin/zmc [0x43a43e]]
Jul  9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /usr/local/bin/zmc [0x43912a]]
Jul  9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /usr/local/bin/zmc [0x44bb85]]
Jul  9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /lib/libpthread.so.0 [0x7f82523a43ea]]
Jul  9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /lib/libc.so.6(clone+0x6d) [0x7f8251345cbd]]
Jul  9 11:01:39 zm1 zmc_m1[23559]: INF [Backtrace complete, please execute the following command for more information]
Jul  9 11:01:39 zm1 zmc_m1[23559]: INF [addr2line -e /lib/libc.so.6(clone+0x6d) 0x7f82523ac0f0 0x7f82512e424b 0x43604a 0x43a43e 0x43912a 0x44bb85 0x7f82523a43ea 0x7f8251345cbd]
Jul  9 11:01:39 zm1 zmdc[23436]: ERR ['zmc -m 1' exited abnormally, exit status 11] 
Jul  9 11:01:43 zm1 zmwatch[23468]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory] 
Jul  9 11:04:44 zm1 zmwatch[23468]: INF [Restarting capture daemon for CompRmWest, time since last capture 15 seconds (1247162684-1247162669)]
Jul  9 11:04:44 zm1 zmdc[23436]: INF ['zmc -m 1' starting at 09/07/09 11:04:44, pid = 23614]
My build options:

Code: Select all

/usr/src/ffmpeg# ./configure --enable-shared --enable-pthreads --arch=x86_64
/usr/src/zm# ./configure --with-webdir=/srv/zm/www --with-cgidir=/srv/zm/www/cgi-bin \
            --enable-debug=yes --with-webgroup=www-data --with-webuser=www-data \
            ZM_SSL_LIB=openssl ZM_DB_HOST=localhost ZM_DB_NAME=zm \
            ZM_DB_USER=zmuser  ZM_DB_PASS=zmpass 
I'm seeing alot of these messages in syslog. Are these something to be concerned about?

Code: Select all

Jul  9 11:32:33 zm1 zmc_m1[24112]: WAR [Discarding packet for unrecognised ssrc 57c0a53a]
Jul  9 11:32:33 zm1 zmc_m1[24112]: WAR [Discarding packet for unrecognised ssrc 23c155ce]
Jul  9 11:32:33 zm1 zmc_m1[24112]: WAR [Discarding packet for unrecognised ssrc 8401aa73]
Jul  9 11:32:33 zm1 zmc_m1[24112]: WAR [Discarding packet for unrecognised ssrc 6e8440cb]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What are your settings in ZM far the camera?
Did you use the Acti preset when you set it up?
User avatar
caprio
Posts: 16
Joined: Wed Mar 04, 2009 4:14 pm
Location: California

Post by caprio »

Yes sir. I did use ACTi presets.

Camera: ACTi 3511

Code: Select all

Protocol: RTSP
Remote Method: RTP/Unicast
Remote Port: 7070
Capture Width: 640
Capture Height: 480 
Remote Image colors: 24 bit color
Here's the zmu output:

Code: Select all

root@emu:/var/log# zmu -m 1 -q
Id : 1
Name : CompRmWest
Type : Remote
Protocol : rtsp
Host : 10.16.100.104
Port : 7070
Path : /
Width : 640
Height : 480
Colours : 3
Event Prefix : CompRmWest-
Label Format : %N - %y/%m/%d %H:%M:%S
Label Coord : 0,0
Image Buffer Count : 40
Warmup Count : 25
Pre Event Count : 10
Post Event Count : 10
Stream Replay Buffer : 1000
Alarm Frame Count : 1
Section Length : 600
Maximum FPS : 30.00
Alarm Maximum FPS : 0.00
Reference Blend %ge : 7
Track Motion : 0
Function: 3 - Motion Detection
Zones : 1
  Id : 1
  Label : All
  Type: 1 - Active
  Shape : 4 points
    0: 0,0
    1: 639,0
    2: 639,479
    3: 0,479
  Alarm RGB : ff0000
  Check Method: 3 - Blobs
  Min Pixel Threshold : 25
  Max Pixel Threshold : 0
  Min Alarm Pixels : 9216
  Max Alarm Pixels : 230400
  Filter Box : 3,3
  Min Filter Pixels : 9216
  Max Filter Pixels : 230400
  Min Blob Pixels : 6144
  Max Blob Pixels : 0
  Min Blobs : 1
  Max Blobs : 0
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I think for Acti there should be a path defined, your zmu output shows it missing, though I don't have a bunch of experience with these, actually almost nill.

Watch this thread it may help:
http://www.zoneminder.com/forums/viewtopic.php?t=14024

I don't have an acti cam here to check for the path.
User avatar
caprio
Posts: 16
Joined: Wed Mar 04, 2009 4:14 pm
Location: California

Post by caprio »

Well that's what I thought as well. Version 1.24.1 preset for the ACTi had a remote host sub path set to '/track'. The remote host sub path went away for this preset in the 1.24.2 version. I had concerns about this and posted questions for clarification. From the forum replies it sounds like it's not needed any more.

If someone can tell me how to check the path I'd be happy to do it and post the results. None of this information is included in any of the ACTi documentation. The docs say I have to contact a sales rep and sign an NDA in order to see the API (boo!).

BTW, when I run zmu on the same camera from my 32 bit install 1.24.2 which does work there is no path there either

Code: Select all

root@emu:~# zmu -m 3 -q
Id : 3
Name : Lobby
Type : Remote
Protocol : rtsp
Host : 10.16.100.105
Port : 7070
Path : /
Width : 640
Height : 480
Colours : 3
Event Prefix : Lobby-
Label Format : %N - %y/%m/%d %H:%M:%S
Label Coord : 0,0
Image Buffer Count : 40
Warmup Count : 25
Pre Event Count : 10
Post Event Count : 10
Stream Replay Buffer : 1000
Alarm Frame Count : 1
Section Length : 600
Maximum FPS : 30.00
Alarm Maximum FPS : 0.00
Reference Blend %ge : 7
Track Motion : 0
Function: 3 - Motion Detection
Zones : 1
  Id : 3
  Label : All
  Type: 1 - Active
  Shape : 4 points
    0: 0,0
    1: 639,0
    2: 639,479
    3: 0,479
  Alarm RGB : ff0000
  Check Method: 3 - Blobs
  Min Pixel Threshold : 25
  Max Pixel Threshold : 0
  Min Alarm Pixels : 9216
  Max Alarm Pixels : 230400
  Filter Box : 3,3
  Min Filter Pixels : 9216
  Max Filter Pixels : 230400
  Min Blob Pixels : 6144
  Max Blob Pixels : 0
  Min Blobs : 1
  Max Blobs : 0
[/code][/quote]
Locked