Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

New Trajectory Auto Init Has NullPointerException #97

Open
stulewin opened this issue Mar 22, 2022 · 0 comments
Open

New Trajectory Auto Init Has NullPointerException #97

stulewin opened this issue Mar 22, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@stulewin
Copy link
Contributor

The merged trajectory code into the climber branch has a problem with the instantiation of the auto commands in Robot.java.

I am going to comment out for now in the climber_sequence_impl branch so I can continue.

Here is the stack trace; since I don't understand it - I'll leave it to you. Is it a function of my laptop development environment?

20:06:25.709 INFO [main] f.r.c.d.DriveTrajectory[178] constructing DriveTrajectory for StraightLine
Unhandled exception: java.lang.NullPointerException
Error at java.base/java.util.ImmutableCollections$Set12.(Unknown Source): Unhandled exception: java.lang.NullPointerException
at java.base/java.util.ImmutableCollections$Set12.(Unknown Source)
at java.base/java.util.Set.of(Unknown Source)
at edu.wpi.first.wpilibj2.command.CommandGroupBase.requireUngrouped(CommandGroupBase.java:57)
at edu.wpi.first.wpilibj2.command.SequentialCommandGroup.addCommands(SequentialCommandGroup.java:34)
at frc.robot.commands.drive.DriveTrajectory.(DriveTrajectory.java:53)
at frc.robot.Robot.createAutoChooser(Robot.java:300)
at frc.robot.Robot.robotInit(Robot.java:206)
at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107)
at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:373)
at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:463)
at frc.robot.Main.main(Main.java:35)
The robot program quit unexpectedly. This is usually due to a code error.
The above stacktrace can help determine where the error occurred.
See https://wpilib.org/stacktrace for more information.
Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:388): The robot program quit unexpectedly. This is usually due to a code error.
The above stacktrace can help determine where the error occurred.
See https://wpilib.org/stacktrace for more information.
The startCompetition() method (or methods called by it) should have handled the exception above.
Error at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:395): The startCompetition() method (or methods called by it) should have handled the exception above.

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0xb6d9f3d8, pid=2722, tid=2728

JRE version: OpenJDK Runtime Environment (11.0.12.5) (build 11.0.12.5-frc+0-2022-11.0.12u5-1)

Java VM: OpenJDK Client VM (11.0.12.5-frc+0-2022-11.0.12u5-1, mixed mode, concurrent mark sweep gc, linux-)

Problematic frame:

C [libc.so.6+0x6c3d8]

No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

An error report file with more information is saved as:

/tmp/hs_err_pid2722.log

@stulewin stulewin added the bug Something isn't working label Mar 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants