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

Index out of bounds on lossy animated jxl #26

Closed
Quackdoc opened this issue May 23, 2023 · 0 comments · Fixed by #27
Closed

Index out of bounds on lossy animated jxl #26

Quackdoc opened this issue May 23, 2023 · 0 comments · Fixed by #27

Comments

@Quackdoc
Copy link

encoding lossless -d 0 works fine,

RUST_BACKTRACE=1 .\target\release\jxl-dec.exe C:\Users\Quack\Pictures\magilou-lossy.jxl -o magi-lossy.apng
2023-05-23T05:33:35.068429Z  INFO jxl_dec: Image dimension: 245x245
thread 'main' panicked at 'index out of bounds: the len is 16 but the index is 4294967295', crates\jxl-color\src\tf.rs:131:44
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library\std\src\panicking.rs:575
   1: core::panicking::panic_fmt
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library\core\src\panicking.rs:64
   2: core::panicking::panic_bounds_check
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library\core\src\panicking.rs:159
   3: jxl_color::tf::linear_to_srgb_avx2
             at .\crates\jxl-color\src\tf.rs:131
   4: jxl_color::convert::from_linear_srgb
             at .\crates\jxl-color\src\convert.rs:75
   5: jxl_render::inner::ContextInner::render_frame
             at .\crates\jxl-render\src\inner.rs:238
   6: jxl_render::RenderContext::render_by_index
             at .\crates\jxl-render\src\lib.rs:180
   7: jxl_render::RenderContext::render_keyframe_cropped
             at .\crates\jxl-render\src\lib.rs:224
   8: jxl_oxide::JxlRenderer::render_frame
             at .\crates\jxl-oxide\src\lib.rs:272
   9: jxl_oxide::JxlRenderer::render_next_frame<std::fs::File>
             at .\crates\jxl-oxide\src\lib.rs:306
  10: jxl_dec::main
             at .\crates\jxl-oxide-cli\src\bin\jxl-dec.rs:166
  11: core::ops::function::FnOnce::call_once
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74\library\core\src\ops\function.rs:250
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

encoding output

cjxl magilou.png magilou-lossy.jxl
JPEG XL encoder v0.9.0 682af97 [AVX2,SSE4,SSSE3,SSE2]
Read 245x245 image, 1199060 bytes, 6.3 MP/s
Encoding [VarDCT, d1.000, effort: 7],
Compressed to 1940514 bytes (6.158 bpp/frame).
245 x 245, 0.04 MP/s [0.04, 0.04], 1 reps, 12 threads.

image: https://files.catbox.moe/ro30u4.jxl
source: magilou

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 a pull request may close this issue.

1 participant