═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ RESTART ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ 2024-09-06 14:19:41.800 | INFO | <<< APP RESTART >>> 2024-09-06 14:19:41.803 | INFO | App stop: com.bilibili.azurlane 2024-09-06 14:19:42.510 | WARNING | WayDroid session is stoped 2024-09-06 14:19:42.518 | INFO | App start: com.bilibili.azurlane 2024-09-06 14:19:42.521 | ERROR | app_start_uiautomator2: All trials failed 2024-09-06 14:20:07.549 | ERROR | AdbError: device offline ╭───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────╮ │ │ │ /home/izum1/App/alas/alas.py:69 in run │ │ │ │ 66 │ │ try: │ │ 67 │ │ │ if not skip_first_screenshot: │ │ 68 │ │ │ │ self.device.screenshot() │ │ ❱ 69 │ │ │ self.__getattribute__(command)() │ │ 70 │ │ │ return True │ │ 71 │ │ except TaskEnd: │ │ 72 │ │ │ return True │ │ │ │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ │ │ command = 'restart' │ │ │ │ e = AdbError('device offline') │ │ │ │ self = │ │ │ │ skip_first_screenshot = False │ │ │ ╰──────────────────────────────────────────────────────────────────────────╯ │ │ /home/izum1/App/alas/alas.py:171 in restart │ │ │ │ 168 │ │ │ 169 │ def restart(self): │ │ 170 │ │ from module.handler.login import LoginHandler │ │ ❱ 171 │ │ LoginHandler(self.config, device=self.device).app_restart() │ │ 172 │ │ │ 173 │ def start(self): │ │ 174 │ │ from module.handler.login import LoginHandler │ │ │ │ ╭──────────────────────────── locals ─────────────────────────────╮ │ │ │ LoginHandler = │ │ │ │ self = │ │ │ ╰─────────────────────────────────────────────────────────────────╯ │ │ │ │ /home/izum1/App/alas/module/handler/login.py:158 in app_restart │ │ │ │ 155 │ def app_restart(self): │ │ 156 │ │ logger.hr('App restart') │ │ 157 │ │ self.device.app_stop() │ │ ❱ 158 │ │ self.device.app_start() │ │ 159 │ │ self.handle_app_login() │ │ 160 │ │ # self.ensure_no_unfinished_campaign() │ │ 161 │ │ self.config.task_delay(server_update=True) │ │ │ │ ╭───────────────────────────── locals ──────────────────────────────╮ │ │ │ self = │ │ │ ╰───────────────────────────────────────────────────────────────────╯ │ │ │ │ /home/izum1/App/alas/module/device/device.py:315 in app_start │ │ │ │ 312 │ │ │ logger.critical('No app stop/start, because HandleError disabled') │ │ 313 │ │ │ logger.critical('Please enable Alas.Error.HandleError or manually login to │ │ AzurLane') │ │ 314 │ │ │ raise RequestHumanTakeover │ │ ❱ 315 │ │ super().app_start() │ │ 316 │ │ self.stuck_record_clear() │ │ 317 │ │ self.click_record_clear() │ │ 318 │ │ │ │ ╭───────────────────────────── locals ─────────────────────────────╮ │ │ │ __class__ = │ │ │ │ self = │ │ │ ╰──────────────────────────────────────────────────────────────────╯ │ │ │ │ /home/izum1/App/alas/module/device/app_control.py:36 in app_start │ │ │ │ 33 │ │ if self.config.Emulator_Serial == 'wsa-0': │ │ 34 │ │ │ self.app_start_wsa(display=0) │ │ 35 │ │ elif method in AppControl._app_u2_family: │ │ ❱ 36 │ │ │ self.app_start_uiautomator2() │ │ 37 │ │ else: │ │ 38 │ │ │ self.app_start_adb() │ │ 39 │ │ │ │ ╭─────────────────────────── locals ────────────────────────────╮ │ │ │ method = 'minitouch' │ │ │ │ self = │ │ │ ╰───────────────────────────────────────────────────────────────╯ │ │ │ │ /home/izum1/App/alas/module/device/method/uiautomator_2.py:367 in app_start_uiautomator2 │ │ │ │ 364 │ │ try: │ │ 365 │ │ │ os.system('waydroid session start &') │ │ 366 │ │ │ time.sleep(25) │ │ ❱ 367 │ │ │ product = super().adb_getprop("ro.product.manufacturer") │ │ 368 │ │ │ if product == "Waydroid": │ │ 369 │ │ │ │ logger.warning("Now is using WayDroid") │ │ 370 │ │ │ │ logger.warning("/usr/bin/waydroid app launch " + package_name) │ │ │ │ ╭───────────────────────────────── locals ──────────────────────────────────╮ │ │ │ __class__ = │ │ │ │ activity_name = 'com.manjuu.azurlane.MainActivity' │ │ │ │ allow_failure = False │ │ │ │ package_name = 'com.bilibili.azurlane' │ │ │ │ self = │ │ │ ╰───────────────────────────────────────────────────────────────────────────╯ │ │ │ │ /home/izum1/App/alas/module/device/connection.py:265 in adb_getprop │ │ │ │ 262 │ │ Returns: │ │ 263 │ │ │ str: │ │ 264 │ │ """ │ │ ❱ 265 │ │ return self.adb_shell(['getprop', name]).strip() │ │ 266 │ │ │ 267 │ @cached_property │ │ 268 │ @retry │ │ │ │ ╭────────────────────────── locals ───────────────────────────╮ │ │ │ name = 'ro.product.manufacturer' │ │ │ │ self = │ │ │ ╰─────────────────────────────────────────────────────────────╯ │ │ │ │ /home/izum1/App/alas/module/base/decorator.py:70 in wrapper │ │ │ │ 67 │ │ │ │ │ if not all(flag): │ │ 68 │ │ │ │ │ │ continue │ │ 69 │ │ │ │ │ │ │ ❱ 70 │ │ │ │ │ return record['func'](self, *args, **kwargs) │ │ 71 │ │ │ │ │ │ 72 │ │ │ │ logger.warning(f'No option fits for {name}, using the last define │ │ func.') │ │ 73 │ │ │ │ return func(self, *args, **kwargs) │ │ │ │ ╭────────────────────────────────────────────────── locals ──────────────────────────────────────────────────╮ │ │ │ args = (['getprop', 'ro.product.manufacturer'],) │ │ │ │ cls = │ │ │ │ flag = [True] │ │ │ │ func = │ │ │ │ kwargs = {} │ │ │ │ logger = │ │ │ │ name = 'adb_shell' │ │ │ │ record = {'options': {'DEVICE_OVER_HTTP': False}, 'func': } │ │ │ │ self = │ │ │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ /home/izum1/App/alas/module/device/connection.py:217 in adb_shell │ │ │ │ 214 │ │ │ │ # socket │ │ 215 │ │ │ │ return result │ │ 216 │ │ else: │ │ ❱ 217 │ │ │ result = self.adb.shell(cmd, stream=stream, timeout=timeout, rstrip=rstrip) │ │ 218 │ │ │ result = remove_shell_warning(result) │ │ 219 │ │ │ # str │ │ 220 │ │ │ return result │ │ │ │ ╭──────────────────────────── locals ────────────────────────────╮ │ │ │ cmd = ['getprop', 'ro.product.manufacturer'] │ │ │ │ recvall = True │ │ │ │ rstrip = True │ │ │ │ self = │ │ │ │ stream = False │ │ │ │ timeout = 10 │ │ │ ╰────────────────────────────────────────────────────────────────╯ │ │ │ │ /home/izum1/.conda/envs/alas/lib/python3.7/site-packages/adbutils/__init__.py:578 in shell │ │ │ │ 575 │ │ """ │ │ 576 │ │ if isinstance(cmdargs, (list, tuple)): │ │ 577 │ │ │ cmdargs = subprocess.list2cmdline(cmdargs) │ │ ❱ 578 │ │ ret = self._client.shell(self._serial, cmdargs, stream=stream, timeout=timeout) │ │ 579 │ │ if stream: │ │ 580 │ │ │ return ret │ │ 581 │ │ return ret.rstrip() if rstrip else ret │ │ │ │ ╭───────────────────── locals ─────────────────────╮ │ │ │ cmdargs = 'getprop ro.product.manufacturer' │ │ │ │ rstrip = True │ │ │ │ self = AdbDevice(serial=192.168.240.112:5555) │ │ │ │ stream = False │ │ │ │ timeout = 10 │ │ │ ╰──────────────────────────────────────────────────╯ │ │ │ │ /home/izum1/.conda/envs/alas/lib/python3.7/site-packages/adbutils/__init__.py:316 in shell │ │ │ │ 313 │ │ c.conn.settimeout(timeout) │ │ 314 │ │ try: │ │ 315 │ │ │ c.send_command("host:transport:" + serial) │ │ ❱ 316 │ │ │ c.check_okay() │ │ 317 │ │ │ c.send_command("shell:" + command) │ │ 318 │ │ │ c.check_okay() │ │ 319 │ │ │ if stream: │ │ │ │ ╭───────────────────────────── locals ─────────────────────────────╮ │ │ │ c = │ │ │ │ command = 'getprop ro.product.manufacturer' │ │ │ │ self = │ │ │ │ serial = '192.168.240.112:5555' │ │ │ │ stream = False │ │ │ │ timeout = 10 │ │ │ ╰──────────────────────────────────────────────────────────────────╯ │ │ │ │ /home/izum1/.conda/envs/alas/lib/python3.7/site-packages/adbutils/__init__.py:168 in check_okay │ │ │ │ 165 │ def check_okay(self): │ │ 166 │ │ data = self.read_string(4) │ │ 167 │ │ if data == _FAIL: │ │ ❱ 168 │ │ │ raise AdbError(self.read_string_block()) │ │ 169 │ │ elif data == _OKAY: │ │ 170 │ │ │ return │ │ 171 │ │ raise AdbError("Unknown data: %s" % data) │ │ │ │ ╭─────────────────────────── locals ────────────────────────────╮ │ │ │ data = 'FAIL' │ │ │ │ self = │ │ │ ╰───────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ AdbError: device offline 2024-09-06 14:20:08.374 | WARNING | Saving error: ./log/error/1725603608374