Locus Map - forum

Support => Troubles & Questions => Topic started by: mercutio76 on December 19, 2011, 15:15:27

Title: Locus crashes
Post by: mercutio76 on December 19, 2011, 15:15:27
Hello all,

since the update to 1.15.1 Locus Pro & Locus free always crashes some seconds after starting. I did uninstall it and reinstalled it, but it did not help. I Thought perhaps some problems with to many POIs and then deleted some database files but it always crashes with an java.lang.IllegalArgumentException in java.util.TimSort I could not figure out the details of the problem, but I can not use Locus at the moment at all. Does anybody has the same error and knows perhaps a solution to the problem?

Thank you!
          Best regards

P.S.: My mobile is a Samsung GT-i9000
Title: Re: Locus crashes
Post by: Castingfotograf on December 19, 2011, 17:10:48
Same at my Phone! Samsung Galaxy Tab P1000 , O/S Gingerbread 2.3.6 with stock kernel. Pro-Version (I've sent you the crash logs right now)
Title: Re: Locus crashes
Post by: MMM on December 19, 2011, 17:24:47
I have the same problem... (ZTE Blade, 2.1-update1)
Here the crash log

<entry key="STACK_TRACE_KEY">java.lang.RuntimeException: An error occured while executing doInBackground()
   at android.os.AsyncTask$3.done(AsyncTask.java:214)
   at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
   at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
   at java.util.concurrent.FutureTask.run(FutureTask.java:137)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:565)
   at java.lang.Thread.run(Thread.java:1096)
Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!
   at java.util.TimSort.mergeLo(TimSort.java:743)
   at java.util.TimSort.mergeAt(TimSort.java:479)
   at java.util.TimSort.mergeCollapse(TimSort.java:404)
   at java.util.TimSort.sort(TimSort.java:210)
   at java.util.TimSort.sort(TimSort.java:169)
   at java.util.Arrays.sort(Arrays.java:2500)
   at menion.android.locus.core.bk.doInBackground(L:1)
   at android.os.AsyncTask$2.call(AsyncTask.java:199)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
   ... 4 more
java.lang.IllegalArgumentException: Comparison method violates its general contract!
   at java.util.TimSort.mergeLo(TimSort.java:743)
   at java.util.TimSort.mergeAt(TimSort.java:479)
   at java.util.TimSort.mergeCollapse(TimSort.java:404)
   at java.util.TimSort.sort(TimSort.java:210)
   at java.util.TimSort.sort(TimSort.java:169)
   at java.util.Arrays.sort(Arrays.java:2500)
   at menion.android.locus.core.bk.doInBackground(L:1)
   at android.os.AsyncTask$2.call(AsyncTask.java:199)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
   at java.util.concurrent.FutureTask.run(FutureTask.java:137)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:565)
   at java.lang.Thread.run(Thread.java:1096)
</entry>
Title: Re: Locus crashes
Post by: berkley on December 19, 2011, 18:43:13
Hi guys,

Is this still valid for version 1.15.2? Because there should have been some bugfixes...
You can check check your version with opening the "main menu", clicking on "Locus" and finally "Information about the app"...

If this issue isn't solved yet, you can do professional error reporting as shown on this video:
http://www.youtube.com/watch?v=RcOnjI6pzG8 (http://www.youtube.com/watch?v=RcOnjI6pzG8)

Hope everything will work soon again ;)

Cheers, berkley
Title: Re: Locus crashes
Post by: Menion on December 19, 2011, 20:05:16
sorry guys, stupid error in android. I'm caching already generated vector maps into directory locus/cache/maps/vector. During start, I check if this directory contain more then 1000 files, and if so, I just sort them by last updated time, and delete last 500 files. Unfortunately on this sorting process, android crash for some stupid, unexpected, error "Comparison method violates its general contract". So best is to delete this cache directory, then it should work again (at least for a while). I have to release next version again soon, this is too critical error ...
Title: Re: Locus crashes
Post by: Castingfotograf on December 19, 2011, 23:36:04
Thank you for this hint. After deleting these files, Locus works perfectly again!
Title: Re: Locus crashes
Post by: MMM on December 20, 2011, 11:02:31
I saw your hint too late...
So yesterday evening I uninstalled Locus and deleted the whole Locus directory. After installation it works again...
Next time I know to delete only the cache... ;-)
Title: Re: Locus crashes
Post by: Menion on December 20, 2011, 11:25:36
sorry guys, I'll release today or tomorrow morning new version. This is some weird system error, damn ...