-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Fatal Exception in adb logs: UIAutomation not connected #872
Comments
I would say such behaviour is expected as we need to make sure that all testing-related processes have been cleaned up properly. Failing to do so may corrupt following tests (e.g. having a random stacktrace in a log is better than a following test fail) Feel free to improve that code if you know how. |
Hi @mykola-mokhnach, Thank you for the prompt response as always. I frankly don't know much about the project so it'll be a super steep learning curve. And I don't wanna give any false hope either as I'm very underprivileged in terms of free time in my life right now. I guess I'll just leave this open for now. Thanks once again :) |
I've added some fixes into the driver version 4.1.4+ |
Yeah it seems to have been fixed! Thanks a lot @mykola-mokhnach! Will close the ticket. |
I'm facing this strange issue where the UiAutomator2 driver crashes during session teardown with
IllegalStateException: UiAutomation not connected
. I'm running tests on real Android devices in CI. This error occurs consistently during the cleanup phase after a test has completed successfully. The issue appears to be a race condition where the UiAutomation connection is terminated before AndroidJUnitRunner can properly clean it up.Device log:
Appium options:
The text was updated successfully, but these errors were encountered: