[GH-ISSUE #19] Script travelling #17

Closed
opened 2026-03-02 23:37:21 +03:00 by kerem · 20 comments
Owner

Originally created by @GeikoHub on GitHub (Jun 12, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/19

Impossible to show the bug, it only appears on the phone screen but not on the cmd.

randomly, it goes on the phone galerie.
(even one time on my own profile, i can suppose that is "normal" to make a more human interaction like said in the notice)
I suppose that it's press the wrong key,
(the "+" instead of "back" or "search" key)
the script continue as nothing happens but the phone is totally elsewhere than it should be...
maybe resolution of the screen is different as it suppose to be in the script?

Originally created by @GeikoHub on GitHub (Jun 12, 2020). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/19 Impossible to show the bug, it only appears on the phone screen but not on the cmd. randomly, it goes on the phone galerie. (even one time on my own profile, i can suppose that is "normal" to make a more human interaction like said in the notice) I suppose that it's press the wrong key, (the "+" instead of "back" or "search" key) the script continue as nothing happens but the phone is totally elsewhere than it should be... maybe resolution of the screen is different as it suppose to be in the script?
kerem 2026-03-02 23:37:21 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@gvmturl commented on GitHub (Jun 13, 2020):

Could you please try to record the action for a better analysis of the issue you are facing?

<!-- gh-comment-id:643584478 --> @gvmturl commented on GitHub (Jun 13, 2020): Could you please try to record the action for a better analysis of the issue you are facing?
Author
Owner

@GeikoHub commented on GitHub (Jun 13, 2020):

not easy cause it needs to be a video record of the phone screen to really see what happen.
And in fact, it appear ramdomly, so need to check every seconds and start record when happen ^^"

By the way, you'll don't see more than the phone trying to like and goes into gallery ("+" key)
Then it act without any sens until press the back button of the script to get back on follower list.

I didn't let it make all the action to prevent a wrong post...

<!-- gh-comment-id:643603577 --> @GeikoHub commented on GitHub (Jun 13, 2020): not easy cause it needs to be a video record of the phone screen to really see what happen. And in fact, it appear ramdomly, so need to check every seconds and start record when happen ^^" By the way, you'll don't see more than the phone trying to like and goes into gallery ("+" key) Then it act without any sens until press the back button of the script to get back on follower list. I didn't let it make all the action to prevent a wrong post...
Author
Owner

@gvmturl commented on GitHub (Jun 13, 2020):

not easy cause it needs to be a video record of the phone screen to really see what happen.
And in fact, it appear ramdomly, so need to check every seconds and start record when happen ^^"

By the way, you'll don't see more than the phone trying to like and goes into gallery ("+" key)
Then it act without any sens until press the back button of the script to get back on follower list.

I didn't let it make all the action to prevent a wrong post...

Don t android has the option record screen by default?

<!-- gh-comment-id:643607024 --> @gvmturl commented on GitHub (Jun 13, 2020): > not easy cause it needs to be a video record of the phone screen to really see what happen. > And in fact, it appear ramdomly, so need to check every seconds and start record when happen ^^" > > By the way, you'll don't see more than the phone trying to like and goes into gallery ("+" key) > Then it act without any sens until press the back button of the script to get back on follower list. > > I didn't let it make all the action to prevent a wrong post... Don t android has the option record screen by default?
Author
Owner

@GeikoHub commented on GitHub (Jun 13, 2020):

not on this old one....
Have that just happened but only screenshots, don't think it'll really help but nothing better at this time

IMG_20200613_130708__01
IMG_20200613_130717__01

<!-- gh-comment-id:643609329 --> @GeikoHub commented on GitHub (Jun 13, 2020): not on this old one.... Have that just happened but only screenshots, don't think it'll really help but nothing better at this time ![IMG_20200613_130708__01](https://user-images.githubusercontent.com/66672318/84567331-3e3bab00-ad78-11ea-8dba-7507e4a5ffdf.jpg) ![IMG_20200613_130717__01](https://user-images.githubusercontent.com/66672318/84567332-3f6cd800-ad78-11ea-8ec9-e1ab892163c9.jpg)
Author
Owner

@gvmturl commented on GitHub (Jun 13, 2020):

Any app for recording screen?

What is the exactly message on terminal when it opens gallery? Try to catch.

<!-- gh-comment-id:643610432 --> @gvmturl commented on GitHub (Jun 13, 2020): Any app for recording screen? What is the exactly message on terminal when it opens gallery? Try to catch.
Author
Owner

@GeikoHub commented on GitHub (Jun 13, 2020):

Not enought space or memory to launch/install any other app...
(uninstall everything just to can install insta)
But not seems to make this bug with another phone (my more recent one i mean)

And i don't saw any "precise" thing.
Just as a "miss click" that put in gallery instead of liking a pic.
Was for that reason that i said this maybe cause by the resolution of the screen (to make understandable for you).

<!-- gh-comment-id:643611169 --> @GeikoHub commented on GitHub (Jun 13, 2020): Not enought space or memory to launch/install any other app... (uninstall everything just to can install insta) But not seems to make this bug with another phone (my more recent one i mean) And i don't saw any "precise" thing. Just as a "miss click" that put in gallery instead of liking a pic. Was for that reason that i said this maybe cause by the resolution of the screen (to make understandable for you).
Author
Owner

@GeikoHub commented on GitHub (Jun 13, 2020):

now it did that after get on gallery

Capture

<!-- gh-comment-id:643613125 --> @GeikoHub commented on GitHub (Jun 13, 2020): now it did that after get on gallery ![Capture](https://user-images.githubusercontent.com/66672318/84568095-68dc3280-ad7d-11ea-8e48-fc347e5d03e7.JPG)
Author
Owner

@gvmturl commented on GitHub (Jun 13, 2020):

now it did that after get on gallery

Capture

#21

<!-- gh-comment-id:643616432 --> @gvmturl commented on GitHub (Jun 13, 2020): > now it did that after get on gallery > > > > ![Capture](https://user-images.githubusercontent.com/66672318/84568095-68dc3280-ad7d-11ea-8e48-fc347e5d03e7.JPG) > > #21
Author
Owner

@GeikoHub commented on GitHub (Jun 13, 2020):

all right!
Sorry you're already on it so ;)

<!-- gh-comment-id:643616708 --> @GeikoHub commented on GitHub (Jun 13, 2020): all right! Sorry you're already on it so ;)
Author
Owner

@gvmturl commented on GitHub (Jun 13, 2020):

all right!

Sorry you're already on it so ;)

In my case it seems to happens when open a IGTV video.... then restart ig and script... i think that it’s a way found to solve “IGTV BUG” #6 not sure. is it not the same for you?

Thank you.

<!-- gh-comment-id:643617255 --> @gvmturl commented on GitHub (Jun 13, 2020): > all right! > > Sorry you're already on it so ;) In my case it seems to happens when open a IGTV video.... then restart ig and script... i think that it’s a way found to solve “IGTV BUG” #6 not sure. is it not the same for you? Thank you.
Author
Owner

@GeikoHub commented on GitHub (Jun 13, 2020):

Don't know if it always appear when opening IGTV but yes i've seen this too.
And you're right, it's restarting IG and the script when happen

<!-- gh-comment-id:643617505 --> @GeikoHub commented on GitHub (Jun 13, 2020): Don't know if it always appear when opening IGTV but yes i've seen this too. And you're right, it's restarting IG and the script when happen
Author
Owner

@gvmturl commented on GitHub (Jun 13, 2020):

Don't know if it always appear when opening IGTV but yes i've seen this too.

And you're right, it's restarting IG and the script when happen

Let’s keep observing it and waiting a solution for handling this error message.

Thanks for sharing your experiences.

<!-- gh-comment-id:643620052 --> @gvmturl commented on GitHub (Jun 13, 2020): > Don't know if it always appear when opening IGTV but yes i've seen this too. > > And you're right, it's restarting IG and the script when happen Let’s keep observing it and waiting a solution for handling this error message. Thanks for sharing your experiences.
Author
Owner

@alexal1 commented on GitHub (Jun 13, 2020):

I had similar bug, but in my case there were accidental presses on Back arrow in profile instead of Like button. Explanation was quite funny – Like button sometimes appeared to be right below the Back arrow.

Can't the same happen in your case? Is it possible that Like button is exactly under the "+" button?

<!-- gh-comment-id:643650028 --> @alexal1 commented on GitHub (Jun 13, 2020): I had similar bug, but in my case there were accidental presses on Back arrow in profile instead of Like button. Explanation was quite funny – Like button sometimes appeared to be right below the Back arrow. Can't the same happen in your case? Is it possible that Like button is exactly under the "+" button?
Author
Owner

@jonap339 commented on GitHub (Jun 13, 2020):

The exact same thing happened to me. I'm going to run again and if I can detect it, I pass the data. @alexal1 , what do you need me to attach when I detect this problem?

<!-- gh-comment-id:643654716 --> @jonap339 commented on GitHub (Jun 13, 2020): The exact same thing happened to me. I'm going to run again and if I can detect it, I pass the data. @alexal1 , what do you need me to attach when I detect this problem?
Author
Owner

@alexal1 commented on GitHub (Jun 14, 2020):

@jonap339

The exact same thing happened to me

Do you mean unexpected backpress? I thought I've fixed this bug finally...
Well, I think screenshots of the state where it happens can help.

<!-- gh-comment-id:643813075 --> @alexal1 commented on GitHub (Jun 14, 2020): @jonap339 > The exact same thing happened to me Do you mean unexpected backpress? I thought I've fixed this bug finally... Well, I think screenshots of the state where it happens can help.
Author
Owner

@jonap339 commented on GitHub (Jun 16, 2020):

After the update I have not seen it anymore! Excellent !!

<!-- gh-comment-id:644817837 --> @jonap339 commented on GitHub (Jun 16, 2020): After the update I have not seen it anymore! Excellent !!
Author
Owner

@gvmturl commented on GitHub (Jun 18, 2020):

Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 438, in wrapper
    return _method_obj(*args, **kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 135, in __call__
    "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"])
uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.FrameLayout, RESOURCE_ID=com.instagram.android:id/action_bar_container]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "insomniac.py", line 91, in _job_handle_bloggers
    handle_blogger(device, blogger, likes_count, storage, _on_like, on_interaction)
  File "/home/pi/Insomniac/action_handle_blogger.py", line 18, in handle_blogger
    _iterate_over_followers(device, interaction, storage, on_interaction)
  File "/home/pi/Insomniac/action_handle_blogger.py", line 69, in _iterate_over_followers
    interaction_succeed = interaction(device)
  File "/home/pi/Insomniac/action_handle_blogger.py", line 116, in _interact_with_user
    if not _open_photo_and_like(device, row, column, on_like):
  File "/home/pi/Insomniac/action_handle_blogger.py", line 146, in _open_photo_and_like
    action_bar_bottom = action_bar.bounds['bottom']
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 934, in __getattr__
    info = self.info
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 945, in info
    return self.jsonrpc.objInfo(self.selector)
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 458, in wrapper
    return _method_obj(*args, **kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 135, in __call__
    "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"])
uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.FrameLayout, RESOURCE_ID=com.instagram.android:id/action_bar_container]

When IGTV opens then close and reopen instagram and keep working...

<!-- gh-comment-id:646146102 --> @gvmturl commented on GitHub (Jun 18, 2020): ``` Traceback (most recent call last): File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 438, in wrapper return _method_obj(*args, **kwargs) File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 135, in __call__ "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"]) uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.FrameLayout, RESOURCE_ID=com.instagram.android:id/action_bar_container] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "insomniac.py", line 91, in _job_handle_bloggers handle_blogger(device, blogger, likes_count, storage, _on_like, on_interaction) File "/home/pi/Insomniac/action_handle_blogger.py", line 18, in handle_blogger _iterate_over_followers(device, interaction, storage, on_interaction) File "/home/pi/Insomniac/action_handle_blogger.py", line 69, in _iterate_over_followers interaction_succeed = interaction(device) File "/home/pi/Insomniac/action_handle_blogger.py", line 116, in _interact_with_user if not _open_photo_and_like(device, row, column, on_like): File "/home/pi/Insomniac/action_handle_blogger.py", line 146, in _open_photo_and_like action_bar_bottom = action_bar.bounds['bottom'] File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 934, in __getattr__ info = self.info File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 945, in info return self.jsonrpc.objInfo(self.selector) File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 458, in wrapper return _method_obj(*args, **kwargs) File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 135, in __call__ "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"]) uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.FrameLayout, RESOURCE_ID=com.instagram.android:id/action_bar_container] ``` When IGTV opens then close and reopen instagram and keep working...
Author
Owner

@gvmturl commented on GitHub (Jun 18, 2020):

Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 438, in wrapper
    return _method_obj(*args, **kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 135, in __call__
    "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"])
uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.LinearLayout, RESOURCE_ID=com.instagram.android:id/row_profile_header_followers_container]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "insomniac.py", line 91, in _job_handle_bloggers
    handle_blogger(device, blogger, likes_count, storage, _on_like, on_interaction)
  File "/home/pi/Insomniac/action_handle_blogger.py", line 17, in handle_blogger
    _open_user_followers(device, username)
  File "/home/pi/Insomniac/action_handle_blogger.py", line 39, in _open_user_followers
    followers_button.click.wait()
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 76, in __call__
    return self.func(*args, **kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 975, in _click
    return self.jsonrpc.clickAndWaitForNewWindow(self.selector, timeout)
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 458, in wrapper
    return _method_obj(*args, **kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 135, in __call__
    "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"])
uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.LinearLayout, RESOURCE_ID=com.instagram.android:id/row_profile_header_followers_container]

got stacked here dont know why... infinity loop taking screenshot of it...
Crash-2020-06-18-14-42-21

<!-- gh-comment-id:646213267 --> @gvmturl commented on GitHub (Jun 18, 2020): ``` Traceback (most recent call last): File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 438, in wrapper return _method_obj(*args, **kwargs) File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 135, in __call__ "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"]) uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.LinearLayout, RESOURCE_ID=com.instagram.android:id/row_profile_header_followers_container] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "insomniac.py", line 91, in _job_handle_bloggers handle_blogger(device, blogger, likes_count, storage, _on_like, on_interaction) File "/home/pi/Insomniac/action_handle_blogger.py", line 17, in handle_blogger _open_user_followers(device, username) File "/home/pi/Insomniac/action_handle_blogger.py", line 39, in _open_user_followers followers_button.click.wait() File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 76, in __call__ return self.func(*args, **kwargs) File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 975, in _click return self.jsonrpc.clickAndWaitForNewWindow(self.selector, timeout) File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 458, in wrapper return _method_obj(*args, **kwargs) File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/__init__.py", line 135, in __call__ "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"]) uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.LinearLayout, RESOURCE_ID=com.instagram.android:id/row_profile_header_followers_container] ``` got stacked here dont know why... infinity loop taking screenshot of it... ![Crash-2020-06-18-14-42-21](https://user-images.githubusercontent.com/52518293/85054872-17fc7d80-b173-11ea-8a7a-643435058ee3.png)
Author
Owner

@GeikoHub commented on GitHub (Jun 19, 2020):

the problem appeared to be solved until yesterday,
i had the problem back but haven't screenshot the traceback,
i'll report it when i'll see it again!

<!-- gh-comment-id:646533152 --> @GeikoHub commented on GitHub (Jun 19, 2020): the problem appeared to be solved until yesterday, i had the problem back but haven't screenshot the traceback, i'll report it when i'll see it again!
Author
Owner

@alexal1 commented on GitHub (Jun 24, 2020):

@gvmturl @GeikoHub probably fixed, feel free to reopen if appears. But in that case attach stacktrace and screenshot, please.

<!-- gh-comment-id:649032827 --> @alexal1 commented on GitHub (Jun 24, 2020): @gvmturl @GeikoHub probably fixed, feel free to reopen if appears. But in that case attach stacktrace and screenshot, please.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Insomniac#17
No description provided.