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 

PSPLink error - invalid magic (when available Ram is low?)

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



Joined: 13 Jan 2007
Posts: 126

PostPosted: Sun Apr 26, 2009 1:35 pm    Post subject: PSPLink error - invalid magic (when available Ram is low?) Reply with quote

I'm chasing a RAM issue, and I am currently looking for memory leaks in my code, using some functions provided by johnmph at http://forums.ps2dev.org/viewtopic.php?t=4784&highlight=available+memory

Although I am far from finding the root cause of my crashes, I've encountered several times an issue with PSPLink freezing with the following error: "Error, invalid magic ..." which makes debugging difficult.

It seems to happen when available memory is quite low (less than 2MB), but I haven't made enough tests to understand exactly when this happens.

Is this a known error in PSPLink? I've been using PSPLink for more than a year now and just ran into this issue recently, so I'm pretty sure there is no specific problem with my configuration.

I guess the "magic number" is a kind of verification to check that the messages sent between the PSP and usbhostfs are correct, but why would it fail out of the blue after using it with no problem for a few minutes ?

Thanks
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sun Apr 26, 2009 7:11 pm    Post subject: Reply with quote

It shoudn't cause a problem, but it depends if you are using all kernel memory up as well cause at that point the usb driver can go screwy, and there is not a massive amount of free ram on a modern psp firmware.

That said I have never seen it do so :)
Back to top
View user's profile Send private message
willow :--)



Joined: 13 Jan 2007
Posts: 126

PostPosted: Mon Apr 27, 2009 12:44 pm    Post subject: Reply with quote

Thanks, I'll dig a bit more then.
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