alexal1 / Insomniac

Instagram bot for automated Instagram interaction using Android device via ADB
https://insomniac-bot.com
MIT License
687 stars 159 forks source link

Issue at each launch #342

Open flodes80 opened 3 years ago

flodes80 commented 3 years ago

Hello,

I have an issue since many months that make Insomniac crashes every time.

It seems that the crash also make the dump of hierarchy crash so impossible to have it.

Here is the logs and some screenshots Insomniac.log screenshot screenshot

alexal1 commented 3 years ago

Seems that it's a uiautomator2 issue (https://github.com/openatx/uiautomator2/issues/207). Try to

  1. Upgrade uiautomator2 to newer version pip install uiautomator2 --upgrade
  2. If 1 won't help, try to run the script with the --old flag (runs on first version of uiautomator)
flodes80 commented 3 years ago

Hi,

Tried first tip and didn't work (same error) The second give me this new error:

Insomniac` v3.7.14

Hi! Since of v3.1.0 all core features in this project are free to use. You may want to get more fine grained control over the bot via these features:

  • Filtering - skip unwanted accounts by various parameters
  • Scrapping - technique that makes interactions significantly safer and faster
  • Warmup - interact with your feed and Explore several minutes before session to behave more like a human
  • Working hours - the script will wait till specified hours before each session
  • Removing mass followers - automate "cleaning" you accountActivate by supporting our small team: https://insomniac-bot.com/activate/

Using insomniac session-manager without extra-features [06/23 07:16:52] Checking your Internet speed to adjust the script speed, please wait for a minute... [06/23 07:16:52] (use --no-speed-check to skip this check) [06/23 07:17:15] Download speed 61.99 Mbit/s, upload speed 71.02 Mbit/s [06/23 07:17:15] Sleep range will be from 1.00 to 3.00 seconds Looking for ADB devices... Connected devices via adb: 1. That's ok. [06/23 07:17:17] Using uiautomator v1 [06/23 07:17:17] Instagram version: 193.0.0.45.120 [06/23 07:17:17] Running Insomniac with the "interact" action. [06/23 07:17:17] Successful interactions limit per source: 70 [06/23 07:17:17] Interactions limit per source: 140 [06/23 07:17:17] Total likes limit: 175 [06/23 07:17:17] Total comments limit: 50

Caught an exception:

[06/23 07:17:20] Error - alive attribute not found! Traceback (most recent call last): File "/home/pi/.local/lib/python3.7/site-packages/insomniac/session.py", line 255, in run self.start_session(args, device_wrapper, app_version, save_profile_info=True) File "/home/pi/.local/lib/python3.7/site-packages/insomniac/session.py", line 177, in start_session device_wrapper.get().wake_up() File "/home/pi/.local/lib/python3.7/site-packages/insomniac/device_facade.py", line 214, in wake_up while not self.is_alive() and attempts < 5: File "/home/pi/.local/lib/python3.7/site-packages/insomniac/device_facade.py", line 207, in is_alive return self.deviceV1.alive() File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/init.py", line 589, in getattr raise AttributeError("%s attribute not found!" % attr) AttributeError: alive attribute not found!

Traceback (most recent call last): File "/home/pi/.local/lib/python3.7/site-packages/insomniac/session.py", line 255, in run self.start_session(args, device_wrapper, app_version, save_profile_info=True) File "/home/pi/.local/lib/python3.7/site-packages/insomniac/session.py", line 177, in start_session device_wrapper.get().wake_up() File "/home/pi/.local/lib/python3.7/site-packages/insomniac/device_facade.py", line 214, in wake_up while not self.is_alive() and attempts < 5: File "/home/pi/.local/lib/python3.7/site-packages/insomniac/device_facade.py", line 207, in is_alive return self.deviceV1.alive() File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/init.py", line 589, in getattr raise AttributeError("%s attribute not found!" % attr) AttributeError: alive attribute not found!

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/Insomniac/start.py", line 4, in insomniac.run(activation_code) File "/home/pi/.local/lib/python3.7/site-packages/insomniac/init.py", line 30, in run insomniac_session.run() File "/home/pi/.local/lib/python3.7/site-packages/insomniac/session.py", line 281, in run save_crash(device_wrapper.get(), ex) File "/home/pi/.local/lib/python3.7/site-packages/insomniac/utils.py", line 162, in save_crash device.wake_up() File "/home/pi/.local/lib/python3.7/site-packages/insomniac/device_facade.py", line 214, in wake_up while not self.is_alive() and attempts < 5: File "/home/pi/.local/lib/python3.7/site-packages/insomniac/device_facade.py", line 207, in is_alive return self.deviceV1.alive() File "/home/pi/.local/lib/python3.7/site-packages/uiautomator/init.py", line 589, in getattr raise AttributeError("%s attribute not found!" % attr)

AttributeError:` alive attribute not found!