icon TrekBuddy
www.trekbuddy.net
J2ME application for offline GPS navigation and tracking.
  • bluetooth / serial / internal GPS, simulator
  • offline maps (common grids and projections)
  • smart GPX / raw NMEA logs
  • waypoints and navigation
  • location sharing
  •    ... and more
  • MIDP and Symbian phones
  • Blackberry
  • Windows Mobile devices
  • Palm (Garnet OS)
  • Android
Visit our wiki to see all features, guides and howtos.

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) Bosfor      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
[SOLVED] OutOfMemoryExceptions on Nokia S40 device

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
LosWochos



Joined: 13 Dec 2009
Posts: 12

PostPosted: Thu Jan 28, 2010 10:19 pm    Post subject: [SOLVED] OutOfMemoryExceptions on Nokia S40 device Reply with quote

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 Sad 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
View user's profile Send private message
haddock



Joined: 16 Oct 2007
Posts: 95
Location: AT

PostPosted: Fri Jan 29, 2010 8:17 pm    Post subject: Reply with quote

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.



Test_8bit_256x256_tared.zip
 Description:

Download
 Filename:  Test_8bit_256x256_tared.zip
 Filesize:  496.89 KB
 Downloaded:  17 Time(s)


Test_8bit_256x256_not_tared.zip
 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
View user's profile Send private message
helge



Joined: 02 Sep 2008
Posts: 75

PostPosted: Mon Feb 01, 2010 1:40 am    Post subject: Re: OutOfMemoryExceptions on Nokia S40 device Reply with quote

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
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 4051

PostPosted: Mon Feb 01, 2010 8:51 pm    Post subject: Re: OutOfMemoryExceptions on Nokia S40 device Reply with quote

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
View user's profile Send private message Send e-mail
LosWochos



Joined: 13 Dec 2009
Posts: 12

PostPosted: Tue Feb 02, 2010 10:26 pm    Post subject: Reply with quote

Thanks for all the replies and especially to haddock for the test maps (btw my tiles are up to 150K, the 256K was just the theoretical upper boundary w/o compression).

I scrolled around both of the maps for several minutes and they work fine even without 1-tile-scroll so i guess the tile size is the issue..

@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? Wink

Greets,
LosWochos



ozimaptrans.png
 Description:
OziMapTrans Screenshot
 Filesize:  118.89 KB
 Viewed:  1751 Time(s)

ozimaptrans.png


Back to top
View user's profile Send private message
helge



Joined: 02 Sep 2008
Posts: 75

PostPosted: Tue Feb 02, 2010 11:51 pm    Post subject: Reply with quote

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? Wink


Feature. See "Settings" ("Einstellungen").

Regards
Helge
Back to top
View user's profile Send private message
LosWochos



Joined: 13 Dec 2009
Posts: 12

PostPosted: Wed Feb 03, 2010 10:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
LosWochos



Joined: 13 Dec 2009
Posts: 12

PostPosted: Mon Feb 08, 2010 10:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
piaseq



Joined: 01 Mar 2010
Posts: 7
Location: Poland

PostPosted: Wed Mar 03, 2010 7:52 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
LosWochos



Joined: 13 Dec 2009
Posts: 12

PostPosted: Wed Mar 03, 2010 9:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
piaseq



Joined: 01 Mar 2010
Posts: 7
Location: Poland

PostPosted: Thu Mar 04, 2010 12:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 2815

PostPosted: Wed Mar 17, 2010 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 2815

PostPosted: Wed Mar 17, 2010 2:52 pm    Post subject: Reply with quote

NOTE: not 16 bits colors, but 16 colors PNG images

(Quantize option in GraphicsMagick/ImageMagic)
Back to top
View user's profile Send private message Visit poster's website
piaseq



Joined: 01 Mar 2010
Posts: 7
Location: Poland

PostPosted: Fri Mar 19, 2010 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group