On Sun, Nov 20, 2022 at 01:56:44PM -0800, Kristaps Dzonsons wrote: > Hi, > > When using shotwell for full-frame (~40 MB) photos, recent updates caused > import of said files to barf and not import with mysterious "Backing store > not supported" errors in the log. Seems this error comes from gdk-pixbuf2, > which passes hard constraints to libjpeg regarding memory usage. The > enclosed patch fixes this when dropped into "patches". > > When applied and gdk-pixbuf (as of 7.2, version 2.42.9) updated, I no longer > have errors. > > See https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/216 for details.
Thanks, fixed in 7.2-stable (-current is already at a newer release which has the fix). > Best, > > Kristaps > Index: gdk-pixbuf/io-jpeg.c > --- gdk-pixbuf/io-jpeg.c.orig > +++ gdk-pixbuf/io-jpeg.c > @@ -1091,7 +1091,7 @@ gdk_pixbuf__jpeg_image_load_increment (gpointer data, > rc = jpeg_read_header (cinfo, TRUE); > context->src_initialized = TRUE; > > - cinfo->mem->max_memory_to_use = 100 * 1024 * 1024; > + cinfo->mem->max_memory_to_use = 1024 * 1024 * 1024; > > if (rc == JPEG_SUSPENDED) > continue; -- Antoine