-
Notifications
You must be signed in to change notification settings - Fork 265
Segfaults trying to open any gif #180
Comments
Forgot to say, this is at rev c33f2ad |
I can not reproduce this. |
Do you have tips for debugging this? If you use the nix package manager then I could probably provide a closure of the build although I don't have my hopes up here. |
Did you by any chance rebuild or update imlib2 or giflib without rebuilding sxiv? |
No, this was a fresh build. The same problem occurs on latest stable release (which is why I tried git) and if any of the dependencies change anywhere along the line, sxiv is rebuilt by our distro's buildbot. Latest stable build: http://hydra.nixos.org/build/16419424 For the git build, I added libexif on top of course. |
I think the problem is not caused by sxiv. While looking at your imlib2 package (https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/imlib2/default.nix) I noticed that it is build with libungif, whereas in the above stack trace the |
So are you saying imlib2 is the culprit here? imlib2 1.4.6 is the latest release so I don't understand how to proceed here. Should we be using older giflib such as 5.0 until imlib2 can update? |
OK, I can confirm that I can open some gifs when using giflib 5.0, although a huge number just gives me ‘could not open image’ warning. I find it strange that there's code in sxiv to handle the new giflib 5.1 API but its other dependency can't work with it. |
Maybe you should not use libungif at build time and giflib at run time. And then you can either use an older version of giflib or patch imlib2. As is beeing done for sxiv, btw: the current stable release (1.2) does not yet honor the API changes in giflib, too. |
OK, I will worry about this again at the next release, for now using older giflib will have to do. I will close this issue but it would be great if you could put a couple of words about this in the dependencies part of the readme. |
Making sxiv requiring giflib 5.0 is not a proper fix, as sxiv is not the issue. The problem is caused by imlib2 beeing build with a different gif library than it is run against. You're just hiding instead of fixing the issue. |
OK, I understand. Thank you for your time, I will employ a fix on our end as soon as time allows. |
FYI: I now migrated our imlib2 to use giflib and sxiv works great, thanks. |
sxiv foo.gif
just results in a segfault straight awayThe text was updated successfully, but these errors were encountered: