[GH-ISSUE #82] Stalls on Press profile #522

Closed
opened 2026-03-13 21:46:48 +03:00 by kerem · 21 comments
Owner

Originally created by @cryptocxeq on GitHub (Aug 14, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/82

-------- START: 2020-08-14 21:08:47.353789 --------
[08/14 21:08:47] Open Instagram app
[08/14 21:08:48] Sleep for 3 seconds
[08/14 21:08:51] Press profile

Hangs forever there...

Trying to run it on a s5

Originally created by @cryptocxeq on GitHub (Aug 14, 2020). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/82 -------- START: 2020-08-14 21:08:47.353789 -------- [08/14 21:08:47] Open Instagram app [08/14 21:08:48] Sleep for 3 seconds [08/14 21:08:51] Press profile Hangs forever there... Trying to run it on a s5
kerem closed this issue 2026-03-13 21:46:53 +03:00
Author
Owner

@cryptocxeq commented on GitHub (Aug 14, 2020):

I tried on s10 too and did the same thing

<!-- gh-comment-id:674031730 --> @cryptocxeq commented on GitHub (Aug 14, 2020): I tried on s10 too and did the same thing
Author
Owner

@cryptocxeq commented on GitHub (Aug 14, 2020):

except in s10 says

[08/14 21:35:28] Open Instagram app
Warning: Activity not started, intent has been delivered to currently running top-most instance.
[08/14 21:35:28] Sleep for 2 seconds
[08/14 21:35:30] Press profile

<!-- gh-comment-id:674032233 --> @cryptocxeq commented on GitHub (Aug 14, 2020): except in s10 says [08/14 21:35:28] Open Instagram app Warning: Activity not started, intent has been delivered to currently running top-most instance. [08/14 21:35:28] Sleep for 2 seconds [08/14 21:35:30] Press profile
Author
Owner

@Eimuex commented on GitHub (Aug 14, 2020):

Yes, same problem.

<!-- gh-comment-id:674250187 --> @Eimuex commented on GitHub (Aug 14, 2020): Yes, same problem.
Author
Owner

@alexal1 commented on GitHub (Aug 16, 2020):

Seems that Instagram started UI update. Please try on this branch guys #85

<!-- gh-comment-id:674512848 --> @alexal1 commented on GitHub (Aug 16, 2020): Seems that Instagram started UI update. Please try on this branch guys #85
Author
Owner

@Eimuex commented on GitHub (Aug 16, 2020):

[08/16 14:27:14] Open Instagram app
[08/16 14:27:14] Sleep for 2 seconds
[08/16 14:27:16] Press profile
[08/16 14:27:17] Standard way of navigation failed, trying another one...
[08/16 14:27:17] Cannot find profile button. Switch to English please.
Traceback (most recent call last):
File "insomniac.py", line 421, in
main()
File "insomniac.py", line 93, in main
session_state.my_following_count = get_my_profile_info(device)
File "/home/pi/Insomniac-fix_navigation_on_some_devices/src/action_get_my_profile_info.py", line 8, in get_my_profile_info
navigate(device, Tabs.PROFILE)
File "/home/pi/Insomniac-fix_navigation_on_some_devices/src/navigation.py", line 13, in navigate
_navigate_alternative(device, tab)
File "/home/pi/Insomniac-fix_navigation_on_some_devices/src/navigation.py", line 38, in _navigate_alternative
raise NavigationException("Cannot find " + tab_name + " button.")
src.navigation.NavigationException: Cannot find profile button.

<!-- gh-comment-id:674520847 --> @Eimuex commented on GitHub (Aug 16, 2020): [08/16 14:27:14] Open Instagram app [08/16 14:27:14] Sleep for 2 seconds [08/16 14:27:16] Press profile [08/16 14:27:17] Standard way of navigation failed, trying another one... [08/16 14:27:17] Cannot find profile button. Switch to English please. Traceback (most recent call last): File "insomniac.py", line 421, in <module> main() File "insomniac.py", line 93, in main session_state.my_following_count = get_my_profile_info(device) File "/home/pi/Insomniac-fix_navigation_on_some_devices/src/action_get_my_profile_info.py", line 8, in get_my_profile_info navigate(device, Tabs.PROFILE) File "/home/pi/Insomniac-fix_navigation_on_some_devices/src/navigation.py", line 13, in navigate _navigate_alternative(device, tab) File "/home/pi/Insomniac-fix_navigation_on_some_devices/src/navigation.py", line 38, in _navigate_alternative raise NavigationException("Cannot find " + tab_name + " button.") src.navigation.NavigationException: Cannot find profile button.
Author
Owner

@Eimuex commented on GitHub (Aug 16, 2020):

When I tried second time just stalls like before

<!-- gh-comment-id:674520946 --> @Eimuex commented on GitHub (Aug 16, 2020): When I tried second time just stalls like before
Author
Owner

@cryptocxeq commented on GitHub (Aug 16, 2020):

I experienced no difference I think

<!-- gh-comment-id:674568176 --> @cryptocxeq commented on GitHub (Aug 16, 2020): I experienced no difference I think
Author
Owner

@alexal1 commented on GitHub (Aug 17, 2020):

@Eimuex did you switch to English locale?

<!-- gh-comment-id:674788357 --> @alexal1 commented on GitHub (Aug 17, 2020): @Eimuex did you switch to English locale?
Author
Owner

@Eimuex commented on GitHub (Aug 17, 2020):

@alexal1 Everything is in English since I started using Insomniac

UPDATE: When I manually tap search, bot gets back to profile and starts to work normally but slower (waits longer between likes scrolls etc). That's on version 1.9.0

<!-- gh-comment-id:674806631 --> @Eimuex commented on GitHub (Aug 17, 2020): @alexal1 Everything is in English since I started using Insomniac UPDATE: When I manually tap search, bot gets back to profile and starts to work normally but slower (waits longer between likes scrolls etc). That's on version 1.9.0
Author
Owner

@alexal1 commented on GitHub (Aug 17, 2020):

That's on version 1.9.0

Actually there's no difference on which version you'll try it. It's some Instagram update that broke the logic.

<!-- gh-comment-id:674855636 --> @alexal1 commented on GitHub (Aug 17, 2020): > That's on version 1.9.0 Actually there's no difference on which version you'll try it. It's some Instagram update that broke the logic.
Author
Owner

@alexal1 commented on GitHub (Aug 17, 2020):

We've found out that migration to uiautomator2 library will fix this problem. Please wait a couple of days, soon the script will work perfectly.

<!-- gh-comment-id:674953706 --> @alexal1 commented on GitHub (Aug 17, 2020): We've found out that migration to **uiautomator2** library will fix this problem. Please wait a couple of days, soon the script will work perfectly.
Author
Owner

@cryptocxeq commented on GitHub (Aug 18, 2020):

thanks alexal1

<!-- gh-comment-id:675197896 --> @cryptocxeq commented on GitHub (Aug 18, 2020): thanks alexal1
Author
Owner

@antonrifco commented on GitHub (Aug 18, 2020):

@alexal1 should we uninstall the uiautomator ? or both lib can stay?

<!-- gh-comment-id:675250250 --> @antonrifco commented on GitHub (Aug 18, 2020): @alexal1 should we uninstall the uiautomator ? or both lib can stay?
Author
Owner

@alexal1 commented on GitHub (Aug 18, 2020):

@antonrifco both can stay, I'll update README when update comes

<!-- gh-comment-id:675618657 --> @alexal1 commented on GitHub (Aug 18, 2020): @antonrifco both can stay, I'll update README when update comes
Author
Owner

@ketwong commented on GitHub (Aug 20, 2020):

For a quick fix, uninstall instagram and install an older version of instagram like 3-5 version behind of current version now.

<!-- gh-comment-id:677505167 --> @ketwong commented on GitHub (Aug 20, 2020): For a quick fix, uninstall instagram and install an older version of instagram like 3-5 version behind of current version now.
Author
Owner

@cryptocxeq commented on GitHub (Aug 20, 2020):

i did try that on my device with 148 and 100 and neither worked but ymmv

<!-- gh-comment-id:677517376 --> @cryptocxeq commented on GitHub (Aug 20, 2020): i did try that on my device with 148 and 100 and neither worked but ymmv
Author
Owner

@philip-ulrich commented on GitHub (Aug 21, 2020):

When this happens for me, my quick fix is to click on the heart and on the profile again as quickly as possible. Fixes the issue and no further issues for the rest of the run. Should be an easy fix until the proper one is released.

<!-- gh-comment-id:678552282 --> @philip-ulrich commented on GitHub (Aug 21, 2020): When this happens for me, my quick fix is to click on the heart and on the profile again as quickly as possible. Fixes the issue and no further issues for the rest of the run. Should be an easy fix until the proper one is released.
Author
Owner

@cryptocxeq commented on GitHub (Aug 22, 2020):

ok i did give that a go maybe im doing the wrong thing but it didnt seem to work for me.
Can you tell me in more detail what you mean? Whats the exact process. Wait for the Message about profile to appear while already on the profile button? then tab off and back on quickly as soon as it appears?

<!-- gh-comment-id:678564194 --> @cryptocxeq commented on GitHub (Aug 22, 2020): ok i did give that a go maybe im doing the wrong thing but it didnt seem to work for me. Can you tell me in more detail what you mean? Whats the exact process. Wait for the Message about profile to appear while already on the profile button? then tab off and back on quickly as soon as it appears?
Author
Owner

@philip-ulrich commented on GitHub (Aug 22, 2020):

Yeah, so for me, it stops there. I wait like 30 seconds to make sure it's actually stuck. Then click heart, and click profile within about 0.5-2 seconds time. Then it reads follower count and proceeds.

<!-- gh-comment-id:678581106 --> @philip-ulrich commented on GitHub (Aug 22, 2020): Yeah, so for me, it stops there. I wait like 30 seconds to make sure it's actually stuck. Then click heart, and click profile within about 0.5-2 seconds time. Then it reads follower count and proceeds.
Author
Owner

@cryptocxeq commented on GitHub (Aug 22, 2020):

ok no worries doesnt seem to work for me , maybe because it sounds like your version works at least some of the time (?) but mine works none of the time and this error happens at the start

<!-- gh-comment-id:678605538 --> @cryptocxeq commented on GitHub (Aug 22, 2020): ok no worries doesnt seem to work for me , maybe because it sounds like your version works at least some of the time (?) but mine works none of the time and this error happens at the start
Author
Owner

@alexal1 commented on GitHub (Aug 22, 2020):

Thanks for waiting! I finally published v2.0.0 and hope that this issue is fixed by this update. Please reopen if not.

<!-- gh-comment-id:678631258 --> @alexal1 commented on GitHub (Aug 22, 2020): Thanks for waiting! I finally published `v2.0.0` and hope that this issue is fixed by this update. Please reopen if not.
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#522
No description provided.