Skip to content

Lumynlabs 2026.1.2 crashes on Windows #4

@godmar

Description

@godmar

When we call

led.leds.SetAnimation(Animation.None).ForZone("1").WithColor(Color.kBlack).RunOnce(true);

or really any SetAnimation with Animation.None, we crash:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x00007ffb5247a80a, pid=15724, tid=22224
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.16+8 (17.0.16+8) (build 17.0.16+8)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.16+8 (17.0.16+8, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C  [KERNELBASE.dll+0xca80a]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:51132 -Djava.library.path=C:\Users\joshu\Documents\401\Programming\Robot Code\2026-Robot-Code\build\jni\release -XX:+ShowCodeDetailsInExceptionMessages frc.robot.Main

Host: 13th Gen Intel(R) Core(TM) i9-13900H, 20 cores, 31G,  Windows 11 , 64 bit Build 26100 (10.0.26100.7705)
Time: Sat Feb 21 12:37:15 2026 Eastern Standard Time elapsed time: 17.663183 seconds (0d 0h 0m 17s)

---------------  T H R E A D  ---------------

Current thread (0x000001dc805c6560):  JavaThread "robot main" daemon [_thread_in_native, id=22224, stack(0x000000bffef00000,0x000000bfff000000)]

Stack: [0x000000bffef00000,0x000000bfff000000],  sp=0x000000bffeffe900,  free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [KERNELBASE.dll+0xca80a]
C  [VCRUNTIME140.dll+0x52c7]
C  [msvcp140.dll+0x34bb2]
C  [LumynDriver.dll+0x5528e]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.lumynlabs.jni.LumynJNI.SetAnimation(JLjava/lang/String;Lcom/lumynlabs/domain/led/Animation;Lcom/lumynlabs/domain/led/AnimationColor;IZZ)V+0
j  com.lumynlabs.domain.led.LedHandler.SetAnimation(Ljava/lang/String;Lcom/lumynlabs/domain/led/Animation;Ledu/wpi/first/wpilibj/util/Color;Ledu/wpi/first/units/Measure;ZZ)V+25
j  com.lumynlabs.domain.led.AnimationBuilder.execute()V+67
J 2437 c1 frc.robot.subsystems.LED.periodic()V (102 bytes) @ 0x000001dc6e82131c [0x000001dc6e820b00+0x000000000000081c]

In our opinion, this shouldn't happen.
Also, what's the sanctioned way to turn the LED zone to black (turn off all animations?)

As a work-around, we've been successful using Animation.fill

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions