![]() |
USB Camera Stopped working
We had a Logitech Webcam working with our testboard and then we got new Microsoft Lifecam 3000 and it worked for the first couple times but then it stopped working. Then we started to get this error message: ERROR Unhandled exception: VisionException [com.ni.vision.VisionException: IMAQdxError: -1074360311: Camera not found] at [com.ni.vision.NIVision._IMAQdxOpenCamera(Native Method), com.ni.vision.NIVision.IMAQdxOpenCamera(NIVision.j ava:24455), edu.wpi.first.wpilibj.vision.USBCamera.openCamera( USBCamera.java:61), edu.wpi.first.wpilibj.vision.USBCamera.<init>(USBC amera.java:54), edu.wpi.first.wpilibj.CameraServer.startAutomaticC apture(CameraServer.java:167), org.usfirst.frc.team4021.robot.Robot.Camera(Robot. java:92), org.usfirst.frc.team4021.robot.Robot.teleopPeriodi c(Robot.java:58), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:150), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:234)]
What is wrong and how do we get it to work. We want it to work with the smartdashboard and when it worked we were using the simple vision example code into our robot program. |
Re: USB Camera Stopped working
Does the camera show up in the roboRIO web dashboard?
|
Re: USB Camera Stopped working
We looked it up in the roboRIO web dashboard and it comes up. In the code we changed the name of it from cam0 to cam1 (as it says its name is in the web dashboard). Now it comes up with a shorter error code but still doesn't work. Here is the error code:
Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) Broken pipe at edu.wpi.first.wpilibj.CameraServer.serve(CameraSer ver.java:346) edu.wpi.first.wpilibj.CameraServer$1.run(CameraSer ver.java:77) java.lang.Thread.run(Thread.java:745) and in the smartdashboard it says in the box where the camera should be: Huffman table 0x00 was not defined. |
Re: USB Camera Stopped working
Its still the same error, but it looks like you have changed where in your code you are instantiating the camera since the first time you posted, unless I'm misinterpreting that stack trace.
It would be helpful to see your code. |
Re: USB Camera Stopped working
I edited the earlier post because I realized a mistake. I wasn't calling the method with the camera code in it so now it has the error it shows.
|
Re: USB Camera Stopped working
We're experiencing the same error with our camera. We aren't using the sanctioned Microsoft USB webcam yet (those should arrive this week), but we did have the camera working with the same source code a couple weeks ago. Similar to your experience, it worked for a while and then stopped.
Suspecting our source code, we created a fresh project with nothing more than camera code to no avail. There was speculation of needing to use a 32-bit JDK on development machines in other related threads. We've exclusively been using the 64-bit JDK and other people are reporting problems even after they switch JDK versions, so I don't think it's related. I suspect an update to WPILib broke it but I also suspect our use of a non-sanctioned camera. I'll report back if we solve it somehow. |
Re: USB Camera Stopped working
We've switched to the Lifecam HD-3000, but the same issue exists. I wasn't too hopeful that it'd fix it. I think we might be at the mercy of WPILib updates now...
|
Re: USB Camera Stopped working
we're experiencing the same problem with the microsoft lifecam 3000 programming in java. just using the simple robot example in the vision examples shows throws the exception. has anyone gotten it to work??
also, i notice that when i plug in the camera to the usb slot, the blue light on the camera blinks a few times then turns off and never turns on again. when i plug the webcam into my laptop, similar behavior until i view the camera and the blue light comes on. it appears that the camera does get powered up when plugged into the roborio but the software is unable to detect the camera's usb slot. any help would be appreciated. |
Re: USB Camera Stopped working
This worked for us last week, but it didn't work today. In the middle, I updated the Java plugins (which gets us a new SmartDashboard and wpilibj). I think the new SmartDashboard or wpilibj may be bugged.
Given that the USB camera works wonderfully with the LV dashboard, I'm inclined to think that the camera and all the roboRIO video bits are fine; the problem is in Java land... |
| All times are GMT -5. The time now is 03:36. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi