ryanteck
Posts: 77
Joined: Mon Apr 16, 2012 10:49 am
Location: Great Yarmouth , United Kingdom
Contact: Website

PS2 Eyetoy Keeps Crashing.

Thu Jun 14, 2012 9:05 am

Well, after hunting around on the forums I posted a thread (related to another problem) about if the cameras I had should work. I have a Eyetoy (The one which should work) and a Logitech (Too much power is needed ~500mA compared to 50mA needed for the eyetoy) .

Linux detects the camera, I updated it using hexxeh's RPI-Update tool. (Debian detects as /dev/video0 )

I then load it in motion and it detects the camera and displays the image. Then it just crashes.....

Heres the console dump

Code: Select all

[email protected]:~/motion$ sudo motion -n
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808
[0] Thread 1 is from /etc/motion/motion.conf
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 2550
[1] Thread 1 started
[1] cap.driver: "ov519"
[1] cap.card: "EyeToy USB camera Namtai"
[1] cap.bus_info: "usb-bcm2708_usb-1.2"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Config palette index 8 (YU12) doesn't work.
[1] Supported palettes:
[1] 0: JPEG (JPEG)
[1] Selected palette JPEG
[1] Test palette JPEG (352x288)
[1] Adjusting resolution from 352x288 to 320x240.
[1] Using palette JPEG (320x240) bytesperlines 320 sizeimage 29390 colorspace 00000007
[1] found control 0x00980900, "Brightness", range 0,255
[1]     "Brightness", default 127, current 127
[1] found control 0x00980902, "Color", range 0,255
[1]     "Color", default 127, current 127
[1] mmap information:
[1] frames=4
[1] 0 length=32768
[1] 1 length=32768
[1] 2 length=32768
[1] 3 length=32768
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 2551
[1] File of type 1 saved to: /tmp/motion/01-20120614100227-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100228-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100228-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100229-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100237-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100238-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100238-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100239-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100240-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100241-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100241-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100242-00.jpg
Corrupt JPEG data: premature end of data segment
[1] File of type 1 saved to: /tmp/motion/01-20120614100243-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100243-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100245-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100245-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100246-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100246-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100247-00.jpg
Corrupt JPEG data: premature end of data segment
[1] File of type 1 saved to: /tmp/motion/01-20120614100247-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100248-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100248-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100249-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100249-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100250-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100251-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100252-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100252-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100253-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100254-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100255-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100255-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100256-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100256-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100257-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100257-01.jpg
[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 2): Input/output error
[1] File of type 1 saved to: /tmp/motion/01-20120614100258-00.jpg
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
[1] File of type 1 saved to: /tmp/motion/01-20120614100301-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100301-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100302-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100302-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100303-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100303-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100304-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100304-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100305-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100305-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100306-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100306-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100307-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100307-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100308-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100308-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100309-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20120614100309-01.jpg
[1] Retrying until successful connection with camera
[1] cap.driver: "ov519"
[1] cap.card: "EyeToy USB camera Namtai"
[1] cap.bus_info: "usb-bcm2708_usb-1.2"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Config palette index 8 (YU12) doesn't work.
[1] Supported palettes:
[1] 0: JPEG (JPEG)
[1] Selected palette JPEG
[1] Test palette JPEG (352x288)
[1] Adjusting resolution from 352x288 to 320x240.
[1] Using palette JPEG (320x240) bytesperlines 320 sizeimage 29390 colorspace 00000007
[1] found control 0x00980900, "Brightness", range 0,255
[1]     "Brightness", default 127, current 127
[1] found control 0x00980902, "Color", range 0,255
[1]     "Color", default 127, current 127
[1] mmap information:
[1] frames=4
[1] 0 length=32768
[1] 1 length=32768
[1] 2 length=32768
[1] 3 length=32768
[1] Error starting stream VIDIOC_STREAMON: Input/output error
[1] ioctl (VIDIOCGCAP): Inappropriate ioctl for device
[1] Retrying until successful connection with camera
[1] cap.driver: "ov519"
[1] cap.card: "EyeToy USB camera Namtai"
[1] cap.bus_info: "usb-bcm2708_usb-1.2"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Config palette index 8 (YU12) doesn't work.
[1] Supported palettes:
[1] 0: JPEG (JPEG)
[1] Selected palette JPEG
[1] Test palette JPEG (352x288)
[1] Adjusting resolution from 352x288 to 320x240.
[1] Using palette JPEG (320x240) bytesperlines 320 sizeimage 29390 colorspace 00000007
[1] found control 0x00980900, "Brightness", range 0,255
[1]     "Brightness", default 127, current 127
[1] found control 0x00980902, "Color", range 0,255
[1]     "Color", default 127, current 127
[1] Error requesting buffers 4 for memory map. VIDIOC_REQBUFS: Device or resource busy
[1] ioctl (VIDIOCGCAP): Inappropriate ioctl for device
[1] Video signal lost - Adding grey image
[1] Retrying until successful connection with camera
[1] cap.driver: "ov519"
[1] cap.card: "EyeToy USB camera Namtai"
[1] cap.bus_info: "usb-bcm2708_usb-1.2"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Config palette index 8 (YU12) doesn't work.
[1] Supported palettes:
[1] 0: JPEG (JPEG)
[1] Selected palette JPEG
[1] Test palette JPEG (352x288)
[1] Adjusting resolution from 352x288 to 320x240.
[1] Using palette JPEG (320x240) bytesperlines 320 sizeimage 29390 colorspace 00000007
[1] found control 0x00980900, "Brightness", range 0,255
[1]     "Brightness", default 127, current 127
[1] found control 0x00980902, "Color", range 0,255
[1]     "Color", default 127, current 127
[1] Error requesting buffers 4 for memory map. VIDIOC_REQBUFS: Device or resource busy
[1] ioctl (VIDIOCGCAP): Inappropriate ioctl for device
And heres LSUSB if it helps -

