Hi there.

I found a bug in osgdb_qt.so for the latest FlightGear/cvs. The
problem is that fgfs crashes when loading Textures/Sky/broken.rgba for
the aircraft that have a non-rgb (say png) splash image.

I made a patch to solve this problem, and I already sent to an OSG
developer. I hope it will be applied to svn soon.

Until the next binary package is delivered, I recommend mac users who
use FlightGear-cvs-bin-20080918 update the plugin called osgdb_qt.so.
The plugin is available from:
http://macflightgear.sourceforge.net/wp-content/uploads/plugins/osgdb_qt.so

To update the plugin, follow the instructions below:
1) Open /Applications folder on Finder
2) Control-click (or right click) the FlightGear icon and select "Show
Package Contents"
3) Browse Contents/Resources/plugins folder
4) Copy (overwrite) the downloaded osgdb_qt.so to the plugin folder

I'll explain the problem for developers and curious users.

The problem is that QuickTime cannot handle gray-scaled rgb files
properly (QuickTime complains BadData error even it is not bad at
all). On Mac OS X, both osgdb_qt and osgdb_rgb plugins can handle rgb
files. osgdb_rgb handles only rgb(sgi) image files but osgdb_qt
handles many image files like rgb, png and jpg through QuickTime
functions.

In case that osgdb_qt is already loaded for handling some image files
it also handles rgb files instead of osgdb_rgb, otherwise osgdb_rgb is
loaded to handle these. So this problem occurs only when an rgba file
is being loaded after a png (or some other type of image) file is
loaded by osgdb_qt.so. Thus, on Mac OS X, the latest FlightGear/OSG
crashes while loading aircraft that have png files for splash image or
textures.

The best way, I believe, is to delete the code that let QuickTime
handle rgb files since these files can be handled (and more properly)
by osgdb_rgb.

Thanks goes to Scaba. The assumption he told me in IRC was right, and
it helped me find this bug much quicker.

Best,

Tat

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to