You are not logged in.

#1 2016-02-13 12:08:10

likytau
Member
Registered: 2012-09-02
Posts: 142

imlib2 gif support is now mostly broken, as of giflib 5.1.2

I've verified this with multiple Imlib2 based apps, including sxiv, feh, and imlib2's own imlib2_view.
As imlib2 is no longer maintained, the imlib2 package for Arch will probably need to include a patch for this.

To that end I've posted this topic, to help figure out exactly what is the problem.  I did a bit of testing and posted results
here. A quick summary of my findings:  "Loading a gif fails. Loading one or more gifs after that gif succeeds. Loading a non-gif causes the next gif load to fail".

To me, this seems to point to an 'initialization' type bug: something in giflib now requires initialization where it didn't before.

Posters:
* Can you verify this experience (general gif brokenness with sxiv / feh / other imlib2 based programs)?
* Any idea what exactly is happening inside of giflib here? 'inexpensive sanity check in DGifSlurp' is the only thing that catches my eye in the NEWS file.

Offline

#2 2016-02-13 12:35:47

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: imlib2 gif support is now mostly broken, as of giflib 5.1.2

I don't have access to my Arch machine right now, I'll try to verify it in a couple of days.

Moving to "Applications and Desktop Environments".

Offline

#3 2016-02-13 15:46:00

pauper
Member
Registered: 2012-06-25
Posts: 38

Re: imlib2 gif support is now mostly broken, as of giflib 5.1.2

That's pretty much in line with some odd behaviour I've seen in sxiv the last week or so. I have a script where sxiv displays some animated gif weather radars and a couple of jpeg webcam images in a slideshow. First time through one of the animated gifs fails and one works, from then on only the jpeg webcam images are displayed.

Offline

#4 2016-02-13 16:56:39

Vain
Member
Registered: 2008-10-19
Posts: 179
Website

Re: imlib2 gif support is now mostly broken, as of giflib 5.1.2

Have you tried building giflib's current git HEAD? From what I can tell, this appears to be fixed since giflib ef0cb9. The commit that broke stuff seems to be giflib b1ca661.

Note that the breaking commit checks for `Private->RunningBits > 32` and commit ef0cb9 initializes that memory to 0 after malloc'ing it. I've only read fragments of giflib's code, but this makes sense to me. I'd speculate that the bug only affects some GIF files.

Offline

#5 2016-02-13 23:17:07

likytau
Member
Registered: 2012-09-02
Posts: 142

Re: imlib2 gif support is now mostly broken, as of giflib 5.1.2

@Vain:

Yep, looks like that fixes it (tested with sxiv, feh, imlib2_view).. So giflib's the basic problem -- are non-imlib2 apps affected? (I got some weird gif load results with GIMP the other day which suggest to me it's also affected, but that's just IIRC)

(since we don't have a giflib-git AUR package or similar that facilitates easy fixing here,  I won't mark this as SOLVED until the next release of giflib comes out)

Last edited by likytau (2016-02-13 23:20:33)

Offline

#6 2016-02-14 10:47:54

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: imlib2 gif support is now mostly broken, as of giflib 5.1.2

Maybe it's best to apply that patch to the ABS giflib package until the next release comes out.

Offline

#7 2016-02-14 12:17:27

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: imlib2 gif support is now mostly broken, as of giflib 5.1.2

How about using the asp instead?

See https://bbs.archlinux.org/viewtopic.php?id=185075

Offline

#8 2016-02-22 06:12:42

Sounds_About
Member
Registered: 2015-11-30
Posts: 7

Re: imlib2 gif support is now mostly broken, as of giflib 5.1.2

likytau wrote:

"Loading a gif fails. Loading one or more gifs after that gif succeeds. Loading a non-gif causes the next gif load to fail".

Not sure if you still need verification(s), but this has been happening to me in ranger file manager.

Offline

Board footer

Powered by FluxBB