Vector Maps and Crash.

Bert Crommar shared this problem 5 years ago
Closed

Low zoom level on big Vector Maps Causes Crash!!

Comments (34)

photo
0

Hello Bert


Thank you for your interest in Locus


Your Device ?


Your OS version ?


Your Locus Pro Version ?


Which Map?


What means "low zoom level" eg


You have downloaded your map from..?


How old is your map?


How big is your map?


Can you explain step by step what happend?


Have you already sent an error report inside Locus?


Have you sent an error report as described here: http://docs.locusmap.eu/doku.php/manu...

photo
0

Pleas install


http://code.google.com/p/mapsforge/do...


Choose your described map and move/zoom the map in the same way.

photo
0

Hello Bert,


this is device you use right? http://www.gsmarena.com/huawei_u8180_...


I`m worried, that this will be problem in this case. Are you using one big map of Netherland (complete) or you downloaded smaller parts and use this?


Anyway problem here is, that your device have really low amount of memory that is available to single process. It`s really deadly combination.


Android 2.2 together with 16MB of available memory for Locus ... sorry, but here is absolutely nothing I can do. You just have to keep as low as possible, number of visible points and tracks on screen

photo
0

Hello Menion,


Yes that is the one.


Strange is that when he once took the map(for the moment Spain) without a crash, afterwards it works OK but sometimes somewhat slow.


For the moment we are in Turkey, and for walking, cycling, and even car traveling it gives not much off a problem.


This is visible when you use automatic zoom, but this is not a big problem, you can work with it.


Thanks for your research.


Bert Crommar.

photo
0

problematic for memory are areas with huge amount of data. For example huge, well mapped cities may cause problems and also almost almost whole netherland. Anyway I really suggest to use smaller vector maps if possible and good luck (and in future, at least little bit better phone ;) )

photo
0

Hello Menion,


This phone is very well and very cheap, since he has been rooted he is nearly no more giving big problems(thanks to Link2SD).


Maybe you could do something, even if you think you can`t.


I explain, the crashes occur when zoom-level is very low. This is when you try to make an overview off a map or regio(500 to 1000 km). On that moment you don`t need much detail, and I think that Locus tries to give to much detail --> Crash.


Higher zoom levels don`t give problems(less than 2Km on screen).


Problems start from 300->500Km on screen.


I think that you as a programmer, could maybe make it a little bit easier for processor and memory, without quality loss for the program(Locus).


Greetings,


Bert Crommar.

photo
0

I guess there are around 100.000 active Locus users around the world. This number is growing.


And I guess, there are around 100 active Locus users with the same device as you have. And this number is shrinking.


If you were a developer, would you invest 20 hours of your working time to solve this issue?

photo
0

Hello Berkley,


This is a stupid answer.


If a whole lot off the calculations are not needed, don`t execute them, this makes room for much more interesting options even on very much heavier machines.


If you make machines do unnecessary work, it is no use to have a heavier machine.


Greetings,


Bert Crommar.

photo
0

It`s only a stupid answer, when you didn`t understand the meaning of RAM.


http://en.wikipedia.org/wiki/RAM

photo
0

hmm sorry Berkley, cannot agree.


I agree with Bert and it`s logical. If there is place for improvements, why not do it. To save some device power on any place, even if most device have no problems with it, save power to another tasks and also save battery (by less cpu usage)


anyway in this case it`s worst. For rendering of vector maps, I use library MapsForge (http://code.google.com/p/mapsforge/) , so speed any memory usage is not on me. Rest yes and in rest of app I`m still improving some parts to achieve less cpu usage

photo
0

Come on, it`s ridicolous to even think about working on it.


I`ve got 30k active installations and 3 errors on dev console. Guess what device manufacturer?

photo
0

I`m not saying I`ll work on it. I just say that from principle point of view, it`s not bad to work on something that work, to make it work better :)

photo
0

In the case of vector maps and low zoom level it mainly can help to reduce information during creation of the map and maybe additionally when map is rendered (theme).

photo
0

Hi Bert,


We’ve re-created new “Netherlands (complete)” map with some changes that could help with your outOfMem problem. Please, update Netherland map via Map manager and let me know how it works.

photo
0

Hello tomni62,


I am not creating maps, I use vector maps from Mapsforge.


I just don`t know how to create them, and they differ completely from SQL-maps.


Greetings,


Bert Crommar.

photo
0

Hello menion,


I think this is a very good attitude.


Bert Crommar.

photo
0

Bert, this comment wasn`t directed to you but should expain where changes could be done to reduce the memory footprint. Petr is one of the guys who creates maps and modifies themes. Seems he realized already , see his post below.

photo
0

Like :)

photo
0

Hello Petr Voldan,


I am not living in the Netherlands but in Belgium.


If you want I shall test your map, where can I get it?


Thanks at forehand,


Bert Crommar.

photo
0

Peter wrote:


"...map via Map manager..."

photo
0

Bert,


I’m sorry but I’m little bit lost in these topics so I thought that your problem was with Netherland map.


So as Gynta already asked: You have downloaded your map from..?


We offer for Locus users own vector maps. There are some information how to download our vector maps http://docs.locusmap.eu/doku.php/shop...

photo
0

That`s so funny to read! ;)

photo
0

From Mapsforge.

photo
0

Bert,


Actually, the process of purchase vector map via Locus store could not be suitable for you. I can create new map of Belgium and give you direct link for downloading. Is it OK for you?

photo
0

@matthias


yes, its tricky ;)


bert is a special customer and sometimes he should read and answere


that could make it easier, to help him


@bert


can you please read and comment my 2nd reply ?

photo
0

@gynta


I don`t even belive, that he is a real customer ;)

photo
0

Is this your second reply?


I am sorry but sometimes my answers dissapear, maybe I forget something or do something wrong.


Besides that I am not the whole day before PC.


Greetings,


Bert Crommar.

photo
0

I downloaded the file but I don`t see what I can do with it, I must not put to much on my phone, problems could arise.


SD-card only 28Gb, second partition 1Gb.(needed for Link2SD)

photo
0

Hello Petr Voldan,


I posses the map off Belgium, and as I thought she is working fine(small country).


Map causing biggest troubles Spain(Mapsforge), I don`t know how I managed to download there, for the moment it isn`t working anymore.


Greetings,


Bert Crommar.

photo
0

Start this mapviewer - load your mentioned map - and check it again.


The reason is - if you have the same problems, so you know your phone is lame. The app is a simply mapviewer

photo
0

OK.,I will check it

photo
0

Hello Gynta,


With mapviewer no problem(no crash) only little bit slow.


Greetings,


Bert Crommar.


PS.: Tomorrow I will be making test with new version from Menion.

photo
1

Why is this topic marked as solved? The problem still exists.


Sure, people with phones with many GB's of RAM might not encounter the crashes, but that does not mean that the app is flawless. It crashes when operating the app. When memory is not permitting certain kind of operation, it should handle the exception gracefully. For example, by not allowing to zoom out more.

Also, the Netherlands is not very big. In fact, it's one of the smallest countries in Europe. The app should be capable of handling big maps like any other navigation app on my phone. They don't crash using the same OSM data of the same countries. They simply don't calculate things like buildings and bus stops when viewing a whole country.

photo
1

If you want to be precise, I'll remark this topic to "unsolvable". There is nothing I may do to better support 2.X devices.