cgeo/c-geo-opensource — Issue #946: Loading owned geocaches produces crash
Author: Lineflyer
Created: 2012-01-05 22:25:22+00:00
State: open

From @Gemste from developer board.
I was able to reproduce it on Android 3.2.1 with newest market release:

Description:
- Search by owner name, typing any popular username (like DBRambling) (more than 20 hides)
- scroll down to "load more caches" and click for more caches
- Then ERROR

Log from my tablet:
01-05 23:18:02.845 E/cgeo ( 7140): cgeocaches.loadNextPageHandler: java.lang.IllegalArgumentException: Comparison method violates its general contract!
01-05 23:18:02.845 D/AndroidRuntime( 7140): Shutting down VM
01-05 23:18:02.845 W/dalvikvm( 7140): threadid=1: thread exiting with uncaught exception (group=0x4013f760)
01-05 23:18:02.855 E/AndroidRuntime( 7140): FATAL EXCEPTION: main
01-05 23:18:02.855 E/AndroidRuntime( 7140): java.lang.IllegalArgumentException: Comparison method violates its general contract!
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at java.util.TimSort.mergeLo(TimSort.java:743)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at java.util.TimSort.mergeAt(TimSort.java:479)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at java.util.TimSort.mergeCollapse(TimSort.java:406)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at java.util.TimSort.sort(TimSort.java:210)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at java.util.TimSort.sort(TimSort.java:169)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at java.util.Arrays.sort(Arrays.java:2103)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at java.util.Collections.sort(Collections.java:1965)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at cgeo.geocaching.CacheListAdapter.forceSort(CacheListAdapter.java:253)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at cgeo.geocaching.CacheListAdapter.checkChecked(CacheListAdapter.java:751)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at cgeo.geocaching.CacheListAdapter.setSelectMode$25decb9(CacheListAdapter.java:195)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at cgeo.geocaching.cgeocaches$2.handleMessage(cgeocaches.java:305)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at android.os.Handler.dispatchMessage(Handler.java:99)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at android.os.Looper.loop(Looper.java:132)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at android.app.ActivityThread.main(ActivityThread.java:4123)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at java.lang.reflect.Method.invokeNative(Native Method)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at java.lang.reflect.Method.invoke(Method.java:491)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
01-05 23:18:02.855 E/AndroidRuntime( 7140):	at dalvik.system.NativeStart.main(Native Method)
01-05 23:18:02.855 W/ActivityManager( 132): Force finishing activity cgeo.geocaching/.cgeocaches