Go to Post Please forgive any possible profound language. - PortugazD.Ace [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-04-2015, 12:08
AaronP AaronP is offline
Registered User
FRC #1325
 
Join Date: Mar 2015
Location: Mississauga
Posts: 8
AaronP is an unknown quantity at this point
Can't deploy code to robot

So basically every time I try deploying code to the robot I get an error that says:

[sshexec] Connecting to roboRIO-1325.local:22
[sshexec] cmd : killall netconsole-host
[sshexec] killall: netconsole-host: no process killed
[sshexec] Remote command failed with exit status 1
[scp] Connecting to roboRIO-1325.local:22
[scp] done.

At the end, it still says "Build Successful". However, when I go into Driverstation it says that I have no Robot Code. I have tried exporting from a different laptop, cycling power on the robot, deploying an older version of the code, and deploying via Ethernet and USB instead of Wifi but none of that works.

Any help would be appreciated. Thanks.

Last edited by AaronP : 11-04-2015 at 12:22.
  #2   Spotlight this post!  
Unread 11-04-2015, 12:26
jajabinx124's Avatar
jajabinx124 jajabinx124 is offline
Team 2052 Alumni
AKA: Kshitij Wavre
no team
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Madison, WI
Posts: 534
jajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond repute
Re: Can't deploy code to robot

The line "[sshexec] Remote command failed with exit status 1" looks suspicious. Some other teams seem to have encountered the same issue on this thread.
  #3   Spotlight this post!  
Unread 11-04-2015, 13:57
iLloyd iLloyd is offline
Registered User
AKA: Isiah L.
FRC #0128 (The Botcats)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2013
Location: Grandview
Posts: 27
iLloyd is an unknown quantity at this point
Re: Can't deploy code to robot

Quote:
Originally Posted by jajabinx124 View Post
The line "[sshexec] Remote command failed with exit status 1" looks suspicious. Some other teams seem to have encountered the same issue on this thread.
If I can remember correctly that just means that it could not quit the previous robot code process. This is normal behavior if the Rio was freshly formatted or it doesn't have code.

We had a problem on our team were it would go through the process of uploading the code to the Rio but the DS would not show that Robot Code was available. We found it to be a problem in our RobotInit function that errored out silently. I'd check whatever code is ran when your robot turns on and see if any recent additions could have caused the error. If that doesn't work try to upload a barebones program to see if it works. Lastly try to format your Rio.
  #4   Spotlight this post!  
Unread 11-04-2015, 14:14
AaronP AaronP is offline
Registered User
FRC #1325
 
Join Date: Mar 2015
Location: Mississauga
Posts: 8
AaronP is an unknown quantity at this point
Re: Can't deploy code to robot

So I tried re-formatting the RoboRIO and that didn't work. However, I tried deploying a barebones program from my laptop and that did not work, but when I deployed it from our classmate I did not get that error and it worked so I have no idea what is going on.
  #5   Spotlight this post!  
Unread 11-04-2015, 14:17
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester
Posts: 82
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: Can't deploy code to robot

That happens to us when our robot code throws an exception on execution. Have you tried to run your code in debug mode? See the documentation here for info on how to do that: http://wpilib.screenstepslive.com/s/...-robot-program
__________________
  #6   Spotlight this post!  
Unread 14-04-2015, 16:47
JohnSmooth42 JohnSmooth42 is offline
Is writing code
FRC #0375 (The Robotic Plague)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2012
Location: New York
Posts: 27
JohnSmooth42 is an unknown quantity at this point
Re: Can't deploy code to robot

We kept having that error for a while and I think it was because I was being silly with pointers(C++).
  #7   Spotlight this post!  
Unread 14-04-2015, 17:07
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,186
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: Can't deploy code to robot

We had the same issue, removing any SmartDashboard references fixed it.
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
  #8   Spotlight this post!  
Unread 14-04-2015, 17:17
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Can't deploy code to robot

The code is deploying just fine. This error simply means that it couldn't find an older running version of your code to kill before loading the new one.

This is very likely because your code is crashing when it starts. Use the riolog to find out what exception is being thrown where so you can fix it.
  #9   Spotlight this post!  
Unread 14-04-2015, 17:25
cbf cbf is offline
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 74
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Re: Can't deploy code to robot

Quote:
Originally Posted by Whippet View Post
We had the same issue, removing any SmartDashboard references fixed it.
Were you trying to do an autonomous selector on the SmartDashboard?

Because this code would cause our robot to crash in autonomous:
Code:
	SmartDashboard::PutData("AutoCommand1Can", autoCommandMoveToZone); 
	SmartDashboard::PutData("AutoCommand1Can", autoCommand1Can); 
 	SmartDashboard::PutData("AutoCommand1Can", autoCommand1Can1Tote);
The problem was buried deep in the NetworkTables code. I believe one of the STL mapping classes would return a null pointer on an attempt to add a duplicate key to the map, and the code wasn't checking for that.

I've been meaning to report it to the WPILib people, but I've been kind of busy..
  #10   Spotlight this post!  
Unread 14-04-2015, 19:32
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,186
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: Can't deploy code to robot

Quote:
Originally Posted by cbf View Post
Were you trying to do an autonomous selector on the SmartDashboard?

Because this code would cause our robot to crash in autonomous:
Code:
	SmartDashboard::PutData("AutoCommand1Can", autoCommandMoveToZone); 
	SmartDashboard::PutData("AutoCommand1Can", autoCommand1Can); 
 	SmartDashboard::PutData("AutoCommand1Can", autoCommand1Can1Tote);
The problem was buried deep in the NetworkTables code. I believe one of the STL mapping classes would return a null pointer on an attempt to add a duplicate key to the map, and the code wasn't checking for that.

I've been meaning to report it to the WPILib people, but I've been kind of busy..
Yeah, that was the problem.
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
  #11   Spotlight this post!  
Unread 15-04-2015, 08:46
MrRoboSteve MrRoboSteve is online now
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 565
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Can't deploy code to robot

Might have you covered on the bug report.

https://usfirst.collab.net/sf/go/art...4291020101 11
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
  #12   Spotlight this post!  
Unread 17-04-2015, 19:51
cbf cbf is offline
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 74
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Re: Can't deploy code to robot

Quote:
Originally Posted by MrRoboSteve View Post
Might have you covered on the bug report.

https://usfirst.collab.net/sf/go/art...4291020101 11
Apparently you do.

I actually had this narrowed to the exact place in Network Tables that this happens, but as this was in the middle of the competition, at the time I was satisfied without simply fixing our own code to make it not happen.

After St Louis, I might give actually go back and and suggest a precise fix.
Closed Thread


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 12:40.

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