View previous topic :: View next topic |
Author |
Message |
filipo
Joined: 23 Aug 2007 Posts: 40
|
Posted: Thu Jan 17, 2008 12:41 am Post subject: |
|
|
MaleSMurf wrote: |
I deleted 2 files called var and config.
Now TrekBuddy starts with the world map.
The info sys now:
Memory: 2097152/1133372
I then loaded the map and now the info says
Memory: 2097152/370392
After some scrolling the error occured again
Menory: 2097152/370004 |
My Nokia 6234 phone says:
On fresh start (with the World Map): 2097152/475820
After the map is loaded: 2097152/468204
After some scrolling: it varies a lot, I can often see numbers like 57000, but sometimes it returns to higher numbers like 257000 or even around 450000, but finally it crashes
I can sent the entire tared atlas to your private email if you like. Just load the atlas at Plzen, go east to Svitavy and south to Brno. I never get to Brno.
Once I get the exception, it is impossible to do anything with trekbuddy except exiting. That's why I can't report how much memory remains at the moment of the crash  |
|
Back to top |
|
 |
simonzhan
Joined: 11 Feb 2007 Posts: 36
|
Posted: Thu Jan 17, 2008 3:48 pm Post subject: TB0.9.71 work well on moto e6, but can't draw route line. |
|
|
TB0.9.72 work well on moto e6, but can't draw route line.
Thanks Kruch!!! _________________ From Fujian China whith MOTO E6
Last edited by simonzhan on Fri Jan 18, 2008 2:18 pm; edited 1 time in total |
|
Back to top |
|
 |
Jakob
Joined: 18 Apr 2007 Posts: 109 Location: Germany / Munich
|
Posted: Thu Jan 17, 2008 7:32 pm Post subject: |
|
|
Question (SXG75 related):
'Load Map' allows to browse nearly the entire SXG75 filesystem,
and to find a tarred map.
Button 1 / Navigation / Waypoints immediately ends in
the 'wpts' directory of the TrekBuddy file structure, without a
way of escaping to the parent directory.
Could this be implemented in the same way as for 'Load Maps'?
That way it was possible to load recorded tracks as waypoints,
without the need for an 'external' computer.
Thanks for any help regarding this (still unsolved?) problem ... Jakob. _________________ SXG75 / HTC G1 |
|
Back to top |
|
 |
filipo
Joined: 23 Aug 2007 Posts: 40
|
Posted: Thu Jan 17, 2008 9:37 pm Post subject: |
|
|
Kruch,
as I look at my recent post
filipo wrote: |
On fresh start (with the World Map): 2097152/475820 |
I just wonder what consumes the initial memory.
Do you have any idea why I get less than 0.5M free memory of total 2M?
Do you think firmware upgrade would be worth trying?
Thanks for any hint. |
|
Back to top |
|
 |
green
Joined: 02 Nov 2006 Posts: 44
|
Posted: Thu Jan 17, 2008 9:54 pm Post subject: vnitrni modul |
|
|
planuje se udelat i podpora vnitrniho modulu u artemise? je to dost dobra aplikace a je skoda ze to jde jenom na BT u art. jinak super jen tak dal skoda ale ye to nemuyu vyzkouset  |
|
Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5662
|
Posted: Thu Jan 17, 2008 11:32 pm Post subject: |
|
|
filipo wrote: |
My Nokia 6234 phone says:
On fresh start (with the World Map): 2097152/475820 |
1.6 MB gone... no idea... I'm googling...  |
|
Back to top |
|
 |
