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 

pspDebugInstallErrorHandler causes 80020001

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



Joined: 18 Jan 2006
Posts: 30

PostPosted: Tue Jun 06, 2006 4:11 am    Post subject: pspDebugInstallErrorHandler causes 80020001 Reply with quote

I'm betting this is really simple but it's driving me mad.

My game works fine, however I'm now trying to add an exception handler to catch an occasional crash that never happens when I want it to. I've done this by adding 'pspDebugInstallErrorHandler(NULL);' at the top of main() and included pspdebug.h.

When I try to run it however, I get the dreaded '80020001' message. Comment out that line, and it runs perfectly.

Appropriate Makefile lines:

Code:
CFLAGS = -G4 -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-rtti
ASFLAGS = $(CFLAGS)

STDLIBS= -lds -losl -lpng -lz \
      -lpspsdk -lpspctrl -lpspumd -lpsprtc -lpspgu -lpspaudiolib -lpspaudio -lm


Help!

(Ta.)
Back to top
View user's profile Send private message
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Tue Jun 06, 2006 5:48 am    Post subject: Reply with quote

Hi,

i have sort of the same problem my game just gets black when i do the function you also use but i have had your problem:

what i did to solve it is in these two lines:
Quote:
PSP_MODULE_INFO("Boxy 2", 0x1000, 1, 1);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER | THREAD_ATTR_VFPU);
Code:
 mess around with these and your problem should be fixed.

if everything works for you please let me know how you did it cuase i can't seem to get it to work :( and i have also an bug which only comes someties when you play for 20 minutes :S

_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
johnsto



Joined: 18 Jan 2006
Posts: 30

PostPosted: Tue Jun 06, 2006 5:56 am    Post subject: Reply with quote

Hmm, using:

Code:
PSP_MODULE_INFO("test", 0x1000, 1, 1);
PSP_MAIN_THREAD_ATTR(0);


Sort of works - it loads up immediately to an exception screen saying "Coprocessor unusable", and a couple of the registers (s6 and s7) are "DEADBEEF"...
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Tue Jun 06, 2006 6:31 am    Post subject: Reply with quote

pspDebugInstallErrorHandler(NULL); would use the default
best for you to handle yourself ..just take a look at exception
sample in samples/debug and use your own like this simply
pspDebugInstallErrorHandler(myErrorHandler());
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Tue Jun 06, 2006 6:36 am    Post subject: Reply with quote

I tried that but it didn't work for me i get a black screen see my post :(
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Tue Jun 06, 2006 9:49 am    Post subject: Reply with quote

Or just use psplink and be done with it ;)
Back to top
View user's profile Send private message
johnsto



Joined: 18 Jan 2006
Posts: 30

PostPosted: Tue Jun 06, 2006 4:33 pm    Post subject: Reply with quote

Installing my own exception handler (from another piece of code) gave the same black screen and shutdown.

I have been using psplink, but unfortunately my program finds it hilarious if it only crashes when I'm not ready for it - especially when I'm not debugging!
Back to top
View user's profile Send private message
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Tue Jun 06, 2006 10:26 pm    Post subject: Reply with quote

yes maybe i should use psplink but is quite a hassel to get it running :(
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
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