USB camera, Debian squeeze, segmentation fault

Forum for questions and support relating to the 1.24.x releases only.
Locked
cabbage
Posts: 1
Joined: Mon Jan 16, 2012 11:14 am

USB camera, Debian squeeze, segmentation fault

Post by cabbage »

I am using Debian Squeeze (32 bit). I am using Zoneminder 1.24.2 because that is the most up to date version available from the debian squeeze repositories.
I have two machines:
A) A dual core Acer netbook (AO751h, 1G ram).
B) An older single core Sony laptop (PCG-GRS615SP).
Both have the same OS and the same zoneminder versions installed. I believe they are both configured the same.
Everything works fine on the Acer, but I would much prefer to use the older Sony.

I have 2x USB webcams:

Code: Select all

  
  Bus 002 Device 003: ID 046d:080f Logitech, Inc. Webcam C120
  Bus 002 Device 002: ID 046d:080f Logitech, Inc. Webcam C120
Both cameras are configured as Monitor, PAL, YUYV, 352x288 on both machines.
I just physically swap the USB webcams between the two machines and restart zoneminder each time I want to try the migration.

The shared memory is configured the same on both machines

Code: Select all

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 163840
max total shared memory (kbytes) = 671088640
min seg size (bytes) = 1
Everything works as it should on the Acer.
On the Sony, I get this from the log files after turning debug on:

Code: Select all

01/16/12 11:03:35.116239 zmc_dvideo0[3036].INF-zmc.cpp/188 [Starting Capture]
01/16/12 11:03:35.116687 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/349 [Opening video device /dev/video0]
01/16/12 11:03:35.116797 zmc_dvideo0[3036].DB2-zm_local_camera.cpp/355 [V4L2 support enabled, using V4L2 api]
01/16/12 11:03:35.116833 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/360 [Checking video device capabilities]
01/16/12 11:03:35.116885 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/370 [Setting up video format]
01/16/12 11:03:35.144552 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/399 [Setting up request buffers]
01/16/12 11:03:35.144718 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/427 [Setting up 8 data buffers]
01/16/12 11:03:35.144889 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/465 [Configuring video source]
01/16/12 11:03:35.144968 zmc_dvideo0[3036].WAR-zm_local_camera.cpp/1286 [Hue control is not supported]
01/16/12 11:03:35.145363 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/654 [Setting up static colour tables]
01/16/12 11:03:35.145445 zmc_dvideo0[3036].DB2-zm_local_camera.cpp/1446 [Priming capture]
01/16/12 11:03:35.145480 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/1450 [Queueing buffers]
01/16/12 11:03:35.145656 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/1466 [Starting video stream]
01/16/12 11:03:35.155955 zmc_dvideo0[3036].DB2-zm_local_camera.cpp/1492 [Pre-capturing]
01/16/12 11:03:35.156021 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/1498 [Capturing]
01/16/12 11:03:35.156055 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/1521 [Capturing 1 frames]
01/16/12 11:03:35.453644 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/1545 [Captured frame 0/0 from channel 0]
01/16/12 11:03:35.453720 zmc_dvideo0[3036].DB3-zm_local_camera.cpp/1579 [Doing format conversion]
01/16/12 11:03:35.463818 zmc_dvideo0[3036].INF-zm_signal.cpp/72 [Got signal 11 (Segmentation fault), crashing]
from both cameras, everytime!

xawtv works fine with both cameras on both machines.

I'm puzzled as to why the same version of zoneminder on the same version of OS should work OK on the Acer, but not on the Sony.

But all I really want is to be able to get it working on the older Sony. I like debian, but I'm not hung up on it and would be happy to try another distro, but it needs to be fairly lightweight as it is a rather old laptop.

Anyone got any suggestions as to how I may
a) Fix the problem, or diagnose it further.
b) Get a later version of zoneminder working on debian squeeze.
Thanks
Locked