ERR [Got signal (Floating point exception), crashing]

Support and queries relating to all previous versions of ZoneMinder
Locked
wisekki
Posts: 39
Joined: Tue Feb 27, 2007 11:58 am

ERR [Got signal (Floating point exception), crashing]

Post by wisekki »

Okay a new thread with new errors. A fresh install of Ubuntu 8.10 32bit and zm1.23.3 from source. Configured with:

Code: Select all

./configure --prefix=/ZoneMinder --with-cgidir=/usr/lib/cgi-bin --with-webdir=/www/html/zm --with-webuser=www-data --with-webgroup=www-data
When adding a new usb-camera (ID 046d:08da Logitech, Inc. QuickCam Messanger) using gspca_zc3xx and gspca_main modules (ubuntu installed them.) I get these errors to syslog:

Code: Select all

Jan 29 10:16:16 router zma_m2[17427]: WAR [Waiting for capture daemon]
Jan 29 10:16:16 router kernel: [ 2186.692097] zc3xx: probe 2wr ov vga 0x0000
Jan 29 10:16:17 router zma_m2[17427]: WAR [Waiting for capture daemon]
Jan 29 10:16:17 router zmc_dvideo1[17449]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Jan 29 10:16:17 router zmc_dvideo1[17449]: ERR [Failed to post-capture monitor 0]
Jan 29 10:16:17 router zmdc[17263]: ERR ['zmc -d /dev/video1' exited abnormally, exit status 255] 
Jan 29 10:16:18 router zma_m2[17427]: INF [In mode 3/1, warming up]
Jan 29 10:16:22 router zmdc[17263]: INF [Starting pending process, zmc -d /dev/video1] 
Jan 29 10:16:22 router zmdc[17263]: INF ['zmc -d /dev/video1' starting at 09/01/29 10:16:22, pid = 17473] 
Jan 29 10:16:22 router zmdc[17473]: INF ['zmc -d /dev/video1' started at 09/01/29 10:16:22] 
Jan 29 10:16:22 router zmc_dvideo1[17473]: INF [Debug Level = 0, Debug Log = <none>]
Jan 29 10:16:22 router zmc_dvideo1[17473]: INF [Starting Capture]
Jan 29 10:16:23 router kernel: [ 2193.724090] zc3xx: probe 2wr ov vga 0x0000
Jan 29 10:16:24 router zmc_dvideo1[17473]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Jan 29 10:16:24 router zmc_dvideo1[17473]: ERR [Failed to post-capture monitor 0]
Jan 29 10:16:24 router zmdc[17263]: ERR ['zmc -d /dev/video1' exited abnormally, exit status 255] 
Jan 29 10:16:30 router zms[17500]: INF [Debug Level = 0, Debug Log = <none>]
Jan 29 10:16:30 router zms[17500]: ERR [Got signal (Floating point exception), crashing]
Jan 29 10:16:30 router zms[17500]: ERR [Signal address is (nil), from 0x806c598 ]
Jan 29 10:16:30 router zms[17500]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x806c598]]
Jan 29 10:16:30 router zms[17500]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x806c598]]
Jan 29 10:16:30 router zms[17500]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x804b8c0]]
Jan 29 10:16:30 router zms[17500]: ERR [Backtrace: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb747e685]]
Jan 29 10:16:30 router zms[17500]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x804aec1]]
Jan 29 10:16:30 router zms[17500]: INF [Backtrace complete]
Jan 29 10:16:34 router zmdc[17263]: INF [Starting pending process, zmc -d /dev/video1] 
Jan 29 10:16:34 router zmdc[17263]: INF ['zmc -d /dev/video1' starting at 09/01/29 10:16:34, pid = 17514] 
Jan 29 10:16:34 router zmdc[17514]: INF ['zmc -d /dev/video1' started at 09/01/29 10:16:34] 
Jan 29 10:16:34 router zmc_dvideo1[17514]: INF [Debug Level = 0, Debug Log = <none>]
How do i fix this? I'm really lost :oops:
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Jan 29 10:16:17 router zmc_dvideo1[17449]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Looks like a driver issue,
What is at the tail end of dmesg when you have ZM running?
What happens if you run xawtx and capture jpeg snapshots from it?
wisekki
Posts: 39
Joined: Tue Feb 27, 2007 11:58 am

