"Unexpected error: Please contact developers" when loading jxl file

Attempted to load this jxl file in krita, and received the following error message:
“Could not open C:\Users\CandyCorvid\Downloads\2021-08_totocaca.jxl. Reason: Unexpected error. Please contact developers.”

Krita opens other JXL files with no issue, and this image does not display in firefox nightly with JXL support, so I suspect that this file is an edge case of the format.

That file is only 81 bytes in size, which seems very small for an image file.

If you have a look at the main jpeg xl art page, it’s one of a set of intentionally tiny jxl files that produce interesting images. The relevant quote from the aforementioned page:

JXL art is a form of procedural image generation that exploits the powerful meta-adaptive context model (and other fancy coding tools) of JXL to produce interesting-looking images that are tiny jxl files.

Compare this image, which is only 34 bytes, but successfully renders a 2048x2048 image (e.g. in krita)

1 Like

Could you file a bug report attaching the faulty file? I was able to open the file with an old jxl viewer, but the file fails in master with

./lib/jxl/splines.cc:637: JXL_FAILURE: Too many pixels covered with splines
./lib/jxl/dec_frame.cc:290: JXL_RETURN_IF_ERROR code=1: shared.image_features.splines.InitializeDrawCache( frame_dim_.xsize_upsampled, frame_dim_.ysize_upsampled, dec_state_->shared->cmap)
./lib/jxl/decode.cc:1182: frame processing failed

That’s what I was trying to do by posting here. Where is the preferred bug tracker?

Here is the link to the bug tracker Log in to KDE Bugtracking System

1 Like

Issue raised

1 Like