fknives / Android-Tutorial-Test-ShowCase

Mock project showcasing testing on Android. It is used as a CodeKata.
Apache License 2.0
7 stars 2 forks source link

Confusing IndexOutOfBounds Crash when running tests on Emulator 21 #108

Open fknives opened 2 years ago

fknives commented 2 years ago

Describe the bug Tests are not run properly and a weird IndexOutOfBounds crash happens

Logs:

*** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime( 1499): java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
E/AndroidRuntime( 1499):    at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:117)
E/AndroidRuntime( 1499):    at android.view.accessibility.AccessibilityManager.handleNotifyAccessibilityStateChanged(AccessibilityManager.java:645)
E/AndroidRuntime( 1499):    at android.view.accessibility.AccessibilityManager.access$000(AccessibilityManager.java:68)
E/AndroidRuntime( 1499):    at android.view.accessibility.AccessibilityManager$MyHandler.handleMessage(AccessibilityManager.java:693)
E/AndroidRuntime( 1499):    at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1499):    at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 1499):    at com.android.server.SystemServer.run(SystemServer.java:269)
E/AndroidRuntime( 1499):    at com.android.server.SystemServer.main(SystemServer.java:170)
E/AndroidRuntime( 1499):    at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 1499):    at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 1499):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime( 1499):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
D/gralloc_ranchu( 1128): gralloc_alloc: Creating ashmem region of size 819200

Additional context Add any other context about the problem here. It looks like the whole AndroidTesting process crashed, since not all tests are listed

Emulator-Test-Results-21.zip

Emulator-Logcat-Logs-21.zip

fknives commented 2 years ago

Emulator-21-logs-and-test-results-20220926.zip Additional logs ^