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

Event Loop Manager throwing IndexOutOfBoundsException #1232

Open
js802025 opened this issue Oct 31, 2024 · 2 comments
Open

Event Loop Manager throwing IndexOutOfBoundsException #1232

js802025 opened this issue Oct 31, 2024 · 2 comments

Comments

@js802025
Copy link

Every so often the robot will Emergency Stop with an IndexOutOfBoundsException

Here is an excerpt from the log file with the error:

10-30 17:47:29.355   972  1168 V Robocol : sending CMD_GAMEPAD_LED_EFFECT(10755), attempt: 0
10-30 17:47:29.359   972  1190 E EventLoopManager: java.lang.IndexOutOfBoundsException: Index: 9, Size: 9
10-30 17:47:29.362   972  1190 E EventLoopManager: 	at java.util.ArrayList.get(ArrayList.java:411)
10-30 17:47:29.368   972  1190 E EventLoopManager: 	at org.firstinspires.ftc.robotcore.internal.opmode.TelemetryImpl$LogImpl.get(TelemetryImpl.java:521)
10-30 17:47:29.373   972  1190 E EventLoopManager: 	at org.firstinspires.ftc.robotcore.internal.opmode.TelemetryImpl.saveToTransmitter(TelemetryImpl.java:787)
10-30 17:47:29.378   972  1190 E EventLoopManager: 	at org.firstinspires.ftc.robotcore.internal.opmode.TelemetryImpl.tryUpdate(TelemetryImpl.java:722)
10-30 17:47:29.383   972  1190 E EventLoopManager: 	at org.firstinspires.ftc.robotcore.internal.opmode.TelemetryImpl.tryUpdateIfDirty(TelemetryImpl.java:692)
10-30 17:47:29.388   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.eventloop.opmode.LinearOpMode.internalOnEventLoopIteration(LinearOpMode.java:223)
10-30 17:47:29.394   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.eventloop.opmode.OpModeManagerImpl.checkOnActiveOpMode(OpModeManagerImpl.java:801)
10-30 17:47:29.398   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.eventloop.opmode.OpModeManagerImpl.runActiveOpMode(OpModeManagerImpl.java:444)
10-30 17:47:29.400   972  1190 E EventLoopManager: 	at com.qualcomm.ftccommon.FtcEventLoop.loop(FtcEventLoop.java:288)
10-30 17:47:29.402   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.eventloop.EventLoopManager$EventLoopRunnable$1.run(EventLoopManager.java:324)
10-30 17:47:29.404   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.util.ThreadPool.logThreadLifeCycle(ThreadPool.java:737)
10-30 17:47:29.405   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.eventloop.EventLoopManager$EventLoopRunnable.run(EventLoopManager.java:267)
10-30 17:47:29.406   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.eventloop.EventLoopManager$1.run(EventLoopManager.java:606)
10-30 17:47:29.412   972  1190 E EventLoopManager: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
10-30 17:47:29.414   972  1190 E EventLoopManager: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
10-30 17:47:29.415   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.util.ThreadPool$ThreadFactoryImpl$1.run(ThreadPool.java:793)
10-30 17:47:29.415   972  1190 E EventLoopManager: 	at java.lang.Thread.run(Thread.java:761)
10-30 17:47:29.416   972  1190 V EventLoopManager: RobotCoreException in EventLoopManager
10-30 17:47:29.420   972  1190 E EventLoopManager: com.qualcomm.robotcore.exception.RobotCoreException: EventLoop Exception in loop(): IndexOutOfBoundsException - Index: 9, Size: 9
10-30 17:47:29.421   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.eventloop.EventLoopManager$EventLoopRunnable$1.run(EventLoopManager.java:333)
10-30 17:47:29.422   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.util.ThreadPool.logThreadLifeCycle(ThreadPool.java:737)
10-30 17:47:29.423   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.eventloop.EventLoopManager$EventLoopRunnable.run(EventLoopManager.java:267)
10-30 17:47:29.424   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.eventloop.EventLoopManager$1.run(EventLoopManager.java:606)
10-30 17:47:29.424   972  1190 E EventLoopManager: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
10-30 17:47:29.425   972  1190 E EventLoopManager: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
10-30 17:47:29.426   972  1190 E EventLoopManager: 	at com.qualcomm.robotcore.util.ThreadPool$ThreadFactoryImpl$1.run(ThreadPool.java:793)
10-30 17:47:29.427   972  1190 E EventLoopManager: 	at java.lang.Thread.run(Thread.java:761)
10-30 17:47:29.427   972  1190 V RobotCore: EventLoopManager state is EMERGENCY_STOP
10-30 17:47:29.427   972  1190 V RobotCore: Robot Status: EMERGENCY STOP
10-30 17:47:29.430   972  1164 D RobotCore: system telemetry: key=$System$Error$ msg="System exception: IndexOutOfBoundsException - Index: 9, Size: 9"
10-30 17:47:29.432   972  1190 I FtcEventLoop: ======= TEARDOWN =======```
@alan412
Copy link

alan412 commented Oct 31, 2024 via email

@js802025
Copy link
Author

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

No branches or pull requests

2 participants