I'm using the htmlviewer (from the pspsdk sample dir) and hook some sceIO-functions to intercept file-queries to serve websites to it (the goal is a simple offline wiki-reader). However, I seem to have problems in the kernel module with allocating memory from the user mode memory block (kernel memory isn't enough):
returns a valid address, but after using the memory the htmlviewer hangs while shuting down. Could this be related to an improper memory allocation? How is it done properly? (FYI: htmlviewer uses sceKernelCreateVpl and sceKernelAllocateVpl to allocate memory).
I have no idea, but are you allocating the memory first and then finally loading the htmlviewer? If not maybe it has some problem with fragmentation :S
Try creating a heap at the beginning and allocating from that instead of raw allocation from the partition repeatedly.