PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

IPaq Lockups

I am getting quite a few lockups with the Update.

there doesn't appear to be any particular pattern, but occasionally the screen completely locks up and I have to perform a soft reset

On other occasions the game play is looping. I am able to exit the game and then restart when this happens
:?:
I've heard this from a few peeps, and most of them were able to solve it by freeing up 1 or 2 more megs of program memory, soft resetting, and that usually solved it.
I have heard that the newest 3800 series ipaq's have problems allocating a large chunk of ram because it gets fragmented for whatever reason. I think I heard that from the author of PocketDivX.
Courtney White · 15 Feb 2002, 03:32 UTC
well, If Marc told you that, its probably true
I'll give it a go and see what happens,
I have noticed that memory hungry progs work better if I do a soft reset before using them, has anyone developed a defrag prog for PPC's yet??
Peter Balogh · 15 Feb 2002, 11:14 UTC
Unfortunately the CE has a terrible memory handling and you can't defrag the memory once it's fragmented. The only way to do it is soft-reseting the device on a regular basis :?
The problems with Snails are caused by the fact that it tries to allocate 3 big (1 megabyte each) blocks for the level foreground, background and graphics cache (for smooth scrolling). If only Snails would run it wouldn't be such a big problem. But image the situation when (at the end of a game) a 1 megabyte buffer is freed up and some other application running on your device allocates 10 bytes and it happens to allocate from the beginning of this 1 megabyte free block. Next time I try to allocate the 1 megabyte buffer, I'll either get a new block (if you have 1 more megabyte of memory), which is fine or I'll fail, because you don't have any more.
For most of the defragmentation problems I have implemented a small-block-heap which will radically speed up memory allocations and reduce the fragmentation to a minimum. But with large blocks there's not much you can do :-(
I received this from one of Compaq's software engineers a few days ago:

The crashing on the device could also be related to the virtual memory issue with PPC 2002. There is only 6 Meg of virtual addressing space after the OS loads with PPC 2002. I'm not sure how large your
application is, but if other application are loaded and you are running out of VM then you probably would crash. Make sure your APP is checking for available VM if possible.

Dan East
Peter Balogh · 15 Feb 2002, 14:45 UTC
Thanks Dan,
It explains a lot! So, the best I can do is to reduce memory requirement and try to prevent memory fragmentation even more.
Anyway, if some developer is interested in my small-block-heap implementation (20-300 times faster than malloc and avoids memory fragmentation for small blocks), feel free to contact me.
Is it a PocketPC 2002 or an iPAQ 3800 problem with the virtual memory? On my HP568 I have never encountered any lockups like I have on my 3835 (29 megs program RAM free by the way). This thing runs flawlessly and faster on my HP568 but totally buggy and slower on my iPAQ. I still think the problem lies within the 3800 series and not the new OS.