I tried siming my code and got the following error Error at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:386): The startCompetition() method (or methods called by it) should have handled the exception above. please help me this is a cry for help.
heres the code
Hi there, welcome to CD. That single line isn’t enough to help debug your error, can you please provide all the output you see?
The above stacktrace can help determine where the error occurred.
See Reading Stacktraces — FIRST Robotics Competition documentation for more information.
Error at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:386): The startCompetition() method (or methods called by it) should have handled the exception above.
Warning at edu.wpi.first.wpilibj.IterativeRobotBase.printLoopOverrunMessage(IterativeRobotBase.java:412): Loop time of 0.02s overrun
[phoenix-diagnostics] Server shutdown cleanly. (dur:0)
[phoenix] Library shutdown cleanly
this is all the info i get
There’s nothing more? Scroll up all the way.
PS C:\Projects\ChillBot-1> {env:HALSIM_EXTENSIONS}='C:\Projects\ChillBot-1\build\jni\release\halsim_gui.dll;'; {env:PATH}='C:\Projects\ChillBot-1\build\jni\release;C:\WINDOWS\system32'; & ‘C:\jdk-21\bin\java.exe’ ‘-agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:55343’ ‘@C:\Users\Eddie\AppData\Local\Temp\cp_1m6jr46gddob7kv1oushg5vg8.argfile’ ‘frc.robot.Main’
HAL Extensions: Attempting to load: halsim_gui
Simulator GUI Initializing.
Simulator GUI Initialized!
HAL Extensions: Successfully loaded extension
********** Robot program starting **********
NT: Listening on NT3 port 1735, NT4 port 5810
[phoenix] CANbus Connected: sim
[phoenix] CANbus Network Up: sim
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
pigeon 2 50 (“drivetrain”) Status Signal Yaw
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 1 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 2 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
cancoder 43 (“drivetrain”) Status Signal Position
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 3 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 4 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
cancoder 41 (“drivetrain”) Status Signal Position
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 5 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 6 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
cancoder 42 (“drivetrain”) Status Signal Position
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 7 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 8 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
cancoder 40 (“drivetrain”) Status Signal Position
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
ctre.phoenix6.BaseStatusSignal.waitForAll
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 14 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 33 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 14 (“drivetrain”) Refresh Config
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 33 (“drivetrain”) Refresh Config
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 33 (“drivetrain”) Apply Config
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 13 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 13 (“drivetrain”) Refresh Config
[phoenix] Library initialization is complete.
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 14 (“drivetrain”) Apply Config
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 32 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 31 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
cancoder 44 (“drivetrain”) Status Signal Position
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 31 (“drivetrain”) Refresh Config
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 32 (“drivetrain”) Status Signal Fault_FusedSensorOutOfSync
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 32 (“drivetrain”) Status Signal StickyFault_FusedSensorOutOfSync
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 32 (“drivetrain”) Status Signal Fault_RemoteSensorDataInvalid
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 32 (“drivetrain”) Status Signal StickyFault_RemoteSensorDataInvalid
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 12 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 11 (“drivetrain”) Status Signal DutyCycle
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 12 (“drivetrain”) Refresh Config
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
talon fx 12 (“drivetrain”) Apply Config
Warning at edu.wpi.first.wpilibj.DriverStation.reportJoystickUnpluggedWarning(DriverStation.java:1364): Joystick axis 3 on port 0 not available, check if controller is plugged in
********** Robot program startup complete **********
Error at frc.robot.subsystems.Extension.Extension.UpdateTelemetry(Extension.java:51): Unhandled exception: java.lang.NullPointerException: Cannot invoke “edu.wpi.first.networktables.GenericEntry.setDouble(double)” because “this.temp” is null
at frc.robot.subsystems.Extension.Extension.UpdateTelemetry(Extension.java:51)
at frc.robot.subsystems.Extension.Extension.periodic(Extension.java:43)
at edu.wpi.first.wpilibj2.command.CommandScheduler.run(CommandScheduler.java:260)
at frc.robot.Robot.robotPeriodic(Robot.java:24)
at edu.wpi.first.wpilibj.IterativeRobotBase.loopFunc(IterativeRobotBase.java:381)
at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:131)
at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:365)
at edu.wpi.first.wpilibj.RobotBase.lambda$startRobot$0(RobotBase.java:433)
at java.base/java.lang.Thread.run(Thread.java:1583)
You haven’t initialized temp
: