robotpy / robotpy-wpilib

Moved to https://github.com/robotpy/mostrobotpy
https://robotpy.github.io
Other
170 stars 60 forks source link

[BUG]: Exceptions from startCompetition don't terminate code on roboRIO #713

Closed auscompgeek closed 7 months ago

auscompgeek commented 2 years ago

Problem description

If an exception is raised from startCompetition, e.g. within testPeriodic, then the exception is raised but doesn't cause the robot code process to terminate, when on the roboRIO.

Operating System

RoboRIO

Installed Python Packages

No response

Reproducible example code

import wpilib

class Robot(wpilib.TimedRobot):
  def testPeriodic(self):
    raise RuntimeError
virtuald commented 1 year ago

I was able to duplicate this once, but then it never happened once I did raise RuntimeError() instead (and in fact, it kept working even when I changed it back). Something weird here, for sure, but I don't see any reason why this bug would occur.

virtuald commented 7 months ago

Closing, can reopen if we see it again.