Post by wisekki »

cordel wrote: Looks like a driver issue,
What is at the tail end of dmesg when you have ZM running?
What happens if you run xawtx and capture jpeg snapshots from it?
Yea I've been thinking about that too.. because it's starting to be the only thing what I can't change in any way.. i think..

dmesg doesn't output anything, syslog says:

Code: Select all

Feb  1 12:03:40 router kernel: [178718.620994] zc3xx: probe 2wr ov vga 0x0000
Feb  1 12:03:40 router zmc_dvideo0[4487]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Feb  1 12:03:40 router zmc_dvideo0[4487]: ERR [Failed to post-capture monitor 0]
Feb  1 12:03:40 router zmdc[3942]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
And ZM's own logs:

Code: Select all

02/01/09 12:02:17.685740 zmwatch[3975].INF [Restarting capture daemon for New, time since last capture 8 seconds (1233482537-1233482529)]
02/01/09 12:02:17.777498 zmwatch[3975].INF ['zmc -d /dev/video0' starting at 09/02/01 12:02:17, pid = 4186]
02/01/09 12:02:27.777958 zmwatch[3975].ERR [Can't get shared memory id '7a6d0006', 6: No such file or directory]
And now the killblow.. xawtv says like this when trying to capture a still image:

Code: Select all

libv4l2: error setting pixformat: Invalid argument
no way to get: 2048x1572 24 bit TrueColor (BE: rgb)
ioctl: VIDIOC_REQBUFS(count=2;type=VIDEO_CAPTURE;memory=MMAP): Device or resource busy
v4l2: oops: select timeout
ioctl: VIDIOC_REQBUFS(count=0;type=VIDEO_CAPTURE;memory=MMAP): Device or resource busy
libv4l2: error requesting 4 buffers: Device or resource busy
v4l2: read: Device or resource busy
I didn't change anything from xawtv.. just installed it from the repository.
fmpfeifer
Posts: 1
Joined: Thu Mar 12, 2009 8:48 pm

Post by fmpfeifer »

I have the same problem here.

After a lot of time wasted, I think I found a solution (Ubuntu 8.10 x64):
edit the file /usr/bin/zmdc.pl (#sudo gedit /usr/bin/zmdc.pl)
insert the following line:

Code: Select all

$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
this line should be inserted just before the "my @daemons = (" line

just restart zoneminder and it magically works !
wisekki
Posts: 39
Joined: Tue Feb 27, 2007 11:58 am

Post by wisekki »

I confirm this.. it works after adding that line! Very nice work indeed :) So you didn't waste any time.. hopefully this will be added to 1.24..
esde
Posts: 1
Joined: Wed May 13, 2009 9:25 am

Capture failure for frame 2: Invalid argument

Post by esde »

I ended up with the same problem. Here are my steps in case it helps anyone:

Running Ubuntu 9.04, I installed the zoneminder v1.23.3 package with Synaptic.

In order to have my QuickCam Connect (046d:089d) I had to upgrade to kernel 2.6.29 (solution here: http://forum.ubuntu-fr.org/viewtopic.php?id=262280)

I then had the "zmc -d /dev/video0' exited abnormally, exit status 255" / "Capture failure for frame 2: Invalid argument" problem, which I solved by preloading v4l1compat.so as stated two posts above.

Thanks a lot, you made my day!!

8)
iZone
Posts: 3
Joined: Mon May 18, 2009 9:17 am

Post by iZone »

Hi,

I'm also getting the floating point exception. I tried adding the line
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
to the perl script.

Still getting the same error.

My /var/log/messages:

May 21 19:01:24 integra-desktop zmdc[5016]: INF [Starting pending process, zmc -m 2]
May 21 19:01:24 integra-desktop zmdc[6661]: INF ['zmc -m 2' started at 09/05/21 19:01:24]
May 21 19:01:24 integra-desktop zmdc[5016]: INF ['zmc -m 2' starting at 09/05/21 19:01:24, pid = 6661]
May 21 19:01:24 integra-desktop zmc_m2[6661]: INF [Debug Level = 0, Debug Log = <none>]
May 21 19:01:24 integra-desktop zmc_m2[6661]: INF [New Debug Level = 0, New Debug Log = /tmp/zm_debug.log.06661]
May 21 19:01:24 integra-desktop zmc_m2[6661]: INF [Starting Capture]

/tmp/zm_debug.log.06661:


05/21/09 19:01:24.242262 zmc_m2[6661].INF-zm_debug.c/305 [New Debug Level = 0, New Debug Log = /tmp/zm_debug.log.06661]
05/21/09 19:01:24.369176 zmc_m2[6661].INF-zmc.cpp/183 [Starting Capture]
05/21/09 19:01:27.371765 zmc_m2[6661].ERR-zm_remote_camera.cpp/154 [Can't connect to remote camera: No route to host]
05/21/09 19:01:27.372096 zmc_m2[6661].ERR-zm_remote_camera.cpp/1073 [Unable to connect to camera]
05/21/09 19:01:27.372221 zmc_m2[6661].ERR-zmc.cpp/247 [Failed to pre-capture monitor 0]

I'm not able to start nph-zms deamon also.

Any help in this regard will be appreciated.
Thanks.
jwiegley
Posts: 2
Joined: Tue Jun 02, 2009 11:57 pm

Post by jwiegley »

I'm also getting the floating point crash with or without the suggested fix.
ThomasNovin
Posts: 29
Joined: Fri Jun 12, 2009 11:36 am

Post by ThomasNovin »

iZone wrote:Hi,

05/21/09 19:01:24.242262 zmc_m2[6661].INF-zm_debug.c/305 [New Debug Level = 0, New Debug Log = /tmp/zm_debug.log.06661]
05/21/09 19:01:24.369176 zmc_m2[6661].INF-zmc.cpp/183 [Starting Capture]
05/21/09 19:01:27.371765 zmc_m2[6661].ERR-zm_remote_camera.cpp/154 [Can't connect to remote camera: No route to host]
05/21/09 19:01:27.372096 zmc_m2[6661].ERR-zm_remote_camera.cpp/1073 [Unable to connect to camera]
05/21/09 19:01:27.372221 zmc_m2[6661].ERR-zmc.cpp/247 [Failed to pre-capture monitor 0]
Hello

Try to access your camera from the Linux host with ZoneMinder. 'Can't connect to remote camera: No route to host' indicates that it isn't reachable.
itl
Posts: 2
Joined: Wed Oct 07, 2009 11:54 am

Post by itl »

fmpfeifer wrote:I have the same problem here.

After a lot of time wasted, I think I found a solution (Ubuntu 8.10 x64):
edit the file /usr/bin/zmdc.pl (#sudo gedit /usr/bin/zmdc.pl)
insert the following line:

Code: Select all

$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
this line should be inserted just before the "my @daemons = (" line

just restart zoneminder and it magically works !

I followed this post, and it solved my problems. I've been through the FAQ numerous times, tweaked shared memory.... I even gave up on my Fedora box and built and Ubuntu machine last, just to have the same problems with my Labtec Webcam Pro. I am temporarily using this cheap camera to check out zoneminder. I switched back to troubleshooting the Fedora box, and then found this post, and just as I was about to completely give up on this app! Thanks!

I'm running Zoneminder 1.24.2, installed by yum.
Device Path /dev/video0
Capture Method v4l2
Device Channel 0
Device Format NTSC
Capture Palette RGB24
Capture Width (pixels) 320
Capture Height (pixels) 240
Locked