Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KanjiPad: java.lang.IllegalArgumentException in java.util.AbstractList.subList #707

Closed
mvysny opened this issue Nov 19, 2016 · 3 comments
Closed
Labels
bug

Comments

@mvysny
Copy link
Owner

@mvysny mvysny commented Nov 19, 2016

From the Google Play Console:

java.lang.RuntimeException: java.lang.IllegalArgumentException
	at sk.baka.aedictkanjipadext.QueryService$IncomingHandler$1.onFailure(QueryService.java:37)
	at sk.baka.aedictkanjipadext.util.LoaderEx$Loader.onFailure(LoaderEx.java:168)
	at sk.baka.aedictkanjipadext.util.LoaderEx$Loader.access$100(LoaderEx.java:96)
	at sk.baka.aedictkanjipadext.util.LoaderEx$Loader$1.run(LoaderEx.java:145)
	at sk.baka.aedictkanjipadext.App$2.run(App.java:91)
	at android.os.Handler.handleCallback(Handler.java:815)
	at android.os.Handler.dispatchMessage(Handler.java:104)
	at android.os.Looper.loop(Looper.java:207)
	at android.app.ActivityThread.main(ActivityThread.java:5710)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
Caused by: java.lang.IllegalArgumentException
	at java.util.AbstractList.subList(AbstractList.java:736)
	at com.leafdigital.kanji.KanjiList.getTopMatches(KanjiList.java:237)
	at sk.baka.aedictkanjipadext.Searcher$MyLoader.load(Searcher.java:163)
	at sk.baka.aedictkanjipadext.Searcher$MyLoader.loadItemsInBackground(Searcher.java:139)
	at sk.baka.aedictkanjipadext.util.LoaderEx$Loader.run(LoaderEx.java:116)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
	at java.lang.Thread.run(Thread.java:818)
@mvysny mvysny added the bug label Nov 19, 2016
@mvysny
Copy link
Owner Author

@mvysny mvysny commented Nov 20, 2016

Need more info. More info added in 1.6.1

@mvysny mvysny closed this Nov 20, 2016
@mvysny
Copy link
Owner Author

@mvysny mvysny commented Feb 3, 2017

java.lang.RuntimeException: java.lang.RuntimeException: start>end 36 32 32 4 10 9
	at sk.baka.aedictkanjipadext.QueryService$IncomingHandler$1.onFailure(QueryService.java:37)
	at sk.baka.aedictkanjipadext.util.LoaderEx$Loader.onFailure(LoaderEx.java:232)
	at sk.baka.aedictkanjipadext.util.LoaderEx$Loader.access$100(LoaderEx.java:149)
	at sk.baka.aedictkanjipadext.util.LoaderEx$Loader$1.run(LoaderEx.java:208)
	at android.os.Handler.handleCallback(Handler.java:815)
	at android.os.Handler.dispatchMessage(Handler.java:104)
	at android.os.Looper.loop(Looper.java:207)
	at android.app.ActivityThread.main(ActivityThread.java:5710)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
Caused by: java.lang.RuntimeException: start>end 36 32 32 4 10 9
	at com.leafdigital.kanji.KanjiList.getTopMatches(KanjiList.java:243)
	at sk.baka.aedictkanjipadext.Searcher$KanjiMatchingLoader.load(Searcher.java:177)
	at sk.baka.aedictkanjipadext.Searcher$KanjiMatchingLoader.loadItemsInBackground(Searcher.java:153)
	at sk.baka.aedictkanjipadext.util.LoaderEx$Loader.run(LoaderEx.java:179)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
	at java.lang.Thread.run(Thread.java:818)
@mvysny mvysny reopened this Feb 3, 2017
@mvysny
Copy link
Owner Author

@mvysny mvysny commented Feb 3, 2017

The problem was that on a powerful devices (with 10 cores) the kanji match tasks were incorrectly sliced. Fixed in 1.6.3

@mvysny mvysny closed this Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.