-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
StackOverflowError inside UiAutomatorTestRunner #10204
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
Comments
Go ask on stackoverflow then ? Its theirs error LUL 🤣 JK |
@trix0 Flooding is not appreciated here |
No particular idea, no. Android 8.1 shoudl be tested with UIAutomator2 is my first thought. |
Can you explain this statement or provide a link to a place with more information? The readme.md for UIAutomator2 does not provide any reason this would be the case. |
@jlennox Are you able to get page source of this particular view via |
I ran |
I am also facing the same issue. It is intermittent and happening on Android 6, 7 & 8 OS versions. So it is not related to only Android 8.0. |
@viccky88 Because it appeared related in my case, what Chrome/webview versions are on those devices? |
@jlennox I am testing native app. |
hi guys, we experienced this issue after update to Android System Webview (61.0.3163.98). After we downgrade the webview and use 60 *we also use chromedriver 2.33 because 2.35 only support webview v.62) this issue not happening again. |
@imurchie @mykola-mokhnach This issue is still happening using uiautomator2. AccessibilityNodeInfoDumper.java will infinitely recurse on accessibility nodes which have a self referential tree, which appears to of become a thing in a newer version of Chrome. Appium version: 1.7.1
|
The issue inside Google's tracker: https://bugs.chromium.org/p/chromium/issues/detail?id=805014 This said, it being possible and happening, AccessibilityNodeInfoDumper.java should include a settable depth limit on recursion. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The problem
When establishing a new Chrome session Appium exits unexpectedly. The device logs show there was a StackOverflowError inside UiAutomatorTestRunner.
This is a continuation from issue #10126
Environment
Details
I am seeing this when starting a session for Chrome. The time stamps on the side of the two logs are from the same clock.
Updating my Nexus 5x to 8.1.0 (OPM5.171019.015, Feb 2018) and the latest Chrome 64.0.3282.137 appears to of triggered this behavior. Updating a another Nexus 5x from 7.x and an earlier chrome to be about the same has also caused this to begin happening on it. I do not see this happening on any of my other devices, which are predominately older versions of Android/Chrome.
Rebooting the devices does not change the outcome. It happens about 50% of the time regardless.
The issue is triggered by:
https://github.com/appium/appium-android-bootstrap/blob/master/bootstrap/src/io/appium/android/bootstrap/utils/TheWatchers.java#L51
The returned value and any side affects appear to be completely void piped? The only consumer is: https://github.com/appium/appium-android-bootstrap/blob/e0df190e35baccf31b4e2af81db75cff580631a1/bootstrap/src/io/appium/android/bootstrap/SocketServer.java#L140
Enabling the capability
disableAndroidWatchers
appears to "fix" the issue, but has the side effect of disabling what appears to be otherwise very nice condition checks: https://github.com/appium/appium-android-bootstrap/blob/master/bootstrap/src/com/android/uiautomator/common/UiWatchers.java#L39I do not know if what appears to be dead code that triggers this issue was removed/"fixed" if this issue would surface inside the other watchers.
Link to Appium logs
Device logs: https://gist.github.com/jlennox/b2936ba04f53f41916c3778331f10b36
Appium logs: https://gist.github.com/jlennox/3639901543c1347ed221484535cd6f4b
The text was updated successfully, but these errors were encountered: