Archaemic
Joined: 18 Mar 2007 Posts: 38
|
Posted: Sat Jun 02, 2007 6:43 am Post subject: SDL_gfx's rotozoomer leads to bus (data) exceptions. |
|
|
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: | | 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...
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 |
|