Issue with sdl_image on Mac Snow Leopard

Hey,

I’ve tried the released SDL_image 1.2.7 and the pre release 1.2.8, and
both compile fine, the game using it runs ok, but the display is
really weird.

http://screencast.com/t/WD8SLtkF1x

Using sdl_image on Leopard worked fine, but using sdl_image on Snow
Leopard doesn’t…

Any ideas?

The game is question (incase some of you devs are mac users) is
Globulation 2 (http://globulation2.org). It uses sdl, sdl_image,
sdl_ttf, and sdl_net, among other libraries.

Regards
Kieran

SDL_image 1.2.8 changes the loading backend to use native Mac APIs. So
there could very well be a new bug.

Can you provide more information? The final release date is coming up
fast, so we need to hurry up and fix this.

When you say it works on Leopard, what works, 1.2.8? If the same 1.2.8
framework works differently on Snow Leopard vs Leopard, this is a
different bug than if there is a difference between 1.2.7 and 1.2.8.

Can you describe what the problem is specifically? I don’t know what
your image is supposed to look like.

Is there a simple reproducible test image file that reproduces this
problem in the showimage test program that comes with the SDL_image
source? Producing this would go a long way in helping diagnose the
problem.

Thanks,
EricOn 10/12/09, Kieran P wrote:

Hey,

I’ve tried the released SDL_image 1.2.7 and the pre release 1.2.8, and
both compile fine, the game using it runs ok, but the display is
really weird.

http://screencast.com/t/WD8SLtkF1x

Using sdl_image on Leopard worked fine, but using sdl_image on Snow
Leopard doesn’t…

Any ideas?

Can you provide more information? The final release date is coming up
fast, so we need to hurry up and fix this.

I don’t understand why this has to happen on so quick a schedule. If this
is truly the last release of 1.2, it should be as stable as possible–so,
“hurry up and fix this” doesn’t sound right to me.

Many of us use SDL in our free time projects, and aren’t able to drop
everything and try to get a build out to users to test in a few days’ time
frame. I will try my best to do this, but considering how much of 1.2 has
been re-written, would it hurt 1.3 development that much to push this out
a couple weeks to wait for bug reports?

GregoryOn Tue, 13 Oct 2009, E. Wing wrote:

I don’t understand why this has to happen on so quick a schedule. If this
is truly the last release of 1.2, it should be as stable as possible–so, “hurry
up and fix this” doesn’t sound right to me.

Many of us use SDL in our free time projects, and aren’t able to drop
everything and try to get a build out to users to test in a few days’ time frame.
I will try my best to do this, but considering how much of 1.2 has been
re-written, would it hurt 1.3 development that much to push this out a couple
weeks to wait for bug reports?

Agreed. What’s the rush, guys? Haste makes waste. That’s been proverbial
since before the invention of the computer, and as coders we ought to know
it’s doubly true for us!>----- Original Message ----

From: Gregory Smith
Subject: Re: [SDL] Issue with sdl_image on Mac Snow Leopard

I don’t understand why this has to happen on so quick a schedule. If this
is truly the last release of 1.2, it should be as stable as possible–so,
“hurry up and fix this” doesn’t sound right to me.

Many of us use SDL in our free time projects, and aren’t able to drop
everything and try to get a build out to users to test in a few days’ time
frame. I will try my best to do this, but considering how much of 1.2 has
been re-written, would it hurt 1.3 development that much to push this out
a couple weeks to wait for bug reports?

Agreed. What’s the rush, guys? Haste makes waste. That’s been proverbial
since before the invention of the computer, and as coders we ought to know
it’s doubly true for us!

+1

However, maybe the point here is to actually get people to at least start
testing ASAP, and in a somewhat coordinated fashion?On Tuesday 13 October 2009, at 16:13:54, Mason Wheeler wrote:

----- Original Message ----
From: Gregory Smith
Subject: Re: [SDL] Issue with sdl_image on Mac Snow Leopard


//David Olofson - Developer, Artist, Open Source Advocate

.— Games, examples, libraries, scripting, sound, music, graphics —.
| http://olofson.net http://kobodeluxe.com http://audiality.org |
| http://eel.olofson.net http://zeespace.net http://reologica.se |
’---------------------------------------------------------------------’

The mac ports build of 1.2.14 and their sdl image seems to work fine
for me. Have tried those. I use libsdl +nox11 since it seems to try to
use X11 and its opengl otherwise.On Mon, Oct 12, 2009 at 7:55 PM, Kieran P wrote:

Hey,

I’ve tried the released SDL_image 1.2.7 and the pre release 1.2.8, and
both compile fine, the game using it runs ok, but the display is
really weird.

http://screencast.com/t/WD8SLtkF1x

Using sdl_image on Leopard worked fine, but using sdl_image on Snow
Leopard doesn’t…

Any ideas?

The game is question (incase some of you devs are mac users) is
Globulation 2 (http://globulation2.org). It uses sdl, sdl_image,
sdl_ttf, and sdl_net, among other libraries.

Regards
Kieran


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Are you sure this is an issue with SDL_image and not SDL 1.2 SVN?

I’m using MacPorts on Mac OS X 10.6.1 and have noticed color distortions in both Pentagram and DOSBox. Both don’t use SDL_image.
Unfortunately MacPorts is providing a SVN snapshot from a couple of days ago and current SVN doesn’t build again on OS X, so I can’t test with the bleeding edge.

The bug report for Pentagram is at https://sourceforge.net/tracker/?func=detail&aid=2862732&group_id=53819&atid=471706 (the background should be more gray/blueish)
The bug report for DOSBox http://vogons.zetafleet.com/viewtopic.php?t=23087
It seems that in both cases there is a problem with the color blue.

Are you sure this is an issue with SDL_image and not SDL 1.2 SVN?

No, I’m not sure. I’m actually not a developer, I know very little
c++, but I do know how to compile and make packages of the game for
releases. So it could very well be in SDL instead of SDL_image.

I’m using MacPorts on Mac OS X 10.6.1 and have noticed color distortions in
both Pentagram and DOSBox. Both don’t use SDL_image.

Those resemble the issue I’m getting. Would be very bad to have SDL
released with such a massive issue for Mac users :frowning:

Unfortunately MacPorts is providing a SVN snapshot from a couple of days ago
and current SVN doesn’t build again on OS X, so I can’t test with the
bleeding edge.

When you do, if it works, please let me know here.

Regards
Kieran

Hey,

SDL_image 1.2.8 changes the loading backend to use native Mac APIs. So
there could very well be a new bug.

As Dominus stated, other project have similar issue and do not use
SDL_image, so the bug itself may be in SDL.

Can you provide more information? The final release date is coming up
fast, so we need to hurry up and fix this.

Whats the rush? Releasing with a bug like this could be very damaging
for games on the mac.

When you say it works on Leopard, what works, 1.2.8? If the same 1.2.8
framework works differently on Snow Leopard vs Leopard, this is a
different bug than if there is a difference between 1.2.7 and 1.2.8.

Leopard + SDL 1.2.13 + SDL_image 1.2.7 = works
Snow Leopard + SDL 1.2.13 (with patch) + SDL_image 1.2.7 = doesn’t work
Snow Leopard + SDL 1.2.13 (with patch) + SDL_image 1.2.8 = doesn’t work
Snow Leopard + SDL 1.2.14 pre-release + SDL_image 1.2.7 = doesn’t work
Snow Leopard + SDL 1.2.14 pre-release + SDL_image 1.2.8 = doesn’t work

Can you describe what the problem is specifically? I don’t know what
your image is supposed to look like.

Good: http://globulation2.org/wiki/Image:Beta2_AttackingEnemy.jpg
Good: http://globulation2.org/wiki/Image:Beta2_BuildingCamp.jpg
Bad: http://screencast.com/t/WD8SLtkF1x

In the bad version. the menu on the right and the top stats bar which
are normal transparent black shade are blue background. The black
undiscovered areas, which are normally solid black, are now solid
blue. The blackish fog out when an area is out of view of
buildings/units is now a transparent blue instead of black. Also
notice that all units and buildings, where normally pink, are orange.
The bar above the main building (Swarm) should have white dots, the
bar to its left should have yellow dots, the bar below it should have
green dots. All three bars are blue. The small pink areas over the
resources called wheat are actually meant to be red.

There are quite a few other issues throughout the game menus and other screens.

Is there a simple reproducible test image file that reproduces this
problem in the showimage test program that comes with the SDL_image
source? Producing this would go a long way in helping diagnose the
problem.

Unfortunately not. I’m not a developer, only know enough c++ to read
whats happening, not write it.

I emailed one of the devs of the game, who said that, given the built
in graphics lib we use (called libgag -
http://hg.globulation2.org/glob2-new/file/default/libgag ) it won’t be
trivial to find the exact code causing the issue.

From the sounds of it though, there are other apps with similar issues.

Regards
Kieran

Leopard + SDL 1.2.13 + SDL_image 1.2.7 = works
Snow Leopard + SDL 1.2.13 (with patch) + SDL_image 1.2.7 = doesn’t work
Snow Leopard + SDL 1.2.13 (with patch) + SDL_image 1.2.8 = doesn’t work
Snow Leopard + SDL 1.2.14 pre-release + SDL_image 1.2.7 = doesn’t work
Snow Leopard + SDL 1.2.14 pre-release + SDL_image 1.2.8 = doesn’t work

So what is this “patch” you refer to?

But perhaps more simply, can you try using SDL_image 1.2.8 with SDL
1.2.13 (no patches) on Leopard?
If this works, then it will rule out SDL_image as the culprit.

-Eric

Leopard + SDL 1.2.13 + SDL_image 1.2.7 ?= ?works
Snow Leopard + SDL 1.2.13 (with patch) + SDL_image 1.2.7 ?= ?doesn’t work
Snow Leopard + SDL 1.2.13 (with patch) + SDL_image 1.2.8 ?= ?doesn’t work
Snow Leopard + SDL 1.2.14 pre-release + SDL_image 1.2.7 ?= doesn’t work
Snow Leopard + SDL 1.2.14 pre-release + SDL_image 1.2.8 ?= doesn’t work

So what is this “patch” you refer to?

One to get SDL 1.2.13 working on Snow Leopard. It’s not a permanent one.

I’ve created a ticket with more details at
http://bugzilla.libsdl.org/show_bug.cgi?id=850

But perhaps more simply, can you try using SDL_image 1.2.8 with SDL
1.2.13 (no patches) on Leopard?

I only have Snow Leopard installs now. :frowning:

Regards
KieranOn Thu, Oct 15, 2009 at 8:19 AM, E. Wing wrote: