Critical ArrayIndexOutOfBoundsException in Image Processing
Author: BigBraveKnightCreated Dec 19, 2025Updated Dec 19, 2025
Critical array index out of bounds exception discovered in Haven's image processing module during automated testing. The crash occurs in ImageCodec.N21toLuma()method when processing specific image data patterns.
Error Details Exception: java.lang.ArrayIndexOutOfBoundsException: length=460800; index=460800
Location: Method: ImageCodec.N21toLuma() File: ImageCodec.java:27 Component: Image processing pipeline
Stack Trace:
java.lang.ArrayIndexOutOfBoundsException: length=460800; index=460800 at org.havenapp.main.sensors.media.ImageCodec.N21toLuma(ImageCodec.java:27) at org.havenapp.main.sensors.motion.MotionDetector.detect(MotionDetector.java:79)
Source: guardianproject/haven