So I am using Appium (1.4.16 & 1.5.3), and get an internal uiautomator exception in Android app “Querycontroller cannot proceed when root node is null” the app freezes and it eventually crashes, but this issue is not manually reproducible.
This is the log when root node is null:
08-11 10:35:34.475 24982 24993 W QueryController: parent = android.view.accessibility.AccessibilityNodeInfo@8000744a; boundsInParent: Rect(0, 0 - 1440, 2560); boundsInScreen: Rect(0, 0 - 1440, 2560); packageName: com.sec.android.app.launcher; className: android.widget.FrameLayout; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: null; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_UNKNOWN - null]
08-11 10:35:38.535 25334 25334 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:35:42.615 25334 25334 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:35:50.525 25334 25345 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:35:55.785 25334 25345 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:36:01.035 25334 25345 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:36:06.285 25334 25345 E QueryController: Cannot proceed when root node is null. Aborted search
08-11 10:36:10.945 25334 25345 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:36:16.205 25334 25345 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:36:21.455 25334 25345 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:36:26.715 25334 25345 E QueryController: Cannot proceed when root node is null. Aborted search
08-11 10:36:31.715 25334 25334 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:36:36.965 25334 25334 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:36:42.215 25334 25334 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:36:42.485 25334 25345 I QueryController: Matched selector: UiSelector[CONTAINS_TEXT=isn’t responding., PACKAGE NAME=android] <<==>> [android.view.accessibility.AccessibilityNodeInfo@80008727; boundsInParent: Rect(0, 0 - 1016, 507); boundsInScreen: Rect(212, 970 - 1228, 1477); packageName: android; className: android.widget.TextView; text: Nick Jr. Dogfood isn’t responding.
08-11 10:36:42.485 25334 25345 I QueryController:
08-11 10:36:42.485 25334 25345 I QueryController: Do you want to close it?; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: android:id/message; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_NEXT_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_SET_SELECTION - null, AccessibilityAction: ACTION_UNKNOWN - null]]
08-11 10:36:42.495 25334 25345 I QueryController: Matched selector: UiSelector[CONTAINS_TEXT=isn’t responding., PACKAGE NAME=android] <<==>> [android.view.accessibility.AccessibilityNodeInfo@80008727; boundsInParent: Rect(0, 0 - 1016, 507); boundsInScreen: Rect(212, 970 - 1228, 1477); packageName: android; className: android.widget.TextView; text: Nick Jr. Dogfood isn’t responding.
08-11 10:36:42.495 25334 25345 I QueryController:
08-11 10:36:42.495 25334 25345 I QueryController: Do you want to close it?; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: android:id/message; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_NEXT_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_SET_SELECTION - null, AccessibilityAction: ACTION_UNKNOWN - null]]
08-11 10:36:42.505 25334 25345 I QueryController: Matched selector: UiSelector[TEXT=OK, ENABLED=true] <<==>> [android.view.accessibility.AccessibilityNodeInfo@80008ea9; boundsInParent: Rect(524246, 0 - 524450, 144); boundsInScreen: Rect(1096, 1509 - 1300, 1653); packageName: android; className: android.widget.Button; text: OK; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: android:id/button1; checkable: false; checked: false; focusable: true; focused: false; selected: false; clickable: true; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_FOCUS - null, AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_CLICK - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_NEXT_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_SET_SELECTION - null, AccessibilityAction: ACTION_UNKNOWN - null]]
08-11 10:36:42.515 25334 25345 I QueryController: Matched selector: UiSelector[TEXT=OK, ENABLED=true] <<==>> [android.view.accessibility.AccessibilityNodeInfo@80008ea9; boundsInParent: Rect(524246, 0 - 524450, 144); boundsInScreen: Rect(1096, 1509 - 1300, 1653); packageName: android; className: android.widget.Button; text: OK; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: android:id/button1; checkable: false; checked: false; focusable: true; focused: false; selected: false; clickable: true; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_FOCUS - null, AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_CLICK - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_NEXT_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_SET_SELECTION - null, AccessibilityAction: ACTION_UNKNOWN - null]]
08-11 10:36:49.705 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:36:49.955 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:36:51.415 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:37:01.665 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:37:06.925 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:37:12.175 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:37:17.425 25701 25713 E QueryController: Cannot proceed when root node is null. Aborted search
08-11 10:37:22.185 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:37:27.435 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:37:32.695 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:37:37.945 25701 25713 E QueryController: Cannot proceed when root node is null. Aborted search
08-11 10:37:42.945 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:37:48.195 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
08-11 10:37:53.445 25701 25713 E QueryController: Got null root node from accessibility - Retrying…
App is able to launch but then all of a sudden app freezes and eventually crashes; any ideas would be appreciated.