也是模拟器启动问题 #156
也是模拟器启动问题
#156
Replies: 1 comment
-
|
已移交到issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
────────────────────────────── EMULATOR INSTANCE ───────────────────────────────
2026-06-03 07:38:22.271 | logger.py:0461 | INFO | EMULATOR INSTANCE
2026-06-03 07:38:22.271 | platform_base.py:0197 | INFO | Found emulator instance: MuMuPlayer12(serial="127.0.0.1:16384", name="MuMuPlayer-12.0-0",
path="D:/Program Files/Netease/MuMu/nx_main/MuMuNxMain.exe")
2026-06-03 07:38:22.272 | platform_windows.py:0171 | INFO | Execute: "D:/Program Files/Netease/MuMu/nx_main/MuMuManager.exe" control -v 0 shutdown
2026-06-03 07:38:22.288 | platform_windows.py:0727 | INFO | [emu-stop] stop submitted: serial=127.0.0.1:16384
2026-06-03 07:38:22.289 | platform_windows.py:0728 | INFO | [emu-stop] lock release: stop ok
2026-06-03 07:38:22.290 | runtime_controller.py:0112 | INFO | Server update wait window active until 2026-06-03 09:15:00, suspend runtime actions until then
2026-06-03 09:15:01.650 | runtime_controller.py:0083 | INFO | Server update wait window ended at 2026-06-03 09:15:00, resume normal recovery
2026-06-03 09:15:01.651 | runtime_controller.py:0376 | INFO | Wake emulator before next task
════════════════════════════════════ DEVICE ════════════════════════════════════
2026-06-03 09:15:01.652 | logger.py:0458 | INFO | DEVICE
2026-06-03 09:15:01.652 | logger.py:0471 | INFO | [AdbBinary]
D:/yys/yys_lufei_mine/OnmyojiAutoScript-easy-install/toolkit/Lib/site-packages/adbutils/binaries/adb.exe
2026-06-03 09:15:01.653 | logger.py:0471 | INFO | [AdbClient] AdbClient(127.0.0.1, 5037)
2026-06-03 09:15:01.654 | logger.py:0463 | INFO | <<< DETECT DEVICE >>>
2026-06-03 09:15:01.655 | connection.py:0796 | INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set
Alas.Emulator.Serial="auto"
2026-06-03 09:15:01.656 | connection.py:0805 | INFO | No available devices
2026-06-03 09:15:06.447 | logger.py:0505 | ERROR | ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
┌───────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────┐
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\script.py:437 in loop │
│ │
│ 434 │ │ │ task = "" │
│ 435 │ │ │ try: │
│ 436 │ │ │ │ # Get task │
│ > 437 │ │ │ │ task = self.get_next_task() │
│ 438 │ │ │ │ # Skip first restart │
│ 439 │ │ │ │ if self.is_first_task and task == 'Restart': │
│ 440 │ │ │ │ │ logger.info('Skip task
Restartat scheduler start') ││ │
│ ┌────────────────────────────────────────────────── locals ──────────────────────────────────────────────────┐ │
│ │ decision = <ScriptRuntimeDecision.RESCHEDULE: 'reschedule'> │ │
│ │ e = ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None) │ │
│ │ failed = 0 │ │
│ │ minimize_by_name = <function minimize_by_name at 0x0000021E383A3910> │ │
│ │ self = <script.Script object at 0x0000021E35C3D3F0> │ │
│ │ show_window_by_name = <function show_window_by_name at 0x0000021E3844C670> │ │
│ │ start_day = datetime.date(2026, 6, 3) │ │
│ │ success = True │ │
│ │ target_window_name = '官渠1' │ │
│ │ task = '' │ │
│ └────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\script.py:323 in get_next_task │
│ │
│ 320 │ │ │ if task.next_run <= now: ┌──────────────────────── locals ─────────────────────────┐ │
│ 321 │ │ │ │ return task.command │ now = datetime.datetime(2026, 6, 3, 7, 38, 22, 259405) │ │
│ 322 │ │ │ # 根据策略执行等待逻辑 │ self = <script.Script object at 0x0000021E35C3D3F0> │ │
│ > 323 │ │ │ decision = self.runtime.handle_wait_during_idle(task.next_run) │ task = RyouToppa (Enable, 5, 2026-06-03 09:15:00) │ │
│ 324 │ │ │ if decision == ScriptRuntimeDecision.RESCHEDULE: └─────────────────────────────────────────────────────────┘ │
│ 325 │ │ │ │ logger.info('Idle wait requested scheduler refresh, reload config and │
│ reschedule') │
│ 326 │ │ │ │ del_cached_property(self, "config") │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\module\script\runtime_controller.py:570 in handle_wait_during_idle │
│ │
│ 567 │ │ if func is None: │
│ 568 │ │ │ logger.warning(f'Invalid Optimization_WhenTaskQueueEmpty: {method}, fallback │
│ to stay_there') │
│ 569 │ │ │ func = self._wait_stay_there │
│ > 570 │ │ return func(next_run) │
│ 571 │
│ │
│ ┌───────────────────────────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────────────────────────┐ │
│ │ func = <bound method ScriptRuntimeController._wait_close_emulator_or_close_game of <module.script.runtime_controller.ScriptRuntimeController │ │
│ │ object at 0x0000021E35C3D450>> │ │
│ │ method = <WhenTaskQueueEmpty.CLOSE_EMULATOR_OR_CLOSE_GAME: 'close_emulator_or_close_game'> │ │
│ │ next_run = datetime.datetime(2026, 6, 3, 9, 15) │ │
│ │ self = <module.script.runtime_controller.ScriptRuntimeController object at 0x0000021E35C3D450> │ │
│ │ strategy_map = { │ │
│ │ │ 'close_game': <bound method ScriptRuntimeController._wait_close_game of <module.script.runtime_controller.ScriptRuntimeController │ │
│ │ object at 0x0000021E35C3D450>>, │ │
│ │ │ 'goto_main': <bound method ScriptRuntimeController._wait_goto_main of <module.script.runtime_controller.ScriptRuntimeController │ │
│ │ object at 0x0000021E35C3D450>>, │ │
│ │ │ 'close_emulator_or_goto_main': <bound method ScriptRuntimeController._wait_close_emulator_or_goto_main of │ │
│ │ <module.script.runtime_controller.ScriptRuntimeController object at 0x0000021E35C3D450>>, │ │
│ │ │ 'close_emulator_or_close_game': <bound method ScriptRuntimeController._wait_close_emulator_or_close_game of │ │
│ │ <module.script.runtime_controller.ScriptRuntimeController object at 0x0000021E35C3D450>> │ │
│ │ } │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\module\script\runtime_controller.py:488 in _wait_close_emulator_or_close_game │
│ │
│ 485 │ │ Returns: │
│ 486 │ │ │ ScriptRuntimeDecision: 当前等待分支的处理结果。 │
│ 487 │ │ """ │
│ > 488 │ │ return self._wait_close_emulator_or( │
│ 489 │ │ │ next_run, │
│ 490 │ │ │ fallback_waiter=self._wait_close_game, │
│ 491 │ │ │ on_wake=self._prepare_idle_close_game, │
│ │
│ ┌────────────────────────────────────────────── locals ──────────────────────────────────────────────┐ │
│ │ next_run = datetime.datetime(2026, 6, 3, 9, 15) │ │
│ │ self = <module.script.runtime_controller.ScriptRuntimeController object at 0x0000021E35C3D450> │ │
│ └────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\module\script\runtime_controller.py:524 in _wait_close_emulator_or │
│ │
│ 521 │ │ │ logger.info('Close emulator during wait') │
│ 522 │ │ │ self.device.emulator_stop() │
│ 523 │ │ │ self.emulator_down = True │
│ > 524 │ │ │ return self._wait_until_with_emulator_preheat(next_run, on_wake=on_wake) │
│ 525 │ │ │
│ 526 │ │ return fallback_waiter(next_run) │
│ 527 │
│ │
│ ┌───────────────────────────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────────────────────────┐ │
│ │ close_emulator_limit = datetime.timedelta(seconds=2400) │ │
│ │ close_emulator_limit_time = datetime.time(0, 40) │ │
│ │ fallback_waiter = <bound method ScriptRuntimeController._wait_close_game of <module.script.runtime_controller.ScriptRuntimeController object │ │
│ │ at 0x0000021E35C3D450>> │ │
│ │ next_run = datetime.datetime(2026, 6, 3, 9, 15) │ │
│ │ on_wake = <bound method ScriptRuntimeController._prepare_idle_close_game of <module.script.runtime_controller.ScriptRuntimeController │ │
│ │ object at 0x0000021E35C3D450>> │ │
│ │ self = <module.script.runtime_controller.ScriptRuntimeController object at 0x0000021E35C3D450> │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\module\script\runtime_controller.py:377 in _wait_until_with_emulator_preheat │
│ │
│ 374 │ │ │ │ continue │
│ 375 │ │ │ │
│ 376 │ │ │ logger.info('Wake emulator before next task') │
│ > 377 │ │ │ self._ensure_emulator_running() │
│ 378 │ │ │ if on_wake is not None: │
│ 379 │ │ │ │ decision = on_wake() │
│ 380 │ │ │ │ if decision is not ScriptRuntimeDecision.READY: │
│ │
│ ┌───────────────────────────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────────────────────────┐ │
│ │ next_run = datetime.datetime(2026, 6, 3, 9, 15) │ │
│ │ now = datetime.datetime(2026, 6, 3, 9, 15, 1, 651628) │ │
│ │ on_wake = <bound method ScriptRuntimeController._prepare_idle_close_game of <module.script.runtime_controller.ScriptRuntimeController object at │ │
│ │ 0x0000021E35C3D450>> │ │
│ │ self = <module.script.runtime_controller.ScriptRuntimeController object at 0x0000021E35C3D450> │ │
│ │ startup_lead = datetime.timedelta(seconds=120) │ │
│ │ wait_decision = <ScriptRuntimeDecision.READY: 'ready'> │ │
│ │ wake_time = datetime.datetime(2026, 6, 3, 9, 13) │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\module\script\runtime_controller.py:203 in ensure_emulator_running │
│ │
│ 200 │ │ if self.emulator_down: │
│ 201 │ │ │ if reason: │
│ 202 │ │ │ │ logger.info(reason) │
│ > 203 │ │ │ self.script.device = Device(self.config) │
│ 204 │ │ │ self.emulator_down = False │
│ 205 │ │ │ return │
│ 206 │
│ │
│ ┌───────────────────────────────────────────── locals ─────────────────────────────────────────────┐ │
│ │ reason = None │ │
│ │ self = <module.script.runtime_controller.ScriptRuntimeController object at 0x0000021E35C3D450> │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\module\device\device.py:38 in init │
│ │
│ 35 │ def init(self, *args, **kwargs): │
│ 36 │ │ for trial in range(4): │
│ 37 │ │ │ try: │
│ > 38 │ │ │ │ super().init(*args, **kwargs) │
│ 39 │ │ │ │ break │
│ 40 │ │ │ except EmulatorNotRunningError: │
│ 41 │ │ │ │ if trial >= 3: │
│ │
│ ┌──────────────────────────────── locals ────────────────────────────────┐ │
│ │ args = (<module.config.config.Config object at 0x0000021E389418A0>,) │ │
│ │ kwargs = {} │ │
│ │ self = <module.device.device.Device object at 0x0000021E3A1E1030> │ │
│ │ trial = 0 │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\module\device\screenshot.py:34 in init │
│ │
│ 31 │ image_frame_id: str | None = None │
│ 32 │ │
│ 33 │ def init(self, *args, **kwargs): │
│ > 34 │ │ super().init(*args, **kwargs) │
│ 35 │ │ super(Window, self).init(*args, **kwargs) │
│ 36 │ │
│ 37 │ @cached_property │
│ │
│ ┌──────────────────────────────── locals ────────────────────────────────┐ │
│ │ args = (<module.config.config.Config object at 0x0000021E389418A0>,) │ │
│ │ kwargs = {} │ │
│ │ self = <module.device.device.Device object at 0x0000021E3A1E1030> │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\module\device\connection.py:102 in init │
│ │
│ 99 │ │ │ self.detect_device() │
│ 100 │ │ │
│ 101 │ │ # Connect │
│ > 102 │ │ self.adb_connect(self.serial) │
│ 103 │ │ logger.attr('AdbDevice', self.adb) │
│ 104 │ │ │
│ 105 │ │ # Package │
│ │
│ ┌────────────────────────────── locals ───────────────────────────────┐ │
│ │ config = <module.config.config.Config object at 0x0000021E389418A0> │ │
│ │ self = <module.device.device.Device object at 0x0000021E3A1E1030> │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\module\base\decorator.py:77 in wrapper │
│ │
│ 74 │ │ │ │ │ if not all(flag): │
│ 75 │ │ │ │ │ │ continue │
│ 76 │ │ │ │ │ │
│ > 77 │ │ │ │ │ return record['func'](self, *args, **kwargs) │
│ 78 │ │ │ │ │
│ 79 │ │ │ │ logger.warning(f'No option fits for {name}, using the last define │
│ func.') │
│ 80 │ │ │ │ return func(self, *args, **kwargs) │
│ │
│ ┌────────────────────────────────────────────────────── locals ──────────────────────────────────────────────────────┐ │
│ │ args = ('127.0.0.1:16384',) │ │
│ │ cls = <class 'module.base.decorator.Config'> │ │
│ │ flag = [True] │ │
│ │ func = <function Connection.adb_connect at 0x0000021E37F763B0> │ │
│ │ kwargs = {} │ │
│ │ logger = <Logger oas (INFO)> │ │
│ │ name = 'adb_connect' │ │
│ │ record = {'options': {'DEVICE_OVER_HTTP': False}, 'func': <function Connection.adb_connect at 0x0000021E37F76290>} │ │
│ │ self = <module.device.device.Device object at 0x0000021E3A1E1030> │ │
│ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\module\device\connection.py:552 in adb_connect │
│ │
│ 549 │ │ │
│ 550 │ │ # Try to connect │
│ 551 │ │ for _ in range(3): │
│ > 552 │ │ │ msg = self.adb_client.connect(serial) │
│ 553 │ │ │ logger.info(msg) │
│ 554 │ │ │ if 'connected' in msg: │
│ 555 │ │ │ │ # Connected to 127.0.0.1:59865 │
│ │
│ ┌────────────────────────────── locals ───────────────────────────────┐ │
│ │ _ = 0 │ │
│ │ self = <module.device.device.Device object at 0x0000021E3A1E1030> │ │
│ │ serial = '127.0.0.1:16384' │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\toolkit\lib\site-packages\adbutils_init.py:266 in connect │
│ │
│ 263 │ │ with self._connect(timeout=timeout) as c: │
│ 264 │ │ │ c.send_command("host:connect:" + addr) │
│ 265 │ │ │ c.check_okay() │
│ > 266 │ │ │ return c.read_string_block() │
│ 267 │ │
│ 268 │ def disconnect(self, addr: str, raise_error: bool=False) -> str: │
│ 269 │ │ """ adb disconnect $addr │
│ │
│ ┌──────────────────────────────── locals ────────────────────────────────┐ │
│ │ addr = '127.0.0.1:16384' │ │
│ │ c = <adbutils.AdbStreamConnection object at 0x0000021E3A1E3730> │ │
│ │ self = <adbutils.AdbClient object at 0x0000021E3A1E3280> │ │
│ │ timeout = None │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\toolkit\lib\site-packages\adbutils_init.py:150 in read_string_block │
│ │
│ 147 │ │ Raises: │
│ 148 │ │ │ AdbError │
│ 149 │ │ """ │
│ > 150 │ │ length = self.read_string(4) │
│ 151 │ │ if not length: │
│ 152 │ │ │ raise AdbError("connection closed") │
│ 153 │ │ size = int(length, 16) │
│ │
│ ┌────────────────────────────── locals ───────────────────────────────┐ │
│ │ self = <adbutils.AdbStreamConnection object at 0x0000021E3A1E3730> │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\toolkit\lib\site-packages\adbutils_init.py:142 in read_string │
│ │
│ 139 │ │ self.conn.send("{:04x}{}".format(len(cmd), cmd).encode("utf-8")) │
│ 140 │ │
│ 141 │ def read_string(self, n: int) -> str: │
│ > 142 │ │ data = self.read(n).decode() │
│ 143 │ │ return data │
│ 144 │ │
│ 145 │ def read_string_block(self) -> str: │
│ │
│ ┌────────────────────────────── locals ───────────────────────────────┐ │
│ │ n = 4 │ │
│ │ self = <adbutils.AdbStreamConnection object at 0x0000021E3A1E3730> │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\toolkit\lib\site-packages\adbutils_init.py:123 in read │
│ │
│ 120 │ │
│ 121 │ def read(self, n: int) -> bytes: │
│ 122 │ │ try: │
│ > 123 │ │ │ return self._read_fully(n) │
│ 124 │ │ except socket.timeout: │
│ 125 │ │ │ raise AdbTimeout("adb read timeout") │
│ 126 │
│ │
│ ┌────────────────────────────── locals ───────────────────────────────┐ │
│ │ n = 4 │ │
│ │ self = <adbutils.AdbStreamConnection object at 0x0000021E3A1E3730> │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\yys\yys_lufei_mine\OnmyojiAutoScript-easy-install\toolkit\lib\site-packages\adbutils_init.py:131 in _read_fully │
│ │
│ 128 │ │ t = n │
│ 129 │ │ buffer = b'' │
│ 130 │ │ while t > 0: │
│ > 131 │ │ │ chunk = self.conn.recv(t) │
│ 132 │ │ │ if not chunk: │
│ 133 │ │ │ │ break │
│ 134 │ │ │ buffer += chunk │
│ │
│ ┌─────────────────────────────── locals ────────────────────────────────┐ │
│ │ buffer = b'' │ │
│ │ n = 4 │ │
│ │ self = <adbutils._AdbStreamConnection object at 0x0000021E3A1E3730> │ │
│ │ t = 4 │ │
│ └───────────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
2026-06-03 09:15:07.440 | script.py:0114 | WARNING | Saving error: ./log/error/1guan1_1780449307440
日志,以前也有过 以前最多一个号 今天一看 四个号 三个号这样 启动按钮变黄 三个我都点了一下启动按钮 又可以启动模拟器了 有什么解决办法
Beta Was this translation helpful? Give feedback.
All reactions