Go to Post Ya know...they created the "RUMOR MILL" for a reason. - Andy Grady [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 01-12-2016, 07:40 PM
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 189
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
After rebooting RoboRIO, no robot code until restart code.

This seems like a strange issue but,

When ever I boot up the robot and connect to it, the driver station says that that teleop is disabled for a second then crashes and says "no robot code". However, if I restart the robot code I can enable teleop with no problems and drive around.

I have updated everything to 2016 code and have a nav6 running on the roboRIO over USB using the navX library because the nav6 code is not ported yet.

Here is the console log (very minimal no obvious errors.)
Code:
Warning  44002  Ping Results:  link-GOOD,  DS radio(.4)-bad,  robot radio(.1)-bad,  cRIO(.2)-bad,  FMS-bad FRC:  Driver Station ping status has changed.  Driver Station 
Warning  44002  Ping Results:  link-GOOD,  DS radio(.4)-bad,  robot radio(.1)-bad,  cRIO(.2)-GOOD,  FMS-bad FRC:  Driver Station ping status has changed.  Driver Station 
 ➔ Launching «'/home/lvuser/FRCUserProgram'» 
Warning  44003  FRC:  No robot code is currently running.  Driver Station 
 AHRS Constructor! 
 [HAL] Starting task FRC_navX-MXP_IO... 
 Robot init! 
 [HAL] Starting task FRC_DriverStation... 
 driveBaseSub constructor! 
 NT: server: client CONNECTED: 172.22.11.1 port 57018 
 FWC Constructor!
I've never seen this happen? Any suggestions?

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-13-2016, 12:24 AM
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: After rebooting RoboRIO, no robot code until restart code.

There should be a core dump in /usr/local/frc/ (or somewhere close to there). cat /proc/sys/kernel/core_pattern to find the exact path. You should be able to scp that back to your development machine and use GDB to load the core file and figure out where it crashed.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-15-2016, 12:25 AM
Jonathan L. Jonathan L. is offline
Registered User
FRC #1094
 
Join Date: Jan 2013
Location: St. Louis MO
Posts: 60
Jonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the rough
Re: After rebooting RoboRIO, no robot code until restart code.

Just to clarify, are you using a cRIO or a roboRIO? The subject says roboRIO but cRIO is in the error code.

I am not sure if this is related to your problem, but last year our team had a lot of trouble getting the roboRIO to stop crashing. We had a nav6 connected to the the roboRIO via the RS-232 port. Eventually we disconnected the nav6 and tried connecting, and running code again. Everything worked.

Try disconnecting the nav6 and see if your code crashes or not. If it does not crash, go to the roboRIO Webdashboard and uncheck "Enable Console Out" even though the recommended setting is checked. The option is shown in the attachment. Then try your code again with the nav6 connected.


We also noticed a bug in the nav6 (LabVIEW) code where the code would get stuck in an infinite running loop in the Begin VI if the nav6 was not connected.
Attached Thumbnails
Click image for larger version

Name:	roboRIO Webdashboard-Console Out.png
Views:	22
Size:	97.4 KB
ID:	19747  
Reply With Quote
  #4   Spotlight this post!  
Unread 01-15-2016, 05:24 AM
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 189
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: After rebooting RoboRIO, no robot code until restart code.

We are using the roboRio. We were using the nav 6 and successfully pushing code. I think the reason is because of some linker errors to do with Opencv. I will have to do some more testing, but I've narrowed down the issue.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-15-2016, 04:12 PM
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 516
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: After rebooting RoboRIO, no robot code until restart code.

Can you try the following...
[1] Make sure a gamepad is connected and wired to slot 5 (the last spot) in the driver station. Change your source to use that slot, or just use an extra joystick/gamepad to ensure that slot is not empty. Either is fine.
[2] Then restart your project using the restart-robot-code, or redeploying.

Does that remove the crash symptom?
Reply With Quote
  #6   Spotlight this post!  
Unread 01-15-2016, 11:03 PM
m1tche11d m1tche11d is offline
m1tche11d
FRC #1997
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2010
Location: Kansas
Posts: 21
m1tche11d is an unknown quantity at this point
Re: After rebooting RoboRIO, no robot code until restart code.

Quote:
Originally Posted by ozrien View Post
Can you try the following...
[1] Make sure a gamepad is connected and wired to slot 5 (the last spot) in the driver station. Change your source to use that slot, or just use an extra joystick/gamepad to ensure that slot is not empty. Either is fine.
[2] Then restart your project using the restart-robot-code, or redeploying.

Does that remove the crash symptom?
This worked for us. Can you explain why this works?
Reply With Quote
  #7   Spotlight this post!  
Unread 01-16-2016, 12:37 AM
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: After rebooting RoboRIO, no robot code until restart code.

Quote:
Originally Posted by m1tche11d View Post
This worked for us. Can you explain why this works?
Memory is getting corrupted by a bad parameter in the DS object in the HAL. There will hopefully be a release before long that will address the issue. Until then, the workaround should keep teams developing.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-16-2016, 12:40 AM
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Quote:
Originally Posted by jhersh View Post
Memory is getting corrupted by a bad parameter in the DS object in the HAL. There will hopefully be a release before long that will address the issue. Until then, the workaround should keep teams developing.
The release today should fix this problem.
Reply With Quote
  #9   Spotlight this post!  
Unread 01-16-2016, 10:19 AM
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 189
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: After rebooting RoboRIO, no robot code until restart code.

Yep, the update today fixed it! Thank you!
Reply With Quote
  #10   Spotlight this post!  
Unread 01-16-2016, 12:38 PM
rod@3711 rod@3711 is offline
Registered User
AKA: rod nelson
FRC #3711 (Iron Mustangs)
Team Role: Mentor
 
Join Date: May 2014
Rookie Year: 2014
Location: Trout Lake, WA
Posts: 64
rod@3711 is an unknown quantity at this point
Re: After rebooting RoboRIO, no robot code until restart code.

where do I find the update?
Reply With Quote
  #11   Spotlight this post!  
Unread 01-16-2016, 12:57 PM
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: After rebooting RoboRIO, no robot code until restart code.

Quote:
Originally Posted by rod@3711 View Post
where do I find the update?
If you set up Eclipse using the online plugin install, simply connect to the internet and select Help->Check for updates. If you did the offline install, you will need to do the update manually. Here's the relevant text from ScreenSteps:

Quote:
If updated plugins are released, you can either repeat this process ( you will get one additional Eclipse window telling you that the components are already installed and an upgrade will be performed instead of an install), or if online installation is an option, you can complete the online installation steps above, then get future updates using the Eclipse Automatic Updates (or the manual update check described below)
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 09:16 AM.

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