SDL_gfx's rotozoomer leads to bus (data) exceptions.

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Archaemic
Posts: 38
Joined: Sun Mar 18, 2007 7:23 am

SDL_gfx's rotozoomer leads to bus (data) exceptions.

Post by Archaemic »

Whenever I try to use SDL_gfx's rotozooming functions on the PSP, it crashes. psp-addr2line tells me that it's on line 662, which is this:

Code: Select all

if (fabs(angle) > VALUE_LIMIT) {
VALUE_LIMIT is defined as 0.001. The value of angle in this case SHOULD be 0. I honestly have no clue what's causing this crash. It doesn't appear to be an error in my code. I am using a slightly outdated (by about 2 months) revision of the psptoolchain. Should I reinstall with the newer one?

If I knew how to just get that one disassembled, I'd post what it was and the list of registers, but I don't know how to do that :|

E] The line that appears to crash it is...

Code: Select all

div     zero,v0,s4
What? That doesn't even appear to be valid MIPS ASM...

E2] I tried to run it in psp-gdb with PSPLink, and I think there's a problem with the fabs function. It just doesn't seem to work. Maybe I'm just imagining it? I tried updating the psptoolchain, but the build keeps failing. I seem to get a sighup midway through :(

E3] Maybe not. Maybe there's just a problem with SDL_gfx
Post Reply