Code: Select all

[email protected]:~/motion$ lsusb
Bus 001 Device 009: ID 054c:0155 Sony Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 7392:7711 Edimax Technology Co., Ltd EW-7711UTn nLite Wireless Adapter [Ralink RT2870]
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Thanks in advanced for any help :)

- Ryan

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12226
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: PS2 Eyetoy Keeps Crashing.

Thu Jun 14, 2012 9:20 am

Because the eyetoy isn't a generic USB device (it's only required to work with one specific platform), there is a chance it doesn't completely follow USB specs that say such a device must work with lower than normal power supply voltages. But because of the polyfuses used by the PI lower than normal USB power supply voltages are to be expected.
In this case the problem seems to be marginal, so perhaps a PSU that outputs a slightly more stable (larger) output voltage under load will help, either that or using a powered hub will probably help.

ryanteck
Posts: 77
Joined: Mon Apr 16, 2012 10:49 am
Location: Great Yarmouth , United Kingdom
Contact: Website

Re: PS2 Eyetoy Keeps Crashing.

Thu Jun 14, 2012 9:35 am

Other threads I have found state that running it under a powered USB hub causes more errors , (I can't test As I have no usb powered hub for it.)

When checking the voltage across the pollyfuses and the one which has the eyetoy on goes no more than 0.2 v while active.

TenderLoins
Posts: 12
Joined: Tue May 29, 2012 11:48 am

Re: PS2 Eyetoy Keeps Crashing.

Thu Jun 14, 2012 10:12 am

Looks similar to my issue here: http://www.raspberrypi.org/phpBB3/viewt ... =66&t=8208

Bit annoying as it - apparently - works fine with Arch. It was the first camera to be on the wiki page for supported webcams.

Guess I'll buy another cam and see what happens.

ryanteck
Posts: 77
Joined: Mon Apr 16, 2012 10:49 am
Location: Great Yarmouth , United Kingdom
Contact: Website

Re: PS2 Eyetoy Keeps Crashing.

Thu Jun 14, 2012 10:14 am

I might try arch then, if I can port everything I have coded over to it xD.

ryanteck
Posts: 77
Joined: Mon Apr 16, 2012 10:49 am
Location: Great Yarmouth , United Kingdom
Contact: Website

Re: PS2 Eyetoy Keeps Crashing.

Fri Jun 15, 2012 11:15 am

I tried in arch it had the same problems (And more!)

Note I am using the PS2 EyeToy not the PS3 Eyecam (Namico one).

Still no luck tough. Might try in debian virtual box.

Edit: A console log can be found at http://pastebin.com/U9Ufskku

ryanteck
Posts: 77
Joined: Mon Apr 16, 2012 10:49 am
Location: Great Yarmouth , United Kingdom
Contact: Website

Re: PS2 Eyetoy Keeps Crashing.

Fri Jun 15, 2012 7:55 pm

Tested on debian and worked perfect. So I started to look further and found that debian (Computer) showed this for the driver:

Code: Select all

[email protected]:/home/pi# modinfo gspca_ov519
filename:   	/lib/modules/2.6.32-5-686/kernel/drivers/media/video/gspca/gspca_ov519.ko
license:    	GPL
description:	OV519 USB Camera Driver
author:     	Jean-Francois Moine <http://moinejf.free.fr>
alias:      	usb:v0813p0002d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v05A9pA518d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v05A9pA511d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v05A9p8519d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v05A9p4519d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v05A9p0530d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v05A9p0519d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v05A9p0518d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v05A9p0511d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v054Cp0155d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v054Cp0154d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v045Ep028Cd*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v041Ep4068d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v041Ep4067d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v041Ep4064d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v041Ep4061d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v041Ep4060d*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v041Ep405Fd*dc*dsc*dp*ic*isc*ip*
alias:      	usb:v041Ep4052d*dc*dsc*dp*ic*isc*ip*
depends:    	gspca_main,usbcore
vermagic:   	2.6.32-5-686 SMP mod_unload modversions 686
parm:       	frame_rate:Frame rate (5, 10, 15, 20 or 30 fps) (int)
This is slightly different to what the raspberry pi version shows. Could there be a error when it compiled?

Code: Select all

[email protected]:/home/pi/gspca-2.15.18#  modinfo gspca_ov519
filename:       /lib/modules/3.1.9+/kernel/drivers/media/video/gspca/gspca_ov519.ko
license:        GPL
description:    OV519 USB Camera Driver
author:         Jean-Francois Moine <http://moinejf.free.fr>
srcversion:     0486F1304A0AE4B2EFDA1C8
alias:          usb:v8020pEF04d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v1046p9967d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0E96pC001d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0B62p0059d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0813p0002d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v05A9pA518d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v05A9pA511d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v05A9p8519d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v05A9p4519d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v05A9p2800d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v05A9p0530d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v05A9p0519d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v05A9p0518d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v05A9p0511d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v054Cp0155d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v054Cp0154d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v045Ep028Cd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v041Ep4068d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v041Ep4067d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v041Ep4064d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v041Ep4061d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v041Ep4060d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v041Ep405Fd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v041Ep4052d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v041Ep4003d*dc*dsc*dp*ic*isc*ip*
depends:        gspca_main
vermagic:       3.1.9+ preempt mod_unload modversions ARMv6
parm:           frame_rate:Frame rate (5, 10, 15, 20 or 30 fps) (int)
Not sure what the problem might be. can anyone help?

User avatar
raspberrypiguy1
Posts: 379
Joined: Sun Sep 02, 2012 7:01 pm

Re: PS2 Eyetoy Keeps Crashing.

Mon Apr 08, 2013 4:29 pm

I am currently awaiting delivery of my PS2 Eye toy camera... You guys seem to be having problems with 'motion'... Why don't you try a different piece of software? Or worse comes the worse, write your own?

Can't wait til mine arrives!

The Raspberry Pi Guy
Matt, The Raspberry Pi Guy YouTube channel, author of Learn Robotics with Raspberry Pi, available now: http://mybook.to/raspirobots, Computer Science & Electronics Undergraduate at The University of Edinburgh

Return to “Troubleshooting”