Go to Post It's not about a team having lots of money to spend to travel the world to share FIRST but how the team draws the world into their FIRST experience. - Steve W [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-04-2016, 18:00
Omnicide Omnicide is offline
Registered User
FRC #1086
 
Join Date: Mar 2015
Location: Richmond, VA
Posts: 2
Omnicide is an unknown quantity at this point
RoboRIO code and GRIP crashing

Hello from 1086!

We have been getting a strange error, and google has revealed very little.
We have been running GRIP if that changes anything. We have not coded any multithreading.

Here it is:
frcuserprogram: pthread_mutex_lock.c:360: __pthread_mutex_lock_full: assertion `robust || (oldval & 0x40000000) == 0' failed.

Any idea what may be causing this or how to fix it?
Reply With Quote
  #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: 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
  #3   Spotlight this post!  
Unread 05-04-2016, 09:49
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 305
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: RoboRIO code and GRIP crashing

Have you tried using the debugger to get more info? Once it captures the crash, you can get a stack trace which will contain the line of your code that led to it. To run the debugger, right click your project in Eclipse, select "Debug As" and then "WPILib C++ Deploy"
Reply With Quote
  #4   Spotlight this post!  
Unread 09-04-2016, 10:07
Wes P. Wes P. is offline
Registered User
FRC #4508
 
Join Date: Apr 2016
Location: Schuylerville NY
Posts: 1
Wes P. is an unknown quantity at this point
Re: RoboRIO code and GRIP crashing

What is grip exactly because we are having some issues with our roborio crashing repeatedly and we think that it's because of bad code so when we open the driver station while it's connected it says there is no robot code even though we had just built the code in eclipse using java and it said build successful
Reply With Quote
  #5   Spotlight this post!  
Unread 09-04-2016, 16:08
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

Quote:
Originally Posted by Wes P. View Post
What is grip exactly because we are having some issues with our roborio crashing repeatedly and we think that it's because of bad code so when we open the driver station while it's connected it says there is no robot code even though we had just built the code in eclipse using java and it said build successful
GRIP is the Graphically Represented Image Processing Engine. It's a program new this year from WPI to interactively create a image processing pipeline for manipulating images.

Your issue sounds like a problem in your Robot initialization code. I would look at the code that was added since it worked last. If you are still having issues, you could open a new thread and post your code. Sometimes a useful message is posted to the roborio console during code startup.
Reply With Quote
Reply


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 03:01.

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