AdvantageKit icon indicating copy to clipboard operation
AdvantageKit copied to clipboard

Logged console output in log replay does not log most errors/warnings.

Open blaze-developer opened this issue 8 months ago • 0 comments

I noticed an error in our console logs. When recreating this error in replay, the error appears in the console, but not in the recorded log file under ReplayOutputs/Console. The error is as below; it does not crash the robot code, but continues to run. I expected to see the error in AdvantageScope, to compare errors from the original console output.

********** Robot program starting **********
NT: Listening on NT3 port 1735, NT4 port 5810
[AdvantageKit] Replaying log from AdvantageScope: "C:\Users\team1425\Downloads\akit_25-04-16_16-18-08_daly_p9_replay_2.wpilog"
[AdvantageKit] Logging to "C:\Users\team1425\Downloads\akit_25-04-16_16-18-08_daly_p9_replay_3.wpilog"
[phoenix] CANbus Connected: sim
[phoenix] CANbus Network Up: sim
********** Robot program startup complete **********

Warning at edu.wpi.first.wpilibj.DriverStation.reportJoystickUnpluggedWarning(DriverStation.java:1346): Joystick Button 1 on port 0 not available, check if controller is plugged in
[phoenix-diagnostics] Server 2025.1.0 (Mar 22 2025, 23:16:10) running on port: 1250

...

Warning at edu.wpi.first.wpilibj.IterativeRobotBase.printLoopOverrunMessage(IterativeRobotBase.java:436): Loop time of 0.02s overrun

Error at java.base/java.lang.Thread.getStackTrace(Thread.java:1619): x and y components of Rotation2d are zero

        at java.base/java.lang.Thread.getStackTrace(Thread.java:1619)
        at edu.wpi.first.math.geometry.Rotation2d.<init>(Rotation2d.java:126)
        at frc.robot.commands.drive.DriveCommands.lambda$simplePathCommand$12(DriveCommands.java:403)
        at edu.wpi.first.wpilibj2.command.DeferredCommand.initialize(DeferredCommand.java:49)
        at edu.wpi.first.wpilibj2.command.ParallelCommandGroup.initialize(ParallelCommandGroup.java:70)
        at edu.wpi.first.wpilibj2.command.SequentialCommandGroup.execute(SequentialCommandGroup.java:83)
        at org.xerosw.util.XeroSequenceCmd.execute(XeroSequenceCmd.java:33)
        at edu.wpi.first.wpilibj2.command.CommandScheduler.run(CommandScheduler.java:294)
        at frc.robot.Robot.robotPeriodic(Robot.java:194)
        at edu.wpi.first.wpilibj.IterativeRobotBase.loopFunc(IterativeRobotBase.java:400)
        at org.littletonrobotics.junction.LoggedRobot.startCompetition(LoggedRobot.java:117)
        at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:419)
        at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:510)
        at frc.robot.Main.main(Main.java:33)

Image

blaze-developer avatar Apr 17 '25 03:04 blaze-developer