| View previous topic :: View next topic |
| Author |
Message |
LosWochos
Joined: 13 Dec 2009 Posts: 12
|
Posted: Thu Jan 28, 2010 10:19 pm Post subject: [SOLVED] OutOfMemoryExceptions on Nokia S40 device |
|
|
Hi there,
I'm having serious trouble using TrekBuddy on my Nokia 6303 classic with a map generated by OziMapTrans.
The map loads fine and I can scroll around, but after I have moved over around 6 to 10 tiles I always get caught in a loop of OutOfMemoryExceptions. Turning on the "forced GC" doesn't help, neither does any of the other options. The same map works perfect on a nokia E51 with s60 operating system.
My map has a tile size of 512x512 with 8bit color depth and sadly I'm not able to choose a smaller tile size with OziMapTrans for my source files, but I tried to reduce the number of tiles in the map down to 220 and it didn't make a change.
Honestly I don't expect the tile size to be the problem with 256k per tile, however I can't see any way to find out What I found out is that the problem occurs both with 2 and with 4 tiles currently on display.
I would really appreciate any help with this issue..
LosWochos
|
|
| Back to top |
|
 |
haddock
Joined: 16 Oct 2007 Posts: 95 Location: AT
|
Posted: Fri Jan 29, 2010 8:17 pm Post subject: |
|
|
Did you try using other map sources which allow creation of smaller tiles?
I have uploaded two small test maps with 256x256 tiles, one tared, one uncompressed. Tile sizes go from 10 to 20 kBytes which is a fraction of your 256 k! Maybe you will give it a try with one of these maps.
| Description: |
|
 Download |
| Filename: |
Test_8bit_256x256_tared.zip |
| Filesize: |
496.89 KB |
| Downloaded: |
17 Time(s) |
| Description: |
|
 Download |
| Filename: |
Test_8bit_256x256_not_tared.zip |
| Filesize: |
530.52 KB |
| Downloaded: |
4 Time(s) |
_________________ Nokia E61 – Blumax GPS-4013 (MTK v2) |
|
| Back to top |
|
 |
helge
Joined: 02 Sep 2008 Posts: 75
|
Posted: Mon Feb 01, 2010 1:40 am Post subject: Re: OutOfMemoryExceptions on Nokia S40 device |
|
|
| LosWochos wrote: |
My map has a tile size of 512x512 with 8bit color depth and sadly I'm not able to choose a smaller tile size with OziMapTrans for my source files, but I tried to reduce the number of tiles in the map down to 220 and it didn't make a change.
|
May I ask why you cannot choose a smaller tile size? Have you tried the "Custom tile sizes" settings? Perhabs it will not cure the OutOfMemoryExceptions, but it should be possible to adjust the tile size in OziMapTrans.
Regards
Helge
|
|
| Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 4051
|
Posted: Mon Feb 01, 2010 8:51 pm Post subject: Re: OutOfMemoryExceptions on Nokia S40 device |
|
|
| LosWochos wrote: |
| Turning on the "forced GC" doesn't help, neither does any of the other options. |
Not even 1-tile scroll option?
|
|
| Back to top |
|
 |
LosWochos
Joined: 13 Dec 2009 Posts: 12
|
|
| Back to top |
|
 |
helge
Joined: 02 Sep 2008 Posts: 75
|
Posted: Tue Feb 02, 2010 11:51 pm Post subject: |
|
|
| LosWochos wrote: |
@helge: I'm using the MagicMaps V2/3/4 importer to convert my MagicMaps 2 maps and it loads and converts them really well, but I can only select tile sizes down to 512 (see attached screenshots) - bug or feature?
|
Feature. See "Settings" ("Einstellungen").
Regards
Helge
|
|
| Back to top |
|
 |
LosWochos
Joined: 13 Dec 2009 Posts: 12
|
Posted: Wed Feb 03, 2010 10:24 pm Post subject: |
|
|
Ah thank you Helge, I really didn't relate this setting to the conversion-dialog - it's not that intuitive, maybe a combobox with free input option for the tile size would be a nice addon?
Right now my 5-year old Notebook seems to take another 5 hours until the conversion of the Bavaria map is done and I'm gonna give feedback about the success later.
Regards,
Stefan
|
|
| Back to top |
|
 |
LosWochos
Joined: 13 Dec 2009 Posts: 12
|
Posted: Mon Feb 08, 2010 10:22 pm Post subject: |
|
|
Good news and another thank you for your help guys. With the smaller tile sizes it now works like a clockwork!
Regards, Stefan
|
|
| Back to top |
|
 |
piaseq
Joined: 01 Mar 2010 Posts: 7 Location: Poland
|
Posted: Wed Mar 03, 2010 7:52 am Post subject: |
|
|
| LosWochos wrote: |
Good news and another thank you for your help guys. With the smaller tile sizes it now works like a clockwork!
Regards, Stefan |
Hello, your post is quite interesting for me as I am going to get Nokia 6303 classic for use with trekbuddy. So what size exactly did you manage to install properly? From ealier posts I understand that u settled for 256x256 tiles, is that right?
Apart from Mobile Atlas Creator is there any other software you could recommend?
|
|
| Back to top |
|
 |
LosWochos
Joined: 13 Dec 2009 Posts: 12
|
Posted: Wed Mar 03, 2010 9:13 pm Post subject: |
|
|
Hi,
I settled to a tile size of 240x320=display resolution since that ensures a maximum of 4 tiles displayed at any time, which means faster loading when you scroll the map.
For my specific use case I used OziMapTrans since it was the only program that could read my map source.
Only thing I'm not happy with right now is the loading time for my huuuuge atlas...
HTH, Stefan
|
|
| Back to top |
|
 |
piaseq
Joined: 01 Mar 2010 Posts: 7 Location: Poland
|
Posted: Thu Mar 04, 2010 12:45 pm Post subject: |
|
|
| LosWochos wrote: |
Hi,
I settled to a tile size of 240x320=display resolution since that ensures a maximum of 4 tiles displayed at any time, which means faster loading when you scroll the map.
|
Thanks for the reply. I still hadn't resolved the issue... I get invalidMapException every time a cursor hits a point where 4 tiles meet... Then I am unable to start TB again unless config files are deleted. But this requires connecting to PC as there is no access via phone's SW.
|
|
| Back to top |
|
 |
guest
Joined: 08 Oct 2006 Posts: 2815
|
Posted: Wed Mar 17, 2010 2:50 pm Post subject: |
|
|
Have same phone and used to have same errors.
"1 tile" option helps, but is uncomfortable to use.
Then I've started using maps tiles in 16 colors PNG format. And all problems were solved. You don't need to use "1 tile" anymore.
|
|
| Back to top |
|
 |
guest
Joined: 08 Oct 2006 Posts: 2815
|
Posted: Wed Mar 17, 2010 2:52 pm Post subject: |
|
|
NOTE: not 16 bits colors, but 16 colors PNG images
(Quantize option in GraphicsMagick/ImageMagic)
|
|
| Back to top |
|
 |
piaseq
Joined: 01 Mar 2010 Posts: 7 Location: Poland
|
Posted: Fri Mar 19, 2010 8:42 am Post subject: |
|
|
| guest wrote: |
Have same phone and used to have same errors.
"1 tile" option helps, but is uncomfortable to use.
Then I've started using maps tiles in 16 colors PNG format. And all problems were solved. You don't need to use "1 tile" anymore. |
8 bit tiles 240x320 size work just fine. No need to go down to 16 colours. 1 tile is not necessary either. Confirmed working on my phone. Some minor issues still occur but TB is usable.
|
|
| Back to top |
|
 |
|