This object is in archive! 

Error downloading andromaps

-karotte- shared this problem 7 years ago
Solved

I'm using Locus Pro with offline Andromaps since December 2015. Offline maps are placed on external SD card. Device is Huawei P8 with Android 6.0.


This has been working without problem until one of the recent updates. The update when the problems appeared is the one with the new notification window which contains the download progress (instead of the pop up progress bar as before).


After successfully downloading one of the maps, Locus extracts the map and finished with the error message:

"Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference". See attached Screenshot_2017-04-22-08-15-43.png (edit: screenshots are in German but this shouldn't be a problem as the error message is in English).


I tried it with two different maps: Germany and Rheinland-Pfalz only. See Screenshot_2017-04-22-08-16-00.png. Both download processes finish with said error message.


But nevertheless both maps are working. See e.g. Rheinland-Pfalz in Screenshot_2017-04-22-08-16-24.png.


As I said, this was working prior to the lasted Locus updates. I assume the error is not that severe but it is still confusing.


If you need more information from me for debugging, please let me know.

Replies (10)

photo
1

Good day,


thank you for a bug report and sorry for a complications. I was trying to simulate this issue on own device, but unfortunately no such problem happen to me.


At start of next week will be published new Locus Map versions. Please wait on this version and if same problem happen again, create me a bug report by this method. There should be some error message that may say as where is a problem.


Thank you.

photo
1

Even with latest update to 3.23.3 I still see the same message.


I just provided a bug report via mail as described in link although Locus does not crash.

photo
1

How to reproduce:


  1. Go to http://www.openandromaps.org/downloads/deutschland
  2. Click the + in front of Hamburg (works with any other map but this is the smallest one) and open download options
  3. Click the "install on Locus"
  4. This will open Locus and start downloading the map. After successful download, progress bar is at 25%.
  5. Then the map will be extracted. After successfull extraction, progress bar is at 50%.
  6. Then the process stops with said error message from attached screenshot: http://help.locusmap.eu/attachments/6530

photo
1

Good day karotte,

thank you for a bug report and precise description. Seems that Locus Map has some troubles with creating and handling target directory where to extract data. You have defined some custom directory for "vectorMaps" folder right? May you please write me (or post a screenshot) of your "default directories" settings for mapsVector? Thank you

photo
1

Indeed, I have a non-standard maps directory because I wanted to move the maps to the external storage.

So my main directory is /mnt/ext_sdcard


  • mapsOnline: Standard
  • maps: Standard
  • mapsVector: /mnt/ext_sdcard/Locus/mapsVector
  • mapItems: Standard
  • backup: Standard
  • export: Standard
  • data/geocaching: Standard
  • data/srtm: Standard

But: I experienced the same behaviour and error message as described on another device (Samsung S4 mini) where I'm 90% sure that the folder settings have not been touched. But this is the Locus version which was up to date during Easter.

Interestingly a Huawei P9 lite that just received the upgrade Android 7.0 doesn't show this problem at all. I just installed there Locus Maps Free via Play Store and did NOT touch the folder settings: Not a problem at all. No error.

Edit: The P9 lite does not have an external SD card.

photo
1

This was the guide I followed for changing the location: http://docs.locusmap.eu/doku.php?id=manual:faq:use_sdcard_on_kitkat

photo
1

It is absolutely OK, I use same configuration on my device and it works without a problems. Have to try it on different device as well and let you know once I discover something useful. Thanks

photo
1

Solved by:

  • Uninstall
  • Re-Install
  • Set main directory to /sdcard/ resp. /sdcard/Locus/
  • change mapsVector to /mnt/ext_sdcard/Locus/mapsVector


Please note: The dialogue "change in Locus Map Pro directories found" appears every time until you check "don't ask again". To me as a user it is not clear why this dialogue appears. So I chose "don't ask again".

photo
1

Hello,

after this procedure, all works as expected? No more problems with downloading? Have to say it's surprising.


Locus Map complain at start because you named directory on SD card also "Locus". Then it looks like duplicate directory. I personally use "Locus SD" as name for this SD card directory to prevent this notification and also to be always sure, with which Locus Map directory I talk.


Anyway, I'm really glad you have solved this issue, thank you!

photo
1

thanks for the explanation regarding the startup complaint because of directory naming. I wouldn't have expected that.


and yes, the issue is solved by the steps described above. I don't know what was wrong in the end. cannot reproduce :-(

Replies have been locked on this page!