Go to Post The version that finished nationals was about 50% aluminum and 50% the original PVC and we never had any member break. (structural member, not team member). - Gary Dillard [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 13-01-2016, 17:47
alephzer0's Avatar
alephzer0 alephzer0 is offline
Technical Generalist
AKA: Nathan Simon
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Nov 2014
Rookie Year: 2013
Location: Westfield, NJ
Posts: 276
alephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud of
Strange issue with pushing code and running it on 2016 firmware

Hi all,
So Team 1257 has been trying to run code on the 2016 roborio image. We get a consistent "no robot code" no matter how we connect (sometimes it flashes "disabled" first). The RSL is illuminated solid and the comms light is red. Additionally, we have been periodically experiencing errors when pushing code. We are under the assumption that the code is insta-crashing, though we're not sure why. We have confirmed the existance of FRC_UserProgram on the roborio over FTP. Needless to say it was working on the 2015 image. So what could be wrong? Thanks in advance for your help.
__________________
Nathan Simon
FRC Team 1257: Parallel Universe
2016: Mt. Olive district champs with 5624 and 1676, Bridgewater-Raritan finalists with 25, 3340, and 555, MAR DCMP winners with 225 and 341.

2015: North Brunswick District Finalists with 11 and 193.
2014: Clifton District Champs with 1626 and 869, 2nd seed alliance captain at MAR regional champs.
There are 10 types of people in the world: those who can read binary, and those who can't.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2016, 17:52
ozrien's Avatar
ozrien ozrien is offline
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: Strange issue with pushing code and running it on 2016 firmware

Can you start with a clean default project and confirm that works okay? Then move your code over piece-by-piece to find the culprit?
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2016, 18:01
alephzer0's Avatar
alephzer0 alephzer0 is offline
Technical Generalist
AKA: Nathan Simon
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Nov 2014
Rookie Year: 2013
Location: Westfield, NJ
Posts: 276
alephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud of
Re: Strange issue with pushing code and running it on 2016 firmware

We've actually been trying the default project so it's probably not the code itself. We have also tried switching from c++ code to Java and got an error consistent with the wpilib.screenstepslive.com description of a corrupted image. The thing is, we've tried reimaging from multiple laptops.
__________________
Nathan Simon
FRC Team 1257: Parallel Universe
2016: Mt. Olive district champs with 5624 and 1676, Bridgewater-Raritan finalists with 25, 3340, and 555, MAR DCMP winners with 225 and 341.

2015: North Brunswick District Finalists with 11 and 193.
2014: Clifton District Champs with 1626 and 869, 2nd seed alliance captain at MAR regional champs.
There are 10 types of people in the world: those who can read binary, and those who can't.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2016, 18:04
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: Strange issue with pushing code and running it on 2016 firmware

Quote:
Originally Posted by alephzer0 View Post
error consistent with the wpilib.screenstepslive.com description of a corrupted image.
What error would that be?
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2016, 18:06
alephzer0's Avatar
alephzer0 alephzer0 is offline
Technical Generalist
AKA: Nathan Simon
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Nov 2014
Rookie Year: 2013
Location: Westfield, NJ
Posts: 276
alephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud ofalephzer0 has much to be proud of
Re: Strange issue with pushing code and running it on 2016 firmware

Sysprops.xml not found
EDIT: ok, we tried using SSH to go into the roborio and manually start the code, and it says, "FATAL ERROR: HAL could not be initialized".
__________________
Nathan Simon
FRC Team 1257: Parallel Universe
2016: Mt. Olive district champs with 5624 and 1676, Bridgewater-Raritan finalists with 25, 3340, and 555, MAR DCMP winners with 225 and 341.

2015: North Brunswick District Finalists with 11 and 193.
2014: Clifton District Champs with 1626 and 869, 2nd seed alliance captain at MAR regional champs.
There are 10 types of people in the world: those who can read binary, and those who can't.

Last edited by alephzer0 : 13-01-2016 at 18:45.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2016, 21:56
SLAB-Mr.Thomas SLAB-Mr.Thomas is offline
Registered User
FRC #4237
 
Join Date: Jan 2015
Location: USA
Posts: 12
SLAB-Mr.Thomas is an unknown quantity at this point
Re: Strange issue with pushing code and running it on 2016 firmware

We are having similar problems. Seems like these are all the same thing as this:
http://www.chiefdelphi.com/forums/sh...=no+robot+code
http://www.chiefdelphi.com/forums/sh...=no+robot+code
http://www.chiefdelphi.com/forums/sh...=no+robot+code

The first deploy attempts behaved a little differently and I can't reproduce the strange errors. This is what the system has settled into:

Open NetConsole or RLog or both.
Open driver station.
Close Smart dashboard that had opened automatically with driver station.
Open Eclipse and deploy - successful.
See that our looping printf's in RobotInit are printing continuously as they should be (waiting for Preferences from Smart Dashboard, actually, is our code) although driver station says no robot code.
Open Smart Dashboard manually and notice that the communications status indicator remains green at all times.
Notice that the printing from RobotInit stops at the instant smart dashboard (c++ or the default dashboard) starts.

It is frustrating that driver station says no robot code and doesn't allow changing to enable/disable although the code is running at the time!

For other experiments, depending on the timing of starting the deploy and starting driver station you can observe the the driver station communications green "light" goes on at exactly the same time that the roboRIO comm LED goes red.

The very first attempts were confusing with the smart dashboard widgets being updated with the fields Put by RobotInit but that couldn't be reproduced even after reimaging the roboRIO.

Sorry this is not much help except to encourage FIRST to take a close look and fix this ASAP. We are dead!
Reply With Quote
  #7   Spotlight this post!  
Unread 13-01-2016, 22:13
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: Strange issue with pushing code and running it on 2016 firmware

Quote:
Originally Posted by SLAB-Mr.Thomas View Post
See that our looping printf's in RobotInit
If you're looping in RobotInit, this is the issue. See "RobotBase changes": http://wpilib.screenstepslive.com/s/...e-2015-to-2016
Reply With Quote
  #8   Spotlight this post!  
Unread 14-01-2016, 10:45
SLAB-Mr.Thomas SLAB-Mr.Thomas is offline
Registered User
FRC #4237
 
Join Date: Jan 2015
Location: USA
Posts: 12
SLAB-Mr.Thomas is an unknown quantity at this point
Re: Strange issue with pushing code and running it on 2016 firmware

SIMPLIFIED ERROR DEMO:
Here's the simplest program I find works or doesn't work. Offending statement commented or not.

It doesn't seem to matter if Smart Dashboard is open or not. What is critical is the roboRIO COMM LED is red thus causing the driver station to think there is No Robot Code if there is no SendableChooser object.

This works:
#include "WPILib.h"

class Robot: public SampleRobot
{
SendableChooser *chooser;

public:
Robot()
:chooser()
{
}

void RobotInit()
{
chooser = new SendableChooser();
}
};

START_ROBOT_CLASS(Robot)
====================
This does not work:
#include "WPILib.h"

class Robot: public SampleRobot
{
SendableChooser *chooser;

public:
Robot()
:chooser()
{
}

void RobotInit()
{
//chooser = new SendableChooser(); Need this statement to keep Comm LED Green. If new chooser missing, then LED is Red.
}
};

START_ROBOT_CLASS(Robot)

===============
This doesn't work either lest you think there is some sort of dangling object:
#include "WPILib.h"

class Robot: public SampleRobot
{
//SendableChooser *chooser;

public:
Robot()
//:chooser()
{
}

void RobotInit()
{
//chooser = new SendableChooser();
}
};

START_ROBOT_CLASS(Robot)
======
Side note for person concerned about looping in RobotInit. It's okay - it's just to enter Preferences and we don't drive in RobotInit. Thanks for taking the time to think about us.

I hope this example gets FIRST to an early resolution. Maybe we have a circumvention for now - add a SendableChooser to our programs? I'll be trying that soon.

I verified that adding the minimal 3 lines of code for SendableChooser object does make a complex 2015 Robot code work on 2016.

Last edited by SLAB-Mr.Thomas : 14-01-2016 at 16:50. Reason: follow up on completed task; improve clarity
Reply With Quote
  #9   Spotlight this post!  
Unread 14-01-2016, 17:56
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: Strange issue with pushing code and running it on 2016 firmware

I am also getting the same error. I loaded the sample robot project, built it successfully and then uploaded it. However, it always says "No Robot Code". I even re-flashed the roboRIO and tried to upload code to it, however, no dice.
Reply With Quote
  #10   Spotlight this post!  
Unread 14-01-2016, 19:50
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: Strange issue with pushing code and running it on 2016 firmware

I have narrowed this issue down. We have been trying to install OpenCV on the roboRIO. We have done this successfully, however, when we try and add the OpenCV library's and includes to the project and upload the code, it instantly crashes.

This is probably a linker error because our vision code is not being called anywhere. When it crashes is when we add our vision paths into eclipse.

Here is our github repo if anyone wants to take a look. You might have to import the project into eclipse to see the projects and paths correctly.

- Drew
Team 2053
Reply With Quote
  #11   Spotlight this post!  
Unread 15-01-2016, 14:53
ozrien's Avatar
ozrien ozrien is offline
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: Strange issue with pushing code and running it on 2016 firmware

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
  #12   Spotlight this post!  
Unread 15-01-2016, 16:22
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: Strange issue with pushing code and running it on 2016 firmware

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?
Why does that work! Thank you so much! This issue has been frustrating me for hours and a simple fix like this makes me a bit more frustrated because it is so obscure, but thanks! Is this a bug in the driver station code?
Reply With Quote
  #13   Spotlight this post!  
Unread 15-01-2016, 16:42
ozrien's Avatar
ozrien ozrien is offline
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: Strange issue with pushing code and running it on 2016 firmware

It would appear that there is a subtle issue going on underneath. Not having a gamepad present at slot5 can cause a memory over-write that causes the crash. Control system team is working the problem now, thanks for the feedback - it helps. Stay tuned for an update.
Reply With Quote
  #14   Spotlight this post!  
Unread 21-02-2016, 17:48
hillale's Avatar
hillale hillale is offline
Formerly a Winnovator
AKA: Alec Hill
FRC #3617 (Cold Logic)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Marquette, MI
Posts: 184
hillale is a splendid one to beholdhillale is a splendid one to beholdhillale is a splendid one to beholdhillale is a splendid one to beholdhillale is a splendid one to beholdhillale is a splendid one to beholdhillale is a splendid one to behold
Send a message via AIM to hillale
Re: Strange issue with pushing code and running it on 2016 firmware

Team 3617 is now having this issue, but moving gamepads doesn't seem to work. We have tried multiple RoboRIOs to no avail. Changed IP settings to static (10.36.17.2), no luck. It worked this morning when we practiced driving first thing, but sometime throughout the day it stopped working.
__________________
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 21:56.

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