Opened 12 years ago
Closed 9 years ago
#38012 closed defect (fixed)
libsdl_image 1.2.12: fails to load some .png images on 10.5
Reported by: | mklein-de (Michael Klein) | Owned by: | jmroot (Joshua Root) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | leopard | Cc: | |
Port: | libsdl_image |
Description
Trying to run circuslinux on Leopard (PPC):
$ circuslinux Error: I couldn't load a graphics file: /opt/local/share/circuslinux/data/images/title/programming.png The Simple DirectMedia error that occured was: Unknown bits_per_pixel u
The error is returned from IMG_Load
and can be reproduced with just few lines of C:
#include <SDL_error.h> #include <SDL_image.h> #include <stdio.h> int SDL_main(int argc, char *argv[]) { char **p; for (p = argv+1; *p; p++) { printf("%s -> %p, %s\n", *p, IMG_Load(*p), SDL_GetError()); SDL_ClearError(); } return 0; }
$ cc `pkg-config --cflags SDL_image` `pkg-config --libs SDL_image` imgload.c -o imgload
Some images from circuslinux load ok, some don't:
$ ./imgload /opt/local/share/circuslinux/data/images/title/* /opt/local/share/circuslinux/data/images/title/graphics.png -> 0x0, Unknown bits_per_pixel u /opt/local/share/circuslinux/data/images/title/light-off.png -> 0x250790, /opt/local/share/circuslinux/data/images/title/light-on.png -> 0x250910, /opt/local/share/circuslinux/data/images/title/music.png -> 0x0, Unknown bits_per_pixel u /opt/local/share/circuslinux/data/images/title/programming.png -> 0x0, Unknown bits_per_pixel u /opt/local/share/circuslinux/data/images/title/title-highlights.png -> 0x250800, /opt/local/share/circuslinux/data/images/title/title.png -> 0x251630,
The "Unknown bits_per_pixel" error comes from IMG_ImageIO.m.
As a workaround I disabled ImageIO support in libsdl_image, all files load ok now.
Attachments (1)
Change History (7)
Changed 12 years ago by mklein-de (Michael Klein)
Attachment: | libsdl_image-disable-ImageIO.diff added |
---|
comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)
Cc: | jmr@… removed |
---|---|
Owner: | changed from macports-tickets@… to jmr@… |
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Variant names should not begin with words like "disable".
comment:3 follow-up: 4 Changed 12 years ago by jmroot (Joshua Root)
Is there an upstream bug report?
comment:4 Changed 12 years ago by mklein-de (Michael Klein)
Replying to jmr@…:
Is there an upstream bug report?
comment:6 Changed 9 years ago by jmroot (Joshua Root)
Keywords: | leopard added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Summary: | libsdl_image 1.2.12: fails to load some .png images → libsdl_image 1.2.12: fails to load some .png images on 10.5 |
Note: See
TracTickets for help on using
tickets.
add disable_imageio variant