mirror of
https://github.com/alexal1/Insomniac.git
synced 2026-04-26 10:05:50 +03:00
[GH-ISSUE #94] Need to scroll now #529
Labels
No labels
bug
duplicate
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Insomniac#529
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Orezhon on GitHub (Aug 26, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/94
The script always crashes when it displays: "Need to scroll now"
[08/26 21:09:43] Next item not found: probably reached end of the screen.
[08/26 21:09:43] Need to scroll now
[08/26 21:09:55] Traceback (most recent call last):
File "insomniac.py", line 379, in wrapper
func(*args, **kwargs)
File "insomniac.py", line 191, in job
on_interaction)
File "/home/pi/Insomniac/src/action_handle_blogger.py", line 39, in handle_blogger
_iterate_over_followers(device, interaction, is_follow_limit_reached, storage, on_interaction, is_myself)
File "/home/pi/Insomniac/src/action_handle_blogger.py", line 159, in _iterate_over_followers
list_view.scroll.toEnd(max_swipes=1)
File "/home/pi/.local/lib/python3.7/site-packages/uiautomator2/_selector.py", line 575, in call
max_swipes, steps)
File "/home/pi/.local/lib/python3.7/site-packages/uiautomator2/init.py", line 435, in call
http_timeout)
File "/home/pi/.local/lib/python3.7/site-packages/uiautomator2/init.py", line 441, in _jsonrpc_retry_call
return self._jsonrpc_call(*args, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/uiautomator2/init.py", line 513, in _jsonrpc_call
raise err
uiautomator2.exceptions.UiObjectNotFoundError: -32001 Jsonrpc error: <android.support.test.uiautomator.UiObjectNotFoundException> data: UiSelector[CLASS=android.widget.ListView, RESOURCE_ID=android:id/list], method: scrollToEnd
@Orezhon commented on GitHub (Aug 26, 2020):
Log in attached
log.txt
@alexal1 commented on GitHub (Aug 26, 2020):
As I see by logs it crashes only after second time it writes this. Any idea what's the difference?
@alexal1 commented on GitHub (Aug 26, 2020):
If this didn't happen before, then maybe there are some problems with device connection? As I see in logs, there's "HTTPConnectionPool(host='localhost', port=42723): Read timed out. (read timeout=10)". Have you already tried these advices https://www.patreon.com/posts/problems-with-to-38702683?
@Orezhon commented on GitHub (Aug 26, 2020):
I tested on Raspberry and Windows, with different USB ports, and with different cables. The result is always the same, the first or second time of "need to scroll" crashes (always).
The script worked fine for me for months before the latest version.
@alexal1 commented on GitHub (Aug 27, 2020):
Ok, got it.
Please try on this branch #95.
If we don't find solution, I will simply add possibility to the script to work on uiautomator1 as before.
@alexal1 commented on GitHub (Sep 6, 2020):
Please try with the
--oldflag to run it on the old version ofuiautomator.