Skip to content

OutOfMemory while decoding large jxl images #129

@dimlev

Description

@dimlev

Hi,

With the use of jxl-oxide image crate decoding hook jxl images are now memory limited using the default image limits.

The downside is that some of the default gnome wallpapers now fail to show which might create a bad user experience if you are switching DEs. The error is:

   WARN  Failed to decode image: /usr/share/backgrounds/gnome/amber-l.jxl, why: Decoding(DecodingError { format: PathExtension("jxl"), underlying: Some(Decoding(DecodingError { format: PathExtension("jxl"), underlying: Some(Buffer(OutOfMemory { bytes: 67108892 })) })) })
    at src/wallpaper.rs:136 on main

You can find the wallpapers here: https://gitlab.gnome.org/GNOME/gnome-backgrounds/

An easy workaround is to increase the default memory limit to Some(1024 * 1024 * 1024) instead of Some(512 * 1024 * 1024) which works for all of the gnome wallpapers.

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