well since i use pascal i’m having hard times to debug and follow inside
uiimage…
anyways i’m posting here the full error, maybe something will be highlighted
with IMG_LoadPNG the error is
unable to read unknown load command 0x80000022
Previous frame inner to this frame (gdb could not unwind past this frame)
Previous frame inner to this frame (gdb could not unwind past this frame)
(gdb) where
#0 0x00064624 in fpc_raiseexception ()
#1 0x00071b70 in SYSUTILS_RUNERRORTOEXCEPT$LONGINT$POINTER$POINTER ()
#2 0x00066170 in SYSTEM_HANDLEERRORADDRFRAME$LONGINT$POINTER$POINTER ()
(gdb) c
Continuing.
An unhandled exception occurred at $00022D54 :
EDivByZero : Division by zero
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000008
0x0006c838 in SYSTEM_FILESIZE$file$$INT64 ()
Program received signal: ?EXC_BAD_ACCESS?.
with IMG_LoadPNG_RW and the previous patch the executable fails after
loading 5 images, and this is the error
#0 0x001f444e in LoadImageFromRWops (rw_ops=0x0,
uti_string_hint=0x385649b8) at
/Users/vittorio/hedge.build/iphone-hwengine/SDL-1.3/SDL_image/Xcode_iPhone/…/IMG_UIImage.m:127
#1 0x001f45a2 in IMG_LoadPNG_RW (src=0x0) at
/Users/vittorio/hedge.build/iphone-hwengine/SDL-1.3/SDL_image/Xcode_iPhone/…/IMG_UIImage.m:427
#2 0x00008648 in LOADIMAGE (LOADIMAGE=0x0, FILENAME=@0x2fffe034,
IMAGEFLAGS=0) at
…/…/…/…/…/…/…/Users/vittorio/hedge.build/iphone-hwengine/hwengine3/uStore.pas:988
thanks for any possible further help
VittorioOn Fri, Nov 20, 2009 at 11:00 PM, E. Wing wrote:
On 11/20/09, Vittorio G. <vitto.giova at yahoo.it> wrote:
well i’m just using IMG_LoadPNG() and linking against SDL_Image-UIImage
1.2.10
i must have skipped a couple of mails, what patch are you talking about?
[SDL] [SDL_Image]LoadImageFromRWops can’t work on Iphone
But this sounds like a different issue since you are not using RWops.
do you suggest to load images with rwops?
No. Sounds like a different bug.
I don’t have any good ideas at the moment. I recommend you step
through SDL_image with the debugger with your app and see what is
going on.
The new code to un-premultiply alpha does have some division which
might be where the crash is happening.
-Eric
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
Mike Ditka http://www.brainyquote.com/quotes/authors/m/mike_ditka.html -
“If God had wanted man to play soccer, he wouldn’t have given us arms.”