Locus Free crashes with vector maps

Started by lebha, October 11, 2011, 22:05:49

0 Members and 1 Guest are viewing this topic.

lebha

Hi!

I downloaded the Vector map for Finland and installed it in Locus Free successfully by copying berkley's map file to Locus MapsVector folder. It worked perfectly at first but now Locus started crashing every time I try to use the Vector map. I think it started after the latest Locus update. I'm a new Locus user, and otherwise pretty satisfied with everything I've experienced so far, so thank you for the good work!

Here's the crashdump:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>crash-1318362877303.err</comment>
<entry key="ID_KEY">GINGERBREAD</entry>
<entry key="PACKAGE_NAME_KEY">menion.android.locus</entry>
<entry key="STACK_TRACE_KEY">java.lang.RuntimeException: Unable to resume activity {menion.android.locus/menion.android.locus.core.gui.MapVectorChooser}: java.lang.StringIndexOutOfBoundsException
   at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2124)
   at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:138)
   at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
   at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:691)
   at android.widget.TabHost.setCurrentTab(TabHost.java:341)
   at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:140)
   at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:456)
   at android.view.View.performClick(View.java:2538)
   at android.view.View$PerformClick.run(View.java:9152)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:130)
   at android.app.ActivityThread.main(ActivityThread.java:3691)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
   at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.StringIndexOutOfBoundsException
   at java.lang.String.substring(String.java:1651)
   at menion.android.maps.c.p.&lt;init&gt;(L:25)
   at menion.android.maps.c.b.a(L:712)
   at menion.android.maps.c.b.e(L:700)
   at menion.android.locus.core.gui.MapVectorChooser.b(L:166)
   at menion.android.locus.core.gui.MapVectorChooser.onResume(L:162)
   at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
   at android.app.Activity.performResume(Activity.java:3858)
   at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2114)
   ... 17 more
java.lang.StringIndexOutOfBoundsException
   at java.lang.String.substring(String.java:1651)
   at menion.android.maps.c.p.&lt;init&gt;(L:25)
   at menion.android.maps.c.b.a(L:712)
   at menion.android.maps.c.b.e(L:700)
   at menion.android.locus.core.gui.MapVectorChooser.b(L:166)
   at menion.android.locus.core.gui.MapVectorChooser.onResume(L:162)
   at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
   at android.app.Activity.performResume(Activity.java:3858)
   at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2114)
   at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:138)
   at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
   at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:691)
   at android.widget.TabHost.setCurrentTab(TabHost.java:341)
   at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:140)
   at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:456)
   at android.view.View.performClick(View.java:2538)
   at android.view.View$PerformClick.run(View.java:9152)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:130)
   at android.app.ActivityThread.main(ActivityThread.java:3691)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
   at dalvik.system.NativeStart.main(Native Method)
</entry>
<entry key="CUSTOM_DATA_KEY"></entry>
<entry key="TYPE_KEY">user</entry>
<entry key="FINGERPRINT_KEY">samsung/GT-I9100/GT-I9100:2.3.4/GINGERBREAD/XWKI4:user/release-keys</entry>
<entry key="FILE_PATH_KEY">/data/data/menion.android.locus/files</entry>
<entry key="TIME_KEY">1316000051000</entry>
<entry key="VERSION_NAME_KEY">1.13.4</entry>
<entry key="USER_KEY">root</entry>
<entry key="TOTAL_MEM_SIZE_KEY">2113748992</entry>
<entry key="ANDROID_VERSION_KEY">2.3.4</entry>
<entry key="PHONE_MODEL_KEY">GT-I9100</entry>
<entry key="DISPLAY_KEY">GINGERBREAD.XWKI4</entry>
<entry key="MODEL_KEY">GT-I9100</entry>
<entry key="BOARD_KEY">GT-I9100</entry>
<entry key="DEVICE_KEY">GT-I9100</entry>
<entry key="PRODUCT_KEY">GT-I9100</entry>
<entry key="BRAND_KEY">samsung</entry>
<entry key="AVAILABLE_MEM_SIZE_KEY">1684291584</entry>
<entry key="HOST_KEY">DELL143</entry>
<entry key="TAGS_KEY">release-keys</entry>
</properties>
  •  

Menion

#1
damn, seems like second stupid mistake with some file names ... may you please tell EXACT name of your map file?
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

lebha

#2
The filename is finland.osm.map.
  •  

lebha

#3
Hello!

I tried again with a different berkley's vector map, this time the map file name was spain.osm.map. Locus crashes in the same way, i.e. when I try to use the vector map (java.lang.StringIndexOutOfBoundsException).
  •  

Menion

#4
thanks, this is really weird ... what is full path to your map file directory? It have to be some problem there because you're only one that report this ... anyway I did some kind of "protection" to this so in next update will be this fine
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

lebha

#5
Hi, the map file directory path is /mnt/sdcard/external_sd/Locus/mapsVector.
  •  

rkan

#6
Quote from: "lebha"Hi, the map file directory path is /mnt/sdcard/external_sd/Locus/mapsVector.
Where did you get the Finland.osm.map?

Miten teit tai mistä latasit ton sun mainitseman kartan?
  •  

Menion

#7
maps can be downloaded from this post
viewtopic.php?f=15&t=821#p4627

I'll release today or tomorrow new version so I hope it will work fine now. If not, let me know and I'll try to do something with this
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

lebha

#8
Vector maps crashed again after updating to the new version. But then I removed and reinstalled Locus Free and they started working again! So probably there was just something wrong with my installation of the software. Thank for your help anyway!
  •  

Menion

#9
this is really weird mainly because I added some more checks to prevent some crashes on place where you had problem. Even more weird is that reinstall helped! Anyway I'm glad it works now :)
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •