Android java.lang.IllegalArgumentException: Comparison method violates its general contract!?

异常日志:

10-16 16:58:58.120 E/AndroidRuntime( 2460): FATAL EXCEPTION: Thread-105
10-16 16:58:58.120 E/AndroidRuntime( 2460): Process: com.semisky.multimedia, PID: 2460
10-16 16:58:58.120 E/AndroidRuntime( 2460): java.lang.IllegalArgumentException: Comparison method violates its general contract!
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.TimSort.mergeHi(TimSort.java:864)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.TimSort.mergeAt(TimSort.java:481)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.TimSort.mergeForceCollapse(TimSort.java:422)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.TimSort.sort(TimSort.java:219)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.TimSort.sort(TimSort.java:169)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.Arrays.sort(Arrays.java:2023)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.Collections.sort(Collections.java:1883)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at com.semisky.multimedia.media_usb.model.MediaStorageDataModel.queryAllMusics(MediaStorageDataModel.java:153)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at com.semisky.multimedia.media_music.model.MusicDataModel$7.run(MusicDataModel.java:177)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.lang.Thread.run(Thread.java:841)
10-16 16:58:58.120 E/AndroidRuntime( 2460): FATAL EXCEPTION: Thread-106
10-16 16:58:58.120 E/AndroidRuntime( 2460): Process: com.semisky.multimedia, PID: 2460
10-16 16:58:58.120 E/AndroidRuntime( 2460): java.lang.IllegalArgumentException: Comparison method violates its general contract!
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.TimSort.mergeHi(TimSort.java:864)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.TimSort.mergeAt(TimSort.java:481)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.TimSort.mergeForceCollapse(TimSort.java:422)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.TimSort.sort(TimSort.java:219)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.TimSort.sort(TimSort.java:169)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.Arrays.sort(Arrays.java:2023)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.util.Collections.sort(Collections.java:1883)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at com.semisky.multimedia.media_usb.model.MediaStorageDataModel.queryAllMusics(MediaStorageDataModel.java:153)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at com.semisky.multimedia.media_music.model.MusicDataModel$7.run(MusicDataModel.java:177)
10-16 16:58:58.120 E/AndroidRuntime( 2460): 	at java.lang.Thread.run(Thread.java:841)
10-16 16:58:58.120 W/ActivityManager(  124):   Force finishing activity com.semisky.multimedia/.media_music.view.MusicListActivity

解决办法:

Android java.lang.IllegalArgumentException: Comparison method violates its general contract!?_第1张图片

你可能感兴趣的:(Android车载应用异常记录)