![]() |
OpenCV Crashing?!
We used GRIP to generate a vision pipeline (java), and then overlay the first two contours it sees onto a SmartDashboard camera feed. Last week, this was working great.
This week, we noticed sporadic and mysterious drops in comms with the RoboRio. When this happens, the driver station (and the computer) stops being able to ping the RoboRio until the robot is either rebooted or the Rio reset. The camera code has not changed from last week to now, but we have updated WPILib to 2017.2 and set up a PID loop on a CANTalon. As to investigating the source of the error, we have USB'd into the Rio after a crash and looked at the FRC log, and there we found a java error with a message about further information at /tmp/hs_err_pid1429.log. The log at this location is as follows: Code:
# |
Re: OpenCV Crashing?!
I don't know much about GRIP as we are using c++ OpenCV, but it looks like when you drop the frames, OpenCV gets images that it can't use and it crashes the program. Is there anything in particular you are doing with the bot before it crahes?
|
Re: OpenCV Crashing?!
90% if the times it crashes, the robot is just standing still. Sometimes it is pointed at retroreflective tape (so it tries to draw contours) but sometimes it is not.
Our camera has been dropping out once in awhile (for about 500ms here and there), but I didn't think it would matter, since our code continues the thread before the pipeline if cvSink.grabFrame(mat) is equal to zero. Additionally the Rio doesn't crash every time the camera drops, so this didn't make sense to me as the cause of the issue. I could be wrong, though. |
Re: OpenCV Crashing?!
Can you share your project? A zip of the eclipse project or a link to a commit on github would be fine
|
Re: OpenCV Crashing?!
Our GitHub link to our last camera code update is https://github.com/Team303/Java-Robo...986e305d8e4b52. The class running camera and OpenCV code is Camera, and our generated pipeline is BoilerPipeline.
|
Re: OpenCV Crashing?!
I have seen OpenCV projects crash many times before, but I have never run them on the RoboRio. When they crash, there is usually a solid reason. Sometimes though, it appears random, but when you get to the root of it, it also becomes solid as well.
Out of curiosity, what USB camera make and model are you using? |
Re: OpenCV Crashing?!
We are using an IP Camera (Axis M1011).
|
| All times are GMT -5. The time now is 15:30. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi