Systemui crash due to ConcurrentModificationException in org.lineageos.internal.statusbar.NetworkTraffic
Expected Behavior
Systemui should not crash.
Current Behavior
Systemui did crash.
Possible Solution
Steps to Reproduce
- Get yourself into some edge case of a situation.
- In my case, it happened when the device was nearly out of WiFi range and kept switching between WiFi and LTE.
- Not sure though whether that's the cause, but that's the only "special" thing I could make out about the situation.
/device cheeseburger /version lineage-17.1 /date 2020-11-10 /kernel /baseband /mods Magisk
Log
FATAL EXCEPTION: main
Process: com.android.systemui, PID: 2342
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1441)
at java.util.HashMap$ValueIterator.next(HashMap.java:1470)
at org.lineageos.internal.statusbar.NetworkTraffic$3.handleMessage(NetworkTraffic.java:196)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
I have read the directions.