Start competition error when I deploy the code

19:00:17,691
Error at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:387): The startCompetition() method (or methods called by it) should have handled the exception above. ERROR 1 The startCompetition() method (or methods called by it) should have handled the exception above. edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:387) See Reading Stacktraces β€” FIRST Robotics Competition documentation for more information. The above stacktrace can help determine where the error occurred. Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:380): The robot program quit unexpectedly. This is usually due to a code error. Warning 1 The robot program quit unexpectedly. This is usually due to a code error.
The above stacktrace can help determine where the error occurred.
See Reading Stacktraces β€” FIRST Robotics Competition documentation for more information. edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:380) at frc.robot.Main.main(Main.java:23) at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:458) at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:366) at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107) at frc.robot.Robot.robotInit(Robot.java:31)

our repository

There is typically more to the message before that, and it usually says exactly what the issue is. Please try scrolling up and see if theres more to it.

1 Like

there is this message Error at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:387): The startCompetition() method (or methods called by it) should have handled the exception above. 1 04:00,343 1 1 1

The startCompetition() method (or methods called by it) should have handled the exception above. edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:387) 1 04:00,341 See Reading Stacktraces β€” FIRST Robotics Competition documentation for more information . 1 04:00,341 The above stacktrace can help determine where the error occurred. 1 04:00,340 Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:380): The robot program quit unexpectedly. This is usually due to a code error. 1 04:00,339 1 0 1
The robot program quit unexpectedly. This is usually due to a code error.
The above stacktrace can help determine where the error occurred.
See Reading Stacktraces β€” FIRST Robotics Competition documentation for more information. edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:380) Error at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:387): The startCompetition() method (or methods called by it) should have handled the exception above. 1 04:00,343 1 1 1
The startCompetition() method (or methods called by it) should have handled the exception above. edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:387) 1 04:00,341 See Reading Stacktraces β€” FIRST Robotics Competition documentation for more information . 1 04:00,341 The above stacktrace can help determine where the error occurred. 1 04:00,340 Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:380): The robot program quit unexpectedly. This is usually due to a code error. 1 04:00,339 1 0 1
The robot program quit unexpectedly. This is usually due to a code error.
The above stacktrace can help determine where the error occurred.
See Reading Stacktraces β€” FIRST Robotics Competition documentation for more information. edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:380)

We really need to see β€œthe exception above” in order to be able to help you.

and

You cannot instantiate a SparkMAX with the same CANID twice

1 Like