Error at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:365): The startCompetition() method (or methods called by it) should have handled the exception above.
Without seeing the whole stack trace I can’t know but the two most common causes of this is a CAN device that doesn’t really exist, or a null pointer where your either referencing something before it’s created or before a value is assigned
[CAN SPARK MAX] IDs: 5, WPILib or External HAL Error: CAN: Message not found Periodic Status 1
[CAN SPARK MAX] IDs: 5, Unable to retrieve SPARK MAX firmware version. Please verify the deviceID field matches the configured CAN ID of the controller, and that the controller is connected to the CAN Bus.
Unhandled exception: edu.wpi.first.hal.util.AllocationException: Channels 1 and 2 already allocated
Yes, we have came to the conclusion that our power distribution is not properly giving power to the motor controls in turn making out CAN very faulty.
Can you open your Rio log data and see the power usage on each port to determine where exactly the issue is coming from and then check the connections for the ports?
Your code is crashing because you are trying to assign ports 1 and 2 to multiple devices. I’m assuming this is either a DoubleSolenoid or Encoder since it is printing 2 port numbers. Check to make sure all of your port numbers are unique per-device.