Go to Post CD makes FIRST an infinitely better place. - lemiant [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 03-02-2015, 17:56
Team4021 Team4021 is offline
Registered User
FRC #4021
 
Join Date: Feb 2015
Location: Onalaska
Posts: 4
Team4021 is an unknown quantity at this point
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.
  #2   Spotlight this post!  
Unread 03-02-2015, 18:01
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: USB Camera Stopped working

Does the camera show up in the roboRIO web dashboard?
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #3   Spotlight this post!  
Unread 04-02-2015, 20:17
Team4021 Team4021 is offline
Registered User
FRC #4021
 
Join Date: Feb 2015
Location: Onalaska
Posts: 4
Team4021 is an unknown quantity at this point
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.

Last edited by Team4021 : 04-02-2015 at 20:24.
  #4   Spotlight this post!  
Unread 04-02-2015, 20:22
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
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.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #5   Spotlight this post!  
Unread 04-02-2015, 20:34
Team4021 Team4021 is offline
Registered User
FRC #4021
 
Join Date: Feb 2015
Location: Onalaska
Posts: 4
Team4021 is an unknown quantity at this point
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.
  #6   Spotlight this post!  
Unread 05-02-2015, 12:04
daneelshof's Avatar
daneelshof daneelshof is offline
Programming Mentor
FRC #1619 (Up-A-Creek Robotics)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Broomfield, Colorado
Posts: 30
daneelshof has a spectacular aura aboutdaneelshof has a spectacular aura about
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.
  #7   Spotlight this post!  
Unread 06-02-2015, 12:20
daneelshof's Avatar
daneelshof daneelshof is offline
Programming Mentor
FRC #1619 (Up-A-Creek Robotics)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Broomfield, Colorado
Posts: 30
daneelshof has a spectacular aura aboutdaneelshof has a spectacular aura about
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...
  #8   Spotlight this post!  
Unread 14-02-2015, 13:34
schleprock's Avatar
schleprock schleprock is offline
Code Jockey
FRC #4905 (AndromedaOne)
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: massachusetts
Posts: 21
schleprock is an unknown quantity at this point
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.
  #9   Spotlight this post!  
Unread 26-02-2015, 00:17
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 332
fovea1959 will become famous soon enough
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...
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi