Go to Post There is no shame in playing the best match you can play. - sanddrag [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 19-01-2009, 16:39
Hunter1100 Hunter1100 is offline
Registered User
FRC #1100
 
Join Date: Jan 2009
Location: Northborough, MA
Posts: 4
Hunter1100 is an unknown quantity at this point
Very Strange cRIO Crash

I am currently trying to make a class, based loosely on the dashboard data demo program, to abstract both the robot's hardware and its connection to dashboard. Right now the class initializes all the hardware (except PWMS, which it waits for the robot to request one of the type it needs) including the camera in its constructor. Whenever I run my update method to send the information to dashboard however, it crashes. After a few days of debugging I can't seem to determine exactly what is causing the crash but I do know things that specifically do and do not cause a crash: If I leave the update method as intended, it crashes as soon as the first dashboard method is called, however, if I comment out ALL dashboard related code, it still crashes but simply a semi-regular period of time afterward (I get a different amount of my printfs back every time I crash it in the way). If I remove the printfs (or most of them) it runs fine! Also, if I initialize the dashboard and ONLY use finalize methods (finalizeCluster and just finalize) it runs, but spouts errors about miss-matched add and finalize calls (makes sense). The interesting this is the crash occurs in FRC_RobotTask but only one stack is present. The assembly in the area it crashes is a VERY long string of ".long 0" (over and over for as far as I can scroll up) and occurs exactly at address 300 every time.

If you want to take a look at the code you can find it here: http://code.google.com/p/frc2009/sou...ches/dashboard

The method that crashes is HardwareInterface::UpdateDashboard and currently it only has the printf commented out.

ANy help would be GREATLY appreciated, I'm really at a loss here.


EDIT : Fixed it! was accidently overwriting the bounds of a few arrays, with disastrous results.

Last edited by Hunter1100 : 20-01-2009 at 03:02.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PlasmaCam Crash Course Andrew Blair Technical Discussion 0 30-12-2005 21:48
FIRST Technical Crash Course Alex Burman Technical Discussion 10 16-12-2005 23:04
Prom Night Crash Nate Edwards General Forum 5 28-05-2005 15:15
3dsmax5 Crash? yangotang Inventor 5 09-03-2003 21:17
crash and bash confusion????? nick reynolds General Forum 5 10-02-2002 23:01


All times are GMT -5. The time now is 02:57.

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