PalmOS resets when loading certain files

Found a bug? Post it here.
Post Reply
organic io
Posts: 439
Joined: Fri Jun 24, 2011 12:31 am
Location: USA - North Carolina
Contact:

PalmOS resets when loading certain files

Post by organic io » Sat Sep 29, 2012 6:45 pm

Hey Nightradio. I recently got a Palm Treo 650 for only $8.. It's a really cool device and runs Sunvox really well... except when trying to load many of my previous song projects.

I have put 4 previous songs/projects on the memory card to test. However, 3 of them crash it and only 1 loads.

But I can't seem to find any consistency in why they crash/load, or even how they crash.

Here are the file sizes and what happens:
file 1 - 2.3MB - crashes/resets w/ mem alloc error
file 2 - 939KB - crashes/resets w/ mem alloc error
file 3 - 1.3MB - resets, but does not show an error, screen just tursn black and resets
file 4 - 1.1MB - loads & works fine

??? I would have thought it was mostly a memory issue, except the 1.1MB file is larger than the 939K one which gives the mem alloc error.
Plus, shouldn't it just give a message saying "I can't load that file" instead of trying to and crashing the machine?

I can provide sunvox files if necessary, and just let me know if you have any questions.

Thanks

User avatar
NightRadio
Site Admin
Posts: 3352
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: PalmOS resets when loading certain files

Post by NightRadio » Sat Sep 29, 2012 11:32 pm

The problem is not only in the size of file. Your song may contain many different modules. But every module needs some memory for its internal buffers.
Treo 650 has 5 mb of dynamic memory heap. And it is not always enough.
Of course you want to see the error message only. Crashing is bad. This is the bug.

User avatar
NightRadio
Site Admin
Posts: 3352
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: PalmOS resets when loading certain files

Post by NightRadio » Sat Sep 29, 2012 11:33 pm

Also here’s a listing of some Palm devices and the amount of dynamic heap memory they have:
Zire 71 - 1MB
Zire 72 - 2MB
Tungsten T - 800kb
Tungsten E - 2MB
Tungsten T3 - 4MB
Tungsten C - 4MB
Tungsten W - 1MB
Treo 600 - 4MB
Treo 650 - 5MB
Zire 31 - 1MB
Tungsten E2 - 2MB
Zire 21 - 512k
LifeDrive - 6MB
TX - 6MB

Post Reply