View Single Post
  #2   Spotlight this post!  
Unread 04-04-2016, 09:45 PM
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 68
codedr will become famous soon enoughcodedr will become famous soon enough
Re: RoboRIO code and GRIP crashing

The following classes in wpilib all use a mutex to protect the data structure.
Code:
USBCamera
Notifier
DriverStation
CameraServer
CANJaguar
Vision/AxisCamera
I suspect some where in your code you are overwriting the memory into one of the existing structures that's using a mutex. The most likely candidate is DriverStation, as it is responsible for holding the values for everything from the DS.

(1) Inspect your code for likely candidates that write to an object or pointer
(2) If the number of candidates is small, turn each off one by one, and test your code to see if you get the error.
(3) If the number of candidates is large, turn off half of them, and test our code to see if you get the error. If you see the error, turn off the other, half. If you don't see the error, turn on half of the remainder, and repeat until you find the line of code that's causing the error.
Reply With Quote