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

Android crash: UiAutomation not connected #15065

Closed
mountiny opened this issue Feb 10, 2023 · 6 comments
Closed

Android crash: UiAutomation not connected #15065

mountiny opened this issue Feb 10, 2023 · 6 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Needs Reproduction Reproducible steps needed Weekly KSv2

Comments

@mountiny
Copy link
Contributor

Problem

Coming from this Crashlytics record. Occurs in Android 11, Pixel 5

No reproduction steps as of now, just one occurrence but logging this either way.

Why is it important

Prevents the app from crashing

Solution

Investigate where the crash is happening and fix it

Fatal Exception: java.lang.IllegalStateException: UiAutomation not connected, UiAutomation@2a8b373[id=-1, flags=0]
       at android.app.UiAutomation.throwIfNotConnectedLocked(UiAutomation.java:1239)
       at android.app.UiAutomation.getRootInActiveWindow(UiAutomation.java:602)
       at android.support.test.uiautomator.UiDevice.getWindowRoots(UiDevice.java:3)
       at android.support.test.uiautomator.UiDevice.findObjects(UiDevice.java:2)
       at androidx.test.tools.crawler.platform.uiautomator.UiAutomatorUtils.isSoftKeyboardOpen(UiAutomatorUtils.java:1)
       at androidx.test.tools.crawler.platform.hybrid.EspressoUtils.isSoftKeyboardOpen(EspressoUtils.java:7)
       at androidx.test.tools.crawler.platform.hybrid.HybridInteractionController.enterText(HybridInteractionController.java:14)
       at androidx.test.tools.crawler.platform.ActionExecutor.execute(ActionExecutor.java:48)
       at androidx.test.tools.crawler.platform.ActionExecutor.performAction(ActionExecutor.java:4)
       at androidx.test.tools.crawler.platform.RemotePlatform.handlePerformAction(RemotePlatform.java:22)
       at androidx.test.tools.crawler.platform.RemotePlatform.messageLoop(RemotePlatform.java:59)
       at androidx.test.tools.crawler.platform.RemotePlatform.lambda$startCrawlAndWaitUntilFinished$0$androidx-test-tools-crawler-platform-RemotePlatform(RemotePlatform.java:1)
       at androidx.test.tools.crawler.platform.RemotePlatform$$ExternalSyntheticLambda1.run(:6)
       at java.lang.Thread.run(Thread.java:923)

the full stacktrace is
here

@mountiny mountiny added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Feb 10, 2023
@melvin-bot melvin-bot bot locked and limited conversation to collaborators Feb 10, 2023
@MelvinBot
Copy link

Triggered auto assignment to @maddylewis (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@MelvinBot
Copy link

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@mountiny
Copy link
Contributor Author

This might not require any further action if the crash wont be happening again in future @maddylewis

@maddylewis
Copy link
Contributor

got it - ty for the clarification @mountiny

@melvin-bot melvin-bot bot removed the Overdue label Feb 13, 2023
@mountiny mountiny added Weekly KSv2 and removed Daily KSv2 labels Feb 13, 2023
@melvin-bot melvin-bot bot added the Overdue label Feb 21, 2023
@maddylewis
Copy link
Contributor

ill check to see if the crash is still happening.

@melvin-bot melvin-bot bot removed the Overdue label Feb 22, 2023
@mountiny
Copy link
Contributor Author

I checked the dashboard just now and I dont think this is happening now. Gonna close this. Thanks @maddylewis !

@Expensify Expensify unlocked this conversation Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Needs Reproduction Reproducible steps needed Weekly KSv2
Projects
None yet
Development

No branches or pull requests

3 participants