ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

Webcam kills raspberry pi sometimes #53

Open p33k opened 10 years ago

p33k commented 10 years ago

I have some problems with heimcontrol/raspberry and my webcam.

In heimcontrol I set my USB Logitech c250 webcam to work with streamer. First I set no intervall, and my raspberry crashed immediately. Then I tried with 50s, then 10s and 2s intervall. It works ok, viewable with all my devices, but sometimes I run in a new crash again. The webcam status LED is then on all the time. Then the heimcontrol site is gone, the raspberry is completely frozen and I only can cut the power and boot again. Sometimes before the crash I get errors like this (I can't see what happens when it crashes because it freezes the screen completely, no keyboard and mouse is working anymore):

{ [Error: Command failed: files / video: JPEG (JFIF) / audio: none libv4l2: error setting pixformat: Device or resource busy v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_S_FMT, struct v4l2_format data = { type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix = { width = 640, height = 360, pixelformat = V4L2_PIX_FMT_YUYV, field = V4L2_FIELD_NONE, bytesperline = 1280, sizeimage = 460800, colorspace = V4L2_COLORSPACE_SRGB } }) failed, Device or resource busy (16, EBUSY) because the usb video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_S_FMT system call from operating libv4l2: error setting pixformat: Device or resource busy v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_S_FMT, struct v4l2_format data = { type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix = { width = 640, height = 360, pixelformat = V4L2_PIX_FMT_YUYV, field = V4L2_FIELD_NONE, bytesperline = 1280, sizeimage = 460800, colorspace = V4L2_COLORSPACE_SRGB } }) failed, Device or resource busy (16, EBUSY) because the usb video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_S_FMT system call from operating libv4l2: error setting pixformat: Device or resource busy v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_S_FMT, struct v4l2_format data = { type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix = { width = 640, height = 360, pixelformat = V4L2_PIX_FMT_YUYV, field = V4L2_FIELD_NONE, bytesperline = 1280, sizeimage = 460800, colorspace = V4L2_COLORSPACE_SRGB } }) failed, Device or resource busy (16, EBUSY) because the usb video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_S_FMT system call from operating libv4l2: error setting pixformat: Device or resource busy v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_S_FMT, struct v4l2_format data = { type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix = { width = 640, height = 360, pixelformat = V4L2_PIX_FMT_YUYV, field = V4L2_FIELD_NONE, bytesperline = 1280, sizeimage = 460800, colorspace = V4L2_COLORSPACE_SRGB } }) failed, Device or resource busy (16, EBUSY) because the usb video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_S_FMT system call from operating libv4l2: error setting pixformat: Device or resource busy v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_S_FMT, struct v4l2_format *data = { type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix = { width = 640, height = 360, pixelformat = V4L2_PIX_FMT_YUYV, field = V4L2_FIELD_NONE, bytesperline = 1280, sizeimage = 460800, colorspace = V4L2_COLORSPACE_SRGB } }) failed, Device or resource busy (16, EBUSY) because the usb video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_S_FMT system call from operating no way to get: 960x544 JPEG (JFIF) movie writer initialisation failed ] killed: false, code: 1, signal: null }

Does anyone know the problem? Is it because of heimcontrol, or streamer, or my webcam?

Logitech C250 usb Webcam Raspberry Pi Model B Rev2 512Mb with Raspbian

Gagnon06 commented 9 years ago

Hi, have found a solution, because I have the same problem?

anno143 commented 8 years ago

Any solution! I also have same problem