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

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

Moderators: cheriff, TyRaNiD

Post Reply
willow :--)
Posts: 107
Joined: Sat Jan 13, 2007 11:50 am

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

Post by willow :--) »

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? ... ble+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
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

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 :)
willow :--)
Posts: 107
Joined: Sat Jan 13, 2007 11:50 am

Post by willow :--) »

Thanks, I'll dig a bit more then.
Post Reply