[Xperia Z5 Compact Q&A, Help & Troubleshooting] Tochinoki:
I have this issue:

01-09 11:58:07.691 22967 22967 E AndroidRuntime: java.util.concurrent.RejectedExecutionException: Task android.os.AsyncTask$3@6595ad5 rejected from java.util.concurrent.ThreadPoolExecutor@3f079db[Running, pool size = 17, active threads = 17, queued tasks = 128, completed tasks = 52]

I'm on Nougat 7.1.1, the problem fix after reset and then after two days it's on again.

I'm searching on the internet and some one says is related to background data disabled for some apps, and other says due to AsyncTask queue pool is over 128, it reject every new task to execute.

The devices affected are Google Pixel 7.1.2 7.1.1 samsungs, motorolas and others devices and versions. Some known tracked issues can be found on post similar to this: https://productforums.google.com/fo...ZFBIyW2KE;context-place=forum/phone-by-google

Some one posted the bad code causing issue and the solution to fix it but on AOSP (If I can retrieve the link I will attach to this post for furter analysis)

Trying to speak with Sony support the only thing they can do, is to send the device for repair (thankyou :( )

So, I wish to know if there's a solution trough ADB or some wise app that can flush Pool queue and free it to permit execution of usage data, or something else

I'll post the entire log for further info

01-09 11:37:22.687 14737 14737 E AndroidRuntime: FATAL EXCEPTION: main

01-09 11:37:22.687 14737 14737 E AndroidRuntime: Process: com.android.settings,PID: 14737

01-09 11:37:22.687 14737 14737 E AndroidRuntime: java.util.concurrent.RejectedExecutionException: Task android.os.AsyncTask$3@583c20f rejected from java.util.concurrent.ThreadPoolExecutor@4d4629c[Running, pool size = 17, active threads = 17, queued tasks = 128, completed tasks = 74]

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2049)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:814)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1360)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:623)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at com.android.settings.datausage.AppDataUsagePreference$UidDetailTask.bindView(AppDataUsagePreference.j

ava:93)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at com.android.settings.datausage.AppDataUsagePreference.<init>(AppDataUsagePreference.java:49)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at com.android.settings.datausage.DataUsageList.bindStats(DataUsageList.java:483)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at com.android.settings.datausage.DataUsageList$3.onLoadFinished(DataUsageList.java:656)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at com.android.settings.datausage.DataUsageList$3.onLoadFinished(DataUsageList.java:653)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:489)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:457)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.content.Loader.deliverResult(Loader.java:144)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:265)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:92)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:667)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.os.AsyncTask.-wrap1(AsyncTask.java)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.os.Looper.loop(Looper.java:241)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6274)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)

01-09 11:37:22.687 14737 14737 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)