Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Hydrogen #25

Merged
merged 15 commits into from
Sep 4, 2024
Merged

Updated Hydrogen #25

merged 15 commits into from
Sep 4, 2024

Conversation

dannynotsmart
Copy link
Member

added vision, modified drive, autos, and Robot

@Yxhej Yxhej requested review from sigalrmp and kishan243 August 12, 2024 01:45
@Yxhej
Copy link
Member

Yxhej commented Aug 18, 2024

One thing I noticed in simulation: vision sim inconsistently freezes the sim gui as a result of high cpu & mem usage when seeing tags. No cameras are created in Vision as a result.

The code is the exact same as in Crescendo, which I could not recreate this issue in. Inputs appear normal. I could not find the root cause. Tested on my desktop + laptop.

Crashing on laptop returned this stacktrace:

********** Robot program startup complete **********
Error at java.base/java.util.Arrays.copyOf(Arrays.java:3512): Unhandled exception: java.lang.OutOfMemoryError: Java heap space
        at java.base/java.util.Arrays.copyOf(Arrays.java:3512)
        at java.base/java.util.Arrays.copyOf(Arrays.java:3481)
        at java.base/java.util.ArrayList.grow(ArrayList.java:237)
        at java.base/java.util.ArrayList.grow(ArrayList.java:244)
        at java.base/java.util.ArrayList.add(ArrayList.java:454)
        at java.base/java.util.ArrayList.add(ArrayList.java:467)
        at org.photonvision.simulation.VideoSimUtil.polyFrom3dLines(VideoSimUtil.java:496)
        at org.photonvision.simulation.VideoSimUtil.drawFieldWireframe(VideoSimUtil.java:552)
        at org.photonvision.simulation.PhotonCameraSim.process(PhotonCameraSim.java:449)
        at org.photonvision.simulation.VisionSystemSim.update(VisionSystemSim.java:396)
        at org.photonvision.simulation.VisionSystemSim.update(VisionSystemSim.java:344)
        at org.sciborgs1155.robot.vision.Vision.simulationPeriodic(Vision.java:179)
        at org.sciborgs1155.robot.Robot.lambda$3(Robot.java:88)
        at org.sciborgs1155.robot.Robot$$Lambda$168/0x000001868114e258.run(Unknown Source)
        at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:140)
        at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:365)
        at edu.wpi.first.wpilibj.RobotBase.lambda$startRobot$0(RobotBase.java:433)
        at edu.wpi.first.wpilibj.RobotBase$$Lambda$2/0x0000018681016168.run(Unknown Source)
        at java.base/java.lang.Thread.run(Thread.java:833)

while on desktop, no stacktrace was reported.

Log files never got the chance to be renamed and saved in the /logs folder.

@Yxhej
Copy link
Member

Yxhej commented Aug 30, 2024

bump (also testing testing) please show

One thing I noticed in simulation: vision sim inconsistently freezes the sim gui as a result of high cpu & mem usage when seeing tags. No cameras are created in Vision as a result.

The code is the exact same as in Crescendo, which I could not recreate this issue in. Inputs appear normal. I could not find the root cause. Tested on my desktop + laptop.

Crashing on laptop returned this stacktrace:

********** Robot program startup complete **********
Error at java.base/java.util.Arrays.copyOf(Arrays.java:3512): Unhandled exception: java.lang.OutOfMemoryError: Java heap space
        at java.base/java.util.Arrays.copyOf(Arrays.java:3512)
        at java.base/java.util.Arrays.copyOf(Arrays.java:3481)
        at java.base/java.util.ArrayList.grow(ArrayList.java:237)
        at java.base/java.util.ArrayList.grow(ArrayList.java:244)
        at java.base/java.util.ArrayList.add(ArrayList.java:454)
        at java.base/java.util.ArrayList.add(ArrayList.java:467)
        at org.photonvision.simulation.VideoSimUtil.polyFrom3dLines(VideoSimUtil.java:496)
        at org.photonvision.simulation.VideoSimUtil.drawFieldWireframe(VideoSimUtil.java:552)
        at org.photonvision.simulation.PhotonCameraSim.process(PhotonCameraSim.java:449)
        at org.photonvision.simulation.VisionSystemSim.update(VisionSystemSim.java:396)
        at org.photonvision.simulation.VisionSystemSim.update(VisionSystemSim.java:344)
        at org.sciborgs1155.robot.vision.Vision.simulationPeriodic(Vision.java:179)
        at org.sciborgs1155.robot.Robot.lambda$3(Robot.java:88)
        at org.sciborgs1155.robot.Robot$$Lambda$168/0x000001868114e258.run(Unknown Source)
        at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:140)
        at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:365)
        at edu.wpi.first.wpilibj.RobotBase.lambda$startRobot$0(RobotBase.java:433)
        at edu.wpi.first.wpilibj.RobotBase$$Lambda$2/0x0000018681016168.run(Unknown Source)
        at java.base/java.lang.Thread.run(Thread.java:833)

while on desktop, no stacktrace was reported.

Log files never got the chance to be renamed and saved in the /logs folder.

@Yxhej Yxhej merged commit 55bb4b6 into main Sep 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants