Skip to content
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

"Press back Button" never ending loop #414

Open
n0poti opened this issue Aug 15, 2024 · 3 comments
Open

"Press back Button" never ending loop #414

n0poti opened this issue Aug 15, 2024 · 3 comments

Comments

@n0poti
Copy link

n0poti commented Aug 15, 2024

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.

@paulyoyo
Copy link

paulyoyo commented Oct 9, 2024

Same here 🫠

@KnowhereFern
Copy link

KnowhereFern commented Oct 15, 2024

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

@paulyoyo
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants