mumu12被强制更新到v5.6.0,之后日志上尺寸一直报错
在提问之前...
- [x] 我已经搜索了现有的 issues
- [x] 我在提问题之前至少花费了 5 分钟来思考和准备
- [x] 我已经阅读了文档中的 常见问题(FAQ)
- [x] 这个问题出现了至少三次,不是偶发的
- [x] 我使用 OAS 的 dev 分支
描述你的问题
════════════════════════════════════════════════════════════════════════════════
──────────────────────────────────── START ─────────────────────────────────────
════════════════════════════════════════════════════════════════════════════════
INFO | 20:26:18.830 | Log cleanup finished
INFO | 20:26:18.832 | Start scheduler loop: oas7
INFO | 20:26:18.836 | auto save config
INFO | 20:26:18.848 | 显示窗口: MuMu模拟器12
INFO | 20:26:18.855 | Pending tasks: ['RealmRaid']
INFO | 20:26:18.856 | [Task] RealmRaid (Enable, 4, 2025-10-16 19:13:53)
════════════════════════════════════ DEVICE ════════════════════════════════════
INFO | 20:26:18.859 | DEVICE
INFO | 20:26:18.861 | [AdbBinary]
C:/Users/Xiaox/Desktop/OnmyojiAutoScript-easy-install/toolkit/Lib/site-
packages/adbutils/binaries/adb.exe
INFO | 20:26:18.863 | [AdbClient] AdbClient(127.0.0.1, 5037)
INFO | 20:26:18.864 | <<< DETECT DEVICE >>>
INFO | 20:26:18.866 | Here are the available devices, copy to
Alas.Emulator.Serial to use it or set Alas.Emulator.Serial="auto"
INFO | 20:26:18.868 | 127.0.0.1:16384
INFO | 20:26:18.876 | already connected to 127.0.0.1:16384
INFO | 20:26:18.878 | [AdbDevice] AdbDevice(serial=127.0.0.1:16384)
INFO | 20:26:18.879 | <<< DETECT PACKAGE >>>
INFO | 20:26:18.881 | Get package list
INFO | 20:26:19.411 | Here are the available packages in device
"127.0.0.1:16384", copy to Alas.Emulator.PackageName to use it
INFO | 20:26:19.414 | com.netease.onmyoji.wyzymnqsd_cps
INFO | 20:26:19.416 | Auto package detection found only one package, using
it
INFO | 20:26:19.417 | Server changed, release resources
INFO | 20:26:19.418 | [PackageName] com.netease.onmyoji.wyzymnqsd_cps
INFO | 20:26:19.419 | <<< HANDLE >>>
INFO | 20:26:19.420 | Handle is handle string. oas use it as root handle
title
INFO | 20:26:19.422 | The root handle title is MuMu模拟器12 and num is
2754292
INFO | 20:26:19.423 | Emulator handle structure:
INFO | 20:26:19.425 | MuMu模拟器12
INFO | 20:26:19.426 | └── MuMuNxDevice
INFO | 20:26:19.428 | └── nemudisplay
INFO | 20:26:19.430 | 2754292
INFO | 20:26:19.431 | └── 656748
INFO | 20:26:19.433 | └── 1967354
INFO | 20:26:19.434 | Emulator family: EmulatorFamily.FAMILY_MUMU
INFO | 20:26:19.436 | Your window screen scale rate: 1.0
INFO | 20:26:19.438 | Screenshot handle num: 2754292
INFO | 20:26:19.439 | Emulator screenshot size: (1288, 764)
INFO | 20:26:19.440 | Screenshot interval set to 0.3s
INFO | 20:26:19.441 | Scheduler: Start task RealmRaid
════════════════════════════════════════════════════════════════════════════════
────────────────────────────────── REALMRAID ───────────────────────────────────
════════════════════════════════════════════════════════════════════════════════
INFO | 20:26:19.444 | auto save config
INFO | 20:26:19.490 | [Screen_size] 1288x764
INFO | 20:26:20.305 | [u2.Device]
Device(atx_agent_url=http://127.0.0.1:51478)
INFO | 20:26:20.566 | [Package_name] com.netease.onmyoji.wyzymnqsd_cps
CRITICAL | 20:26:20.568 | Resolution not supported: 1288x764
CRITICAL | 20:26:20.570 | Please set emulator resolution to 1280x720
CRITICAL | 20:26:20.571 |
CRITICAL | 20:26:21.143 | Request human takeover
INFO | 20:26:21.148 | No provider specified, skip sending
INFO | 20:26:21.150 | Notifier: OAS7
ERROR | 20:26:21.154 | Run script oas7 error
┌───────────────── Traceback (most recent call last) ─────────────────┐
│ C:\Users\Xiaox\Desktop\OnmyojiAutoScript-easy-install\module\device │
│ \device.py:109 in screenshot │
│ │
│ 106 │ │ self.stuck_record_check() │
│ 107 │ │ │
│ 108 │ │ try: │
│ > 109 │ │ │ super().screenshot() │
│ 110 │ │ except RequestHumanTakeover as e: │
│ 111 │ │ │ raise RequestHumanTakeover │
│ 112 │
│ │
│ ┌──────────────────────────── locals ─────────────────────────────┐ │
│ │ self = <module.device.device.Device object at │ │
│ │ 0x00000219E5CA6CB0> │ │
│ └─────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\Xiaox\Desktop\OnmyojiAutoScript-easy-install\module\device │
│ \screenshot.py:74 in screenshot │
│ │
│ 71 │ │ │ if self.config.script.error.save_error: │
│ 72 │ │ │ │ self.screenshot_deque.append({'time': datetim │
│ self.image}) │
│ 73 │ │ │ │
│ > 74 │ │ │ if self.check_screen_size() and self.check_screen │
│ 75 │ │ │ │ break │
│ 76 │ │ │ else: │
│ 77 │ │ │ │ continue │
│ │
│ ┌──────────────────────────── locals ─────────────────────────────┐ │
│ │ _ = 0 │ │
│ │ method = <bound method Window.screenshot_window_background of │ │
│ │ <module.device.device.Device object at │ │
│ │ 0x00000219E5CA6CB0>> │ │
│ │ self = <module.device.device.Device object at │ │
│ │ 0x00000219E5CA6CB0> │ │
│ └─────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\Xiaox\Desktop\OnmyojiAutoScript-easy-install\module\device │
│ \screenshot.py:232 in check_screen_size │
│ │
│ 229 │ │ │ else: │
│ 230 │ │ │ │ logger.critical(f'Resolution not supported: { │
│ 231 │ │ │ │ logger.critical('Please set emulator resoluti │
│ > 232 │ │ │ │ raise RequestHumanTakeover │
│ 233 │ │
│ 234 │ def check_screen_black(self): │
│ 235 │ │ if self._screen_black_checked: │
│ │
│ ┌──────────────────────────── locals ─────────────────────────────┐ │
│ │ _ = 0 │ │
│ │ height = 764 │ │
│ │ orientated = False │ │
│ │ self = <module.device.device.Device object at │ │
│ │ 0x00000219E5CA6CB0> │ │
│ │ width = 1288 │ │
│ └─────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘
RequestHumanTakeover
During handling of the above exception, another exception occurred:
┌───────────────── Traceback (most recent call last) ─────────────────┐
│ C:\Users\Xiaox\Desktop\OnmyojiAutoScript-easy-install\script.py:372 │
│ in run │
│ │
│ 369 │ │ │ logger.error(f'Invalid command `{command}`') │
│ 370 │ │ │
│ 371 │ │ try: │
│ > 372 │ │ │ self.device.screenshot() │
│ 373 │ │ │ module_name = 'script_task' │
│ 374 │ │ │ module_path = str(Path.cwd() / 'tasks' / command │
│ 375 │ │ │ logger.info(f'module_path: {module_path}, module_ │
│ │
│ ┌──────────────────────── locals ────────────────────────┐ │
│ │ command = 'RealmRaid' │ │
│ │ self = <script.Script object at 0x00000219CAB73F10> │ │
│ └────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\Xiaox\Desktop\OnmyojiAutoScript-easy-install\module\device │
│ \device.py:111 in screenshot │
│ │
│ 108 │ │ try: │
│ 109 │ │ │ super().screenshot() │
│ 110 │ │ except RequestHumanTakeover as e: │
│ > 111 │ │ │ raise RequestHumanTakeover │
│ 112 │ │ │
│ 113 │ │ if self.handle_night_commission(): │
│ 114 │ │ │ super().screenshot() │
│ │
│ ┌──────────────────────────── locals ─────────────────────────────┐ │
│ │ self = <module.device.device.Device object at │ │
│ │ 0x00000219E5CA6CB0> │ │
│ └─────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘
RequestHumanTakeover
During handling of the above exception, another exception occurred:
┌───────────────── Traceback (most recent call last) ─────────────────┐
│ C:\Users\Xiaox\Desktop\OnmyojiAutoScript-easy-install\module\server │
│ \script_process.py:137 in func │
│ │
│ 134 │ │ from script import Script │
│ 135 │ │ script = Script(config_name=config) │
│ 136 │ │ script.state_queue = state_queue │
│ > 137 │ │ script.loop() │
│ 138 │ except SystemExit as e: │
│ 139 │ │ logger.info(f'Script {config} process exit') │
│ 140 │ │ logger.error(f'Error: {e}') │
│ │
│ ┌──────────────────────────── locals ─────────────────────────────┐ │
│ │ config = 'oas7' │ │
│ │ e = AttributeError("'Notifier' object has no │ │
│ │ attribute 'required'") │ │
│ │ log_pipe_in = <multiprocessing.connection.PipeConnection object │ │
│ │ at 0x00000219CAB73DC0> │ │
│ │ Script = <class 'script.Script'> │ │
│ │ script = <script.Script object at 0x00000219CAB73F10> │ │
│ │ start_log = <function func.<locals>.start_log at │ │
│ │ 0x00000219C96BE170> │ │
│ │ state_queue = <multiprocessing.queues.Queue object at │ │
│ │ 0x00000219C7370DC0> │ │
│ │ time = <module 'time' (built-in)> │ │
│ └─────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\Xiaox\Desktop\OnmyojiAutoScript-easy-install\script.py:492 │
│ in loop │
│ │
│ 489 │ │ │ self.device.click_record_clear() │
│ 490 │ │ │ logger.hr(task, level=0) │
│ 491 │ │ │ self.config.model.running_task = task │
│ > 492 │ │ │ success = self.run(inflection.camelize(task)) │
│ 493 │ │ │ self.config.model.running_task = '' │
│ 494 │ │ │ logger.info(f'Scheduler: End task `{task}`') │
│ 495 │ │ │ self.is_first_task = False │
│ │
│ ┌──────────────────────────── locals ─────────────────────────────┐ │
│ │ _ = <module.device.device.Device object at │ │
│ │ 0x00000219E5CA6CB0> │ │
│ │ self = <script.Script object at │ │
│ │ 0x00000219CAB73F10> │ │
│ │ start_day = datetime.date(2025, 10, 16) │ │
│ │ target_window_name = 'MuMu模拟器12' │ │
│ │ task = 'RealmRaid' │ │
│ └─────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\Xiaox\Desktop\OnmyojiAutoScript-easy-install\script.py:424 │
│ in run │
│ │
│ 421 │ │ │ logger.critical(e) │
│ 422 │ │ │ self.exception_handler(e=e, command=command) │
│ 423 │ │ │ logger.critical('Request human takeover') │
│ > 424 │ │ │ self.config.notifier.push(title=f'{I18n.trans_zh_ │
│ content=f"<{self.config_name}> RequestHumanTakeover") │
│ 425 │ │ │ exit(1) │
│ 426 │ │ except Exception as e: │
│ 427 │ │ │ logger.exception(e) │
│ │
│ ┌──────────────────────── locals ────────────────────────┐ │
│ │ command = 'RealmRaid' │ │
│ │ self = <script.Script object at 0x00000219CAB73F10> │ │
│ └────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\Xiaox\Desktop\OnmyojiAutoScript-easy-install\module\notify │
│ \notify.py:57 in push │
│ │
│ 54 │ │ kwargs["title"] = f"{self.config_name} {kwargs['title │
│ 55 │ │ self.config.update(kwargs) │
│ 56 │ │ # pre check │
│ > 57 │ │ for key in self.required: │
│ 58 │ │ │ if key not in self.config: │
│ 59 │ │ │ │ logger.warning( │
│ 60 │ │ │ │ │ f"Notifier {self.notifier} require param │
│ │
│ ┌──────────────────────────── locals ─────────────────────────────┐ │
│ │ kwargs = { │ │
│ │ │ 'title': 'OAS7 个人突破RealmRaid', │ │
│ │ │ 'content': '<oas7> RequestHumanTakeover' │ │
│ │ } │ │
│ │ self = <module.notify.notify.Notifier object at │ │
│ │ 0x00000219E5043400> │ │
│ └─────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘
AttributeError: 'Notifier' object has no attribute 'required'
ERROR | 20:26:26.099 | Error: 'Notifier' object has no attribute 'required'
已经设置,重启不知道多少次了,还是显示尺寸错误。 现在不知道怎么降级,有没有旧的安装包呢?
如何复现
- 前往 '...'
- 点击 '....'
- 滑动到 '....'
- 出现问题
预期行为
No response
相关 Logs
截图
No response
还有别的吗?
No response
你这不是notifier报错吗?是不是启用通知了但是又没有设置参数
你这不是notifier报错吗?是不是启用通知了但是又没有设置参数
我也出现了一样的问题,新版mumu的720p预设尺寸对不上
我之前也这样 后面我在网上找的历史版本回退回去就全好了,你把mumu文件里有个update的文件名字重命名就不会强制更新了> > 你这不是notifier报错吗?是不是启用通知了但是又没有设置参数
我也出现了一样的问题,新版mumu的720p预设尺寸对不上
更新mumu7.2就好了
你这不是notifier报错吗?是不是启用通知了但是又没有设置参数
前面写的是尺寸对不上啊 需要人为操作。 好像不是notifier报错,我也不知道后面一片是怎么粘上去的。我好像没有动过通知的设置。。更新以后尺寸就对不上了。我现在降级了,找了老包安装了一下。谢谢了