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

SitrepActivity can result in too many queued tasks #7

Closed
codeka opened this issue Oct 10, 2014 · 0 comments
Closed

SitrepActivity can result in too many queued tasks #7

codeka opened this issue Oct 10, 2014 · 0 comments
Labels
Milestone

Comments

@codeka
Copy link
Owner

codeka commented Oct 10, 2014

The end result is the below exception. I'm not sure if the best solution is to just allow "infinite" (or at least, more) queued tasks, or to somehow limit the number of stars we try to fetch some other way.

java.util.concurrent.RejectedExecutionException: Task au.com.codeka.d@439ec898 rejected from java.util.concurrent.ThreadPoolExecutor@41cbfd58[Running, pool size = 20, active threads = 20, queued tasks = 250, completed tasks = 254]
    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1979)
    at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:786)
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1307)
    at au.com.codeka.BackgroundRunner.[execute|onComplete|access$100|access$200](SourceFile:88)
    at au.com.codeka.warworlds.model.StarManager.[clearCache|getStarSummary|getStarSummary|getStarSummaries$33f58d9f|notifyStarUpdated|refreshStar|refreshStarSummaries|renameStar|requestStar|access$200](SourceFile:178)
    at au.com.codeka.warworlds.model.ek.a(SourceFile:60)
    at au.com.codeka.warworlds.model.ek.a(SourceFile:50)
    at au.com.codeka.warworlds.game.SitrepActivity$SituationReportAdapter.getView(SourceFile:500)
    at android.widget.AbsListView.obtainView(AbsListView.java:2680)
    at android.widget.ListView.makeAndAddView(ListView.java:1838)
    at android.widget.ListView.fillDown(ListView.java:681)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant