reference-browser icon indicating copy to clipboard operation
reference-browser copied to clipboard

[Bug] Crash when trying to run UI automated tests on a physical device

Open AndiAJ opened this issue 3 years ago • 1 comments

Steps to reproduce

  1. Run any Automated UI test on a physical device

Expected behavior

The automated UI test are running on the physical device

Actual behavior

Crash 💥

--------- beginning of crash
2021-08-04 11:19:30.479 13935-13935/? E/AndroidRuntime: FATAL EXCEPTION: main
    PID: 13935
    java.lang.IllegalArgumentException: Wrong number of arguments; expected 6, got 3
        at java.lang.reflect.Method.invoke(Native Method)
        at androidx.test.services.speakeasy.client.ToolConnection$ToolConnectionPostIcs.doCall(ToolConnection.java:193)
        at androidx.test.services.speakeasy.client.ToolConnection.publish(ToolConnection.java:79)
        at androidx.test.services.speakeasy.client.ToolConnection.publish(ToolConnection.java:69)
        at androidx.test.services.shellexecutor.BlockingPublish.getResult(BlockingPublish.java:74)
        at androidx.test.services.shellexecutor.ShellCommandExecutorServer.start(ShellCommandExecutorServer.java:80)
        at androidx.test.services.shellexecutor.ShellMain.main(ShellMain.java:45)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
2021-08-04 11:19:30.479 13935-13935/? E/AndroidRuntime: Error reporting crash
    java.lang.RuntimeException: Bad file descriptor
        at android.os.BinderProxy.transactNative(Native Method)
        at android.os.BinderProxy.transact(BinderProxy.java:540)
        at android.app.IActivityManager$Stub$Proxy.handleApplicationCrash(IActivityManager.java:5182)
        at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:158)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
        at java.lang.Thread.dispatchUncaughtException(Thread.java:2203)
2021-08-04 11:19:30.479 13935-13935/? I/Process: Sending signal. PID: 13935 SIG: 9
2021-08-04 11:19:30.509 4918-8959/? I/PermissionControllerServiceImpl: Updating user sensitive for uid 10802
2021-08-04 11:19:30.543 1547-2086/? I/ActivityManager: Force stopping androidx.test.orchestrator appid=10737 user=0: from pid 13975
2021-08-04 11:19:30.550 2190-2190/? E/PhoneInterfaceManager: [PhoneIntfMgr] getCarrierPackageNamesForIntentAndPhone: No UICC
2021-08-04 11:19:30.550 2190-2190/? D/CarrierSvcBindHelper: No carrier app for: 0
2021-08-04 11:19:30.552 2435-13831/? I/EuiccGoogle: [151] EuiccServiceImpl.onGetEuiccProfileInfoList: onGetEuiccProfileInfoList: slotId = -1
2021-08-04 11:19:30.556 2970-2970/? D/RegisteredNfcFServicesCache: Service unchanged, not updating
2021-08-04 11:19:30.556 2435-13831/? W/EuiccGoogle: [151] EuiccServiceImpl.onGetEuiccProfileInfoList: slotId=-1. No eUICC is active. Return null.
2021-08-04 11:19:30.574 4918-8959/? I/PermissionControllerServiceImpl: Updating user sensitive for uid 10737
2021-08-04 11:19:31.962 1547-1601/? W/Looper: Drained

Device information

  • Android device: Google Pixel 3a (Android 11)
  • Reference Browser version: 8/4 Master

Notes

✔️ Seems to be working on OnePlus A3 (Android 6.0.1)

AndiAJ avatar Aug 04 '21 08:08 AndiAJ

This should only happen on newer devices while the test should run as before on slightly older Android versions.

androidx.test.services.speakeasy.client.ToolConnection$ToolConnectionPostIcs.doCall(ToolConnection.java:193) java.lang.IllegalArgumentException: Wrong number of arguments; expected 6, got 3

indicates that we probably need to update the androidx.test dependencies to a newer version.

Mugurell avatar Aug 04 '21 08:08 Mugurell