itsdrnoob / DataMonitor

Data usage monitoring app for android.
GNU General Public License v3.0
595 stars 49 forks source link

Refresh+Swipe in system apps list crash #263

Open Damglador opened 3 weeks ago

Damglador commented 3 weeks ago

Checklist

Affected app version

v2.4.0

Steps to reproduce the bug

  1. Go to "App usage"
  2. Open "System Apps"
  3. Refresh and swipe up, should cause instant crash Don't ask me how I know

Expected behavior

No crash?

Actual behavior

Crash

Screenshots/Screen recordings

No response

Logs

----------Start of crash---------- Package: com.drnoob.datamonitor Build type: release Version code: 29 Version: v2.4.0 Thread name: main Thread stacktrace: [dalvik.system.VMStack.getThreadStackTrace(Native Method), java.lang.Thread.getStackTrace(Thread.java:1841), k4.b.uncaughtException(CrashReporter.java:91), java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1071), java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1066), java.lang.Thread.dispatchUncaughtException(Thread.java:2306)] Crash message: Inconsistency detected. Invalid item position 10(offset:10).state:16 androidx.recyclerview.widget.RecyclerView{f0324c3 VFE...... ......ID 0,0-1080,2000 #7f090060 app:id/app_data_usage_recycler}, adapter:e4.d@bd56cad, layout:androidx.recyclerview.widget.LinearLayoutManager@bca2be2, context:com.drnoob.datamonitor.ui.activities.ContainerActivity@897938

----------Crash logs---------- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 10(offset:10).state:16 androidx.recyclerview.widget.RecyclerView{f0324c3 VFE...... ......ID 0, 0-1080, 2000 #7f090060 app:id/app_data_usage_recycler}, adapter:e4.d@bd56cad, layout:androidx.recyclerview.widget.LinearLayoutManager@bca2be2, context:com.drnoob.datamonitor.ui.activities.ContainerActivity@897938 at androidx.recyclerview.widget.RecyclerView$t.i(RecyclerView.java:1020) at androidx.recyclerview.widget.m.c(GapWorker.java:46) at androidx.recyclerview.widget.m.b(GapWorker.java:187) at androidx.recyclerview.widget.m.run(GapWorker.java:78) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:205) at android.os.Looper.loop(Looper.java:294) at android.app.ActivityThread.main(ActivityThread.java:8233) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:573) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1058)

----------Device info---------- Device Manufacturer: Ulefone Device Brand: Ulefone Device Model: Armor 21 Device Codename: Armor_21_EEA Android version: 14, 34

Affected Android/Custom ROM version

Android 14

Affected device model

Ulefone Armor 21

Additional context

No response