Go to Post (If Dean still says 'Nationals', how can you ridicule a rookie team for it? Come on.) - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 04-04-2016, 21:45
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 70
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
 


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 13:20.

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