bot icon indicating copy to clipboard operation
bot copied to clipboard

"Press back Button" never ending loop

Open n0poti opened this issue 1 year ago • 4 comments

Tried various Android Version and Instagram versions. Always get the same problem when initiating the bot:

[08/15 12:34:14] DEBUG | Navigating to main account... [08/15 12:34:44] DEBUG | Press back button. [08/15 12:34:45] DEBUG | 0.90s sleep [08/15 12:35:16] DEBUG | Press back button. [08/15 12:35:17] DEBUG | 2.11s sleep [08/15 12:35:48] DEBUG | Press back button. etc...

Screenshot 2024-08-15 123800

Environment:

  • GramAddict version: 3.2.12
  • Device Model/Emulator Type: uiautomator2 2.16.14
  • Android Version: 12
  • Instagram Version: 299.0.0.34.111

Relevant Logs: [08/15 12:34:14] DEBUG | Navigating to main account... [08/15 12:34:44] DEBUG | Press back button. [08/15 12:34:45] DEBUG | 0.90s sleep [08/15 12:35:16] DEBUG | Press back button. [08/15 12:35:17] DEBUG | 2.11s sleep [08/15 12:35:48] DEBUG | Press back button. [08/15 12:35:49] DEBUG | 1.98s sleep [08/15 12:36:21] DEBUG | Press back button. [08/15 12:36:22] DEBUG | 2.07s sleep [08/15 12:36:54] DEBUG | Press back button. [08/15 12:36:55] DEBUG | 0.99s sleep [08/15 12:37:25] DEBUG | Press back button. [08/15 12:37:26] DEBUG | 1.90s sleep [08/15 12:37:58] DEBUG | Press back button. [08/15 12:37:59] DEBUG | 2.27s sleep [08/15 12:38:30] DEBUG | Press back button. [08/15 12:38:31] DEBUG | 1.46s sleep

Thanks for your help.

n0poti avatar Aug 15 '24 18:08 n0poti

Same here 🫠

paulyoyo avatar Oct 09 '24 04:10 paulyoyo

Same issue here as well!

However, I am using an actual android device via ADB. I think it might be a problem with the instagram version

image

KnowhereFern avatar Oct 15 '24 01:10 KnowhereFern

The problem is in the file core/views.py line 1553

def click_on_avatar(self):
    while True:
        if self._new_ui_profile_button():
            break
        if self._old_ui_profile_button():
            break
        self.device.back()

I understand that this should click the avatar but it doesn't and keeps in the while loop forever.

I've commented all the lines within the function, click the avatar myself and know it's working.

I'm using the ig version 300.0.0.29.110

Python 3.9.2

Android Debug Bridge version 1.0.41 Version 28.0.2-debian

Raspberry Pi 4 Model B Rev 1.5 Raspbian GNU/Linux 11 (bullseye)

Any suggestions on how to fix it?

paulyoyo avatar Oct 17 '24 01:10 paulyoyo

You're on wrong API. Use android 10, API 29, which has the three buttons including the back button.

cavit99 avatar Jan 11 '25 23:01 cavit99