forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Archaemic



Joined: 18 Mar 2007
Posts: 38

PostPosted: Sat Jun 02, 2007 6:43 am    Post subject: SDL_gfx's rotozoomer leads to bus (data) exceptions. Reply with quote

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...
Code:
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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group