filipo
Joined: 23 Aug 2007 Posts: 40
|
Posted: Fri Jan 18, 2008 12:13 am Post subject: |
|
|
kruch wrote: |
filipo wrote: |
My Nokia 6234 phone says:
On fresh start (with the World Map): 2097152/475820 |
1.6 MB gone... no idea... I'm googling...  |
I have created my own brand new and tiny J2ME application. Running on the same phone, it displays 2097152/1981496 (using Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().freeMemory()).
It means that the memory is really available once the java starts. Where is it gone with trekbuddy? Does trekbuddy startup take so much, without any maps?
I also ran the latest trekbuddy on my wife's phone (Nokia 6131). It was a bit better - after fresh startup there was something around 1M of 2M available, but still - where is the 1M gone?
I wonder if we are able to crack this nut. It would make me very hapy. |
|
Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5662
|
Posted: Fri Jan 18, 2008 9:09 am Post subject: |
|
|
Sure... I hope!
By the way, TB memory consumption on 6234 vs 6131... WTF?!? Both phones are S40 3rd FP1, QVGA, 24bpp displays...
...
Could you take all PNGs from TrekBuddy (/res/*.png), include them in the jar as resources and then in your midlet try
variant 1:
Code: |
img1 = Image.createImage("crosshairs.png");
img2 ... |
variant 2:
Code: |
img1 = createImage("crosshairs.png");
img2 = ...
Image createImage(String res) throws IOException {
InputStream in = null;
Image image = null;
try {
image = Image.createImage(in = MyTinyMIDlet.class.getResourceAsStream(res));
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {
// ignore
}
}
}
return image;
} |
Keep references to images so that they are not gc-ed and call System.gc() before showing free memory, just for sure... |
|
Back to top |
|
 |
yearling
Joined: 18 Apr 2007 Posts: 285
|
Posted: Fri Jan 18, 2008 10:15 am Post subject: |
|
|
filipo wrote: |
kruch wrote: |
filipo wrote: |
My Nokia 6234 phone says:
On fresh start (with the World Map): 2097152/475820 |
1.6 MB gone... no idea... I'm googling...  |
|
On N6233 (it's the same as N6234) fw 5.60
On fresh start (with the World Map): 2097152/834612
During using a big atlas (Atlas CR - 3 layers) 2097152/76536 |
|
Back to top |
|
 |
filipo
Joined: 23 Aug 2007 Posts: 40
|
Posted: Fri Jan 18, 2008 10:54 am Post subject: |
|
|
kruch wrote: |
Sure... I hope!
By the way, TB memory consumption on 6234 vs 6131... WTF?!? Both phones are S40 3rd FP1, QVGA, 24bpp displays...
...
Could you take all PNGs from TrekBuddy (/res/*.png), include them in the jar as resources and then in your midlet try
variant 1:
Code: |
img1 = Image.createImage("crosshairs.png");
img2 ... |
variant 2:
Code: |
img1 = createImage("crosshairs.png");
img2 = ...
Image createImage(String res) throws IOException {
InputStream in = null;
Image image = null;
try {
image = Image.createImage(in = MyTinyMIDlet.class.getResourceAsStream(res));
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {
// ignore
}
}
}
return image;
} |
Keep references to images so that they are not gc-ed and call System.gc() before showing free memory, just for sure... |
I am eager to help with this issue... I will try what you suggest as soon as I have some time (probably tonight) and I will report the results here. |
|
Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5662
|
Posted: Fri Jan 18, 2008 11:41 am Post subject: |
|
|
kruch wrote: |
Could you take all PNGs from TrekBuddy (/resources/*.png), include them in the jar as resources and then in your midlet try |
Please also include /resources/set/world_0_0.png, it is the biggest one... |
|
Back to top |
|
 |
MaleSMurf
Joined: 10 Sep 2007 Posts: 120
|
Posted: Fri Jan 18, 2008 3:12 pm Post subject: |
|
|
Hope you can solve the memory problem.
Right now I can't use TrekBuddy anymore  |
|
Back to top |
|
 |
Jakob
Joined: 18 Apr 2007 Posts: 109 Location: Germany / Munich
|
Posted: Fri Jan 18, 2008 3:33 pm Post subject: |
|
|
kruch wrote: |
Thses settings should be kept. Just tried (6230i), seems to work for me... ?
|
No doesn't work anymore on the SXG75.
Quote: |
Could you share some googleak output with me to test "Not a digit bug" error? |
Done, via e-mail. _________________ SXG75 / HTC G1 |
|
Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5662
|
Posted: Fri Jan 18, 2008 3:52 pm Post subject: |
|
|
[quote="Jakob"]No doesn't work anymore on the SXG75.[quote]
Did you install newer TB over the old? You could try to uninstall it completely, to have rms removed as well, and then install again... |
|
Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5662
|
Posted: Fri Jan 18, 2008 3:57 pm Post subject: |
|
|
Current development snapshot - no guarantee of anything; I just tried to change things that _may_ heap memory problems. |
|
Back to top |
|
 |
|