Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AndiAJ opened this issue Aug 4, 2021 · 1 comment
Open
Labels
🐞 bug Something isn't working 💥 crash

Comments

@AndiAJ
Copy link
Contributor

AndiAJ commented Aug 4, 2021

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 AndiAJ added 🐞 bug Something isn't working 💥 crash labels Aug 4, 2021
@Mugurell
Copy link
Contributor

Mugurell commented Aug 4, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 💥 crash
Projects
None yet
Development

No branches or pull requests

2 participants