Game Development Community

Jpegs 1024x1024 and Bus error

by Thomas Huehn · in Torque Game Engine · 10/02/2008 (7:20 am) · 2 replies

Yesterday i got my first mac (mac mini intel, OS X 10.5.5) :)
Tried compiling stock TGE and all works fine.

After some work getting my modified files into xcode my project did also compile fine and program starts up.
But when loading a mission it crashes allways with Bus error.

In debugger I found out it crashes from readJPEG and only if the jpeg is 1024x1024 (maybe also larger).

Does anyone have experience with that ?

#1
10/02/2008 (7:33 am)
Make sure it is not a progressive JPEG. The version of the JPEG lib that is included with the SDK does not support progressive on the Mac.
#2
10/02/2008 (8:27 am)
Thanks for fast replay david.

With ImageMagick's identify i found out some jpgs have: "Interlace: Plane"

I'll write a shell script to convert all jpg's hope that will fix it :)