View Single Post
  #5   Spotlight this post!  
Unread 11-01-2011, 02:58
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: C++ Vision Camera Problems

Quote:
Originally Posted by SnarkyNinja View Post
Hey there, programming geniuses at Chief Delphi!

We're having a bit of trouble with our vision camera, and I'm hoping you can help. To summarize, when we try to use the camera, our robot completely crashes. This problem came out of nowhere one day; the camera went from working perfectly to not working at all, and there were no changes to the robot or the code in the meantime. I've attached all the errors and messages associated with the problem.

This happens when the camera is plugged in to the cRIO and the code tries to create a camera object. We get one or two frames of video, then robot communication dies on the driver station. If either the camera is unplugged, or the code doesn't try to start the camera, there are no other problems. It happens with our team code, and the unmodified 2010 Vision Example code. We have all the latest updates applied to WPILib/WindRiver (C++ Team Update 4.3/Workbench Version: 3.0.1) and the driver station (update 1.1), and the latest version of the cRIO image (v20).

We've tried: different cRIOs, different programming laptops, reinstalling WindRiver, reimaging the cRIO, reinstalling the driver station, restoring camera to factory settings (we put the FRC/FRC user account back on afterwards), and deploying code that creates the camera object only. The one thing we haven't tried is using a different camera, as we don't have another one available.

The camera works properly (if laggy) in both LabView and Java. It also is fully accessible and streams properly from the web interface. It's only when we use C++ that this problem occurs. From the cRIO console, the camera is pingable at 192.168.0.90. We're using the newer Axis M1011 camera. Any ideas?
Can you try again with the released 2011 source? I guessing that it will still fail. Even if you get those errors accessing the camera (S_errno_ETIMEDOUT or S_errno_ECONNREFUSED), you should not crash your program. My guess is that there are at least 2 bugs here... the one that makes it not work here when it works in Java and LabVIEW, and the one where it crashed with a data access violation when the first condition is true.

-Joe
Reply With Quote