Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

跨日时停止运行 #214

Open
KarylDAZE opened this issue Jan 10, 2025 · 7 comments
Open

跨日时停止运行 #214

KarylDAZE opened this issue Jan 10, 2025 · 7 comments

Comments

@KarylDAZE
Copy link

跨日等情况下重启游戏后,很容易出现此报错,且再次点击启动仍出现同样报错。重启baas后可恢复正常


log:

INFO | 2025-01-11 04:00:00 | daily config refreshed
INFO | 2025-01-11 04:00:00 | Scheduler : {
INFO | 2025-01-11 04:00:00 | pre_task : []
INFO | 2025-01-11 04:00:00 | current_task : restart
INFO | 2025-01-11 04:00:00 | post_task : []
INFO | 2025-01-11 04:00:00 | }
INFO | 2025-01-11 04:00:00 | current_task: [ restart ] start
INFO | 2025-01-11 04:00:01 | CHECK RESTART
INFO | 2025-01-11 04:00:01 | current package: com.RoamingStar.BlueArchive
INFO | 2025-01-11 04:00:01 | --STOP CURRENT BLUE ARCHIVE--
INFO | 2025-01-11 04:00:03 | -- START BLUE ARCHIVE --
INFO | 2025-01-11 04:00:04 | restart next_time : 2025-01-12 04:00:00
INFO | 2025-01-11 04:00:04 | Scheduler : {
INFO | 2025-01-11 04:00:04 | pre_task : []
INFO | 2025-01-11 04:00:04 | current_task : cafe_reward
INFO | 2025-01-11 04:00:04 | post_task : []
INFO | 2025-01-11 04:00:04 | }
INFO | 2025-01-11 04:00:04 | current_task: [ cafe_reward ] start
WARNING | 2025-01-11 04:00:05 | Failed to call nemu_capture_display, result=1
ERROR | 2025-01-11 04:00:05 | init() missing 1 required positional argument: 'logger'
ERROR | 2025-01-11 04:00:05 | init() missing 1 required positional argument: 'logger'
ERROR | 2025-01-11 04:00:05 | Request Human Take Over
ERROR | 2025-01-11 04:00:05 | error occurred, stop all activities
INFO | 2025-01-11 04:00:23 | --------Initializing All Data----------
INFO | 2025-01-11 04:00:23 | --------------Init Emulator----------------
INFO | 2025-01-11 04:00:23 | -- BAAS Check Emulator Start --
INFO | 2025-01-11 04:00:23 | -- Start Multi Emulator --
INFO | 2025-01-11 04:00:23 | EmulatorName: mumu
INFO | 2025-01-11 04:00:23 | MultiInstanceNumber: 3
INFO | 2025-01-11 04:00:24 | Start wait 0 seconds for emulator to start.
INFO | 2025-01-11 04:00:24 | Serial : 127.0.0.1:16480
INFO | 2025-01-11 04:00:24 | Detect Device
INFO | 2025-01-11 04:00:24 | Available devices are listed below, choose the one you want to run BAAS on.
INFO | 2025-01-11 04:00:24 | 1 : [ 127.0.0.1:16448 ]
INFO | 2025-01-11 04:00:24 | 2 : [ 127.0.0.1:16480 ]
INFO | 2025-01-11 04:00:24 | 3 : [ 127.0.0.1:16512 ]
INFO | 2025-01-11 04:00:24 | already connected to 127.0.0.1:16480
INFO | 2025-01-11 04:00:24 | Detect Package
INFO | 2025-01-11 04:00:24 | Check Package [ com.RoamingStar.BlueArchive ] Exist.
INFO | 2025-01-11 04:00:24 | List Packages
INFO | 2025-01-11 04:00:24 | Package Found.
INFO | 2025-01-11 04:00:24 | Server : CN
INFO | 2025-01-11 04:00:24 | MuMu Keep Alive :
INFO | 2025-01-11 04:00:24 | screenshot_interval set to 0.3
INFO | 2025-01-11 04:00:25 | Screenshot method : nemu
INFO | 2025-01-11 04:00:25 | Control method : uiautomator2
INFO | 2025-01-11 04:00:25 | screenshot_interval set to 0.3
INFO | 2025-01-11 04:00:25 | --------------Check ATX install ----------------
INFO | 2025-01-11 04:00:25 | Device [ 127.0.0.1:16480 ] is online.
INFO | 2025-01-11 04:00:31 | Uiautomator2 service started.
INFO | 2025-01-11 04:00:31 | Screen Size (1280, 720)
INFO | 2025-01-11 04:00:31 | Screen Size Ratio: 1.0
INFO | 2025-01-11 04:00:31 | --------Emulator Init Finished----------
INFO | 2025-01-11 04:00:31 | --------Initialization Finished----------
INFO | 2025-01-11 04:00:31 | Starting Blue Archive Auto Script...
INFO | 2025-01-11 04:00:31 | -------------- Start Scheduler ----------------
INFO | 2025-01-11 04:00:31 | CHECK RESTART
INFO | 2025-01-11 04:00:31 | current package: com.RoamingStar.BlueArchive
INFO | 2025-01-11 04:00:31 | --STOP CURRENT BLUE ARCHIVE--
INFO | 2025-01-11 04:00:34 | -- START BLUE ARCHIVE --
INFO | 2025-01-11 04:00:35 | Scheduler : {
INFO | 2025-01-11 04:00:35 | pre_task : []
INFO | 2025-01-11 04:00:35 | current_task : cafe_reward
INFO | 2025-01-11 04:00:35 | post_task : []
INFO | 2025-01-11 04:00:35 | }
INFO | 2025-01-11 04:00:35 | current_task: [ cafe_reward ] start
WARNING | 2025-01-11 04:00:35 | Failed to call nemu_capture_display, result=1
ERROR | 2025-01-11 04:00:35 | init() missing 1 required positional argument: 'logger'
ERROR | 2025-01-11 04:00:35 | init() missing 1 required positional argument: 'logger'
ERROR | 2025-01-11 04:00:35 | Request Human Take Over
ERROR | 2025-01-11 04:00:35 | error occurred, stop all activities

@KarylDAZE
Copy link
Author

没有跨日时也可能出现此问题:

log:

INFO | 2025-01-11 21:07:44 | Scheduler : {
INFO | 2025-01-11 21:07:44 | pre_task : []
INFO | 2025-01-11 21:07:44 | current_task : cafe_reward
INFO | 2025-01-11 21:07:44 | post_task : []
INFO | 2025-01-11 21:07:44 | }
INFO | 2025-01-11 21:07:44 | current_task: [ cafe_reward ] start
WARNING | 2025-01-11 21:07:44 | Failed to call nemu_capture_display, result=1
ERROR | 2025-01-11 21:07:44 | init() missing 1 required positional argument: 'logger'
ERROR | 2025-01-11 21:07:44 | init() missing 1 required positional argument: 'logger'
ERROR | 2025-01-11 21:07:44 | Request Human Take Over
ERROR | 2025-01-11 21:07:44 | error occurred, stop all activities
INFO | 2025-01-11 21:07:58 | --------Initializing All Data----------
INFO | 2025-01-11 21:07:58 | --------------Init Emulator----------------
INFO | 2025-01-11 21:07:58 | -- BAAS Check Emulator Start --
INFO | 2025-01-11 21:07:58 | -- Start Multi Emulator --
INFO | 2025-01-11 21:07:58 | EmulatorName: mumu
INFO | 2025-01-11 21:07:58 | MultiInstanceNumber: 3
INFO | 2025-01-11 21:08:01 | Start wait 0 seconds for emulator to start.
INFO | 2025-01-11 21:08:01 | Serial : 127.0.0.1:16480
INFO | 2025-01-11 21:08:01 | Detect Device
INFO | 2025-01-11 21:08:01 | Available devices are listed below, choose the one you want to run BAAS on.
INFO | 2025-01-11 21:08:01 | 1 : [ 127.0.0.1:16448 ]
INFO | 2025-01-11 21:08:01 | 2 : [ 127.0.0.1:16480 ]
INFO | 2025-01-11 21:08:01 | 3 : [ 127.0.0.1:16512 ]
INFO | 2025-01-11 21:08:01 | already connected to 127.0.0.1:16480
INFO | 2025-01-11 21:08:01 | Detect Package
INFO | 2025-01-11 21:08:01 | Check Package [ com.RoamingStar.BlueArchive ] Exist.
INFO | 2025-01-11 21:08:01 | List Packages
INFO | 2025-01-11 21:08:01 | Package Found.
INFO | 2025-01-11 21:08:01 | Server : CN
INFO | 2025-01-11 21:08:01 | MuMu Keep Alive :
INFO | 2025-01-11 21:08:01 | screenshot_interval set to 0.3
INFO | 2025-01-11 21:08:01 | Screenshot method : nemu
INFO | 2025-01-11 21:08:01 | Control method : uiautomator2
INFO | 2025-01-11 21:08:01 | screenshot_interval set to 0.3
INFO | 2025-01-11 21:08:01 | --------------Check ATX install ----------------
INFO | 2025-01-11 21:08:01 | Device [ 127.0.0.1:16480 ] is online.
INFO | 2025-01-11 21:08:01 | uiautomator2 version: [ 2.16.23 ].
INFO | 2025-01-11 21:08:01 | apk-debug package-info: [ {'package_name': 'com.github.uiautomator', 'version_name': '2.3.3', 'version_code': 2003003, 'flags': ['DEBUGGABLE', 'HAS_CODE', 'ALLOW_CLEAR_USER_DATA', 'ALLOW_BACKUP'], 'first_install_time': datetime.datetime(2023, 12, 16, 22, 48, 32), 'last_update_time': datetime.datetime(2023, 12, 16, 22, 48, 32), 'signature': 'ae17cd86], past signatures:[', 'path': '/data/app/~~Zsl13zDYH_ZQ-S2mpONv5A==/com.github.uiautomator-dzYPpcGGUjY1k1OBm8xzOw==/base.apk', 'sub_apk_paths': []} ].
INFO | 2025-01-11 21:08:01 | apk-debug-test package-info: [ {'package_name': 'com.github.uiautomator.test', 'version_name': None, 'version_code': 0, 'flags': ['DEBUGGABLE', 'HAS_CODE', 'ALLOW_CLEAR_USER_DATA', 'ALLOW_BACKUP'], 'first_install_time': datetime.datetime(2023, 12, 16, 22, 48, 32), 'last_update_time': datetime.datetime(2023, 12, 16, 22, 48, 32), 'signature': 'ae17cd86], past signatures:[', 'path': '/data/app/~~gYmQmMZptar-PFDpwMp4dA==/com.github.uiautomator.test-IroKi8GuJ1eMj-cHgDNn6A==/base.apk', 'sub_apk_paths': []} ].
INFO | 2025-01-11 21:08:01 | Already installed com.github.uiautomator apks
INFO | 2025-01-11 21:08:01 | Stop atx-agent.
INFO | 2025-01-11 21:08:01 | Real version: [0, 10, 0], Expect version:[0, 10, 0].
INFO | 2025-01-11 21:08:01 | Start atx-agent.
INFO | 2025-01-11 21:08:01 | Check atx-agent version
INFO | 2025-01-11 21:08:01 | Forward: local:tcp:10282 -> remote:tcp:7912
INFO | 2025-01-11 21:08:01 | Forward: local:tcp:10282 -> remote:tcp:7912
INFO | 2025-01-11 21:08:02 | atx-agent version [ 0.10.0 ].
INFO | 2025-01-11 21:08:02 | device wlan ip: [ 10.0.2.15 ].
INFO | 2025-01-11 21:08:08 | Uiautomator2 service started.
INFO | 2025-01-11 21:08:08 | Screen Size (1280, 720)
INFO | 2025-01-11 21:08:08 | Screen Size Ratio: 1.0
INFO | 2025-01-11 21:08:08 | --------Emulator Init Finished----------
INFO | 2025-01-11 21:08:08 | --------Initialization Finished----------
INFO | 2025-01-11 21:08:08 | Starting Blue Archive Auto Script...
INFO | 2025-01-11 21:08:08 | -------------- Start Scheduler ----------------
INFO | 2025-01-11 21:08:08 | CHECK RESTART
INFO | 2025-01-11 21:08:08 | Scheduler : {
INFO | 2025-01-11 21:08:08 | pre_task : []
INFO | 2025-01-11 21:08:08 | current_task : cafe_reward
INFO | 2025-01-11 21:08:08 | post_task : []
INFO | 2025-01-11 21:08:08 | }
INFO | 2025-01-11 21:08:08 | current_task: [ cafe_reward ] start
WARNING | 2025-01-11 21:08:08 | Failed to call nemu_capture_display, result=1
ERROR | 2025-01-11 21:08:08 | init() missing 1 required positional argument: 'logger'
ERROR | 2025-01-11 21:08:08 | init() missing 1 required positional argument: 'logger'
ERROR | 2025-01-11 21:08:08 | Request Human Take Over
ERROR | 2025-01-11 21:08:08 | error occurred, stop all activities

@pur1fying
Copy link
Owner

检查一下是否更新

@KarylDAZE
Copy link
Author

刚更新了,再观察一段时间吧

@KarylDAZE
Copy link
Author

出现了新问题,应该是我在手动操作的过程中开始执行咖啡厅,然后报错,并且再次点启动脚本也同样报错,只能重启脚本

INFO | 2025-01-16 21:08:27 | totally find 6 interactions
INFO | 2025-01-16 21:08:27 | click (436 , 401)
INFO | 2025-01-16 21:08:27 | click (783 , 282)
INFO | 2025-01-16 21:08:27 | click (786 , 494)
INFO | 2025-01-16 21:08:27 | click (937 , 368)
INFO | 2025-01-16 21:08:27 | click (1207 , 422)
INFO | 2025-01-16 21:08:28 | click (1262 , 262)
INFO | 2025-01-16 21:08:28 | cafe_reward next_time : 2025-01-16 22:08:28
INFO | 2025-01-16 21:08:28 | all activities finished, return to main page
INFO | 2025-01-16 21:08:28 | find main_page_quick-home
INFO | 2025-01-16 21:08:28 | click (1236 , 31 )
INFO | 2025-01-16 21:08:29 | loading, t load : 0.298
INFO | 2025-01-16 21:08:29 | loading, t load : 0.616
INFO | 2025-01-16 21:08:29 | loading, t load : 0.936
INFO | 2025-01-16 21:08:30 | loading, t load : 1.258
INFO | 2025-01-16 21:08:30 | loading, t load : 1.577
INFO | 2025-01-16 21:08:30 | loading, t load : 1.897
INFO | 2025-01-16 21:08:31 | loading, t load : 2.215
INFO | 2025-01-16 21:08:31 | loading, t load : 2.537
INFO | 2025-01-16 21:08:31 | loading, t load : 2.862
INFO | 2025-01-16 21:08:32 | loading, t load : 3.185
INFO | 2025-01-16 21:08:32 | loading, t load : 3.505
INFO | 2025-01-16 21:08:32 | loading, t load : 3.828
INFO | 2025-01-16 21:08:33 | end : main_page
INFO | 2025-01-16 22:08:28 | Scheduler : {
INFO | 2025-01-16 22:08:28 | pre_task : []
INFO | 2025-01-16 22:08:28 | current_task : cafe_reward
INFO | 2025-01-16 22:08:28 | post_task : []
INFO | 2025-01-16 22:08:28 | }
INFO | 2025-01-16 22:08:28 | current_task: [ cafe_reward ] start
WARNING | 2025-01-16 22:08:28 | Failed to call nemu_capture_display, result=1
ERROR | 2025-01-16 22:08:28 | 'NoneType' object has no attribute 'fileno'
ERROR | 2025-01-16 22:08:28 | 'NoneType' object has no attribute 'fileno'
ERROR | 2025-01-16 22:08:28 | Request Human Take Over
ERROR | 2025-01-16 22:08:28 | error occurred, stop all activities
INFO | 2025-01-16 22:20:37 | --------Initializing All Data----------
INFO | 2025-01-16 22:20:37 | --------------Init Emulator----------------
INFO | 2025-01-16 22:20:37 | -- BAAS Check Emulator Start --
INFO | 2025-01-16 22:20:37 | -- Start Multi Emulator --
INFO | 2025-01-16 22:20:37 | EmulatorName: mumu
INFO | 2025-01-16 22:20:37 | MultiInstanceNumber: 3
INFO | 2025-01-16 22:20:42 | Start wait 0 seconds for emulator to start.
INFO | 2025-01-16 22:20:42 | Serial : 127.0.0.1:16480
INFO | 2025-01-16 22:20:42 | Detect Device
INFO | 2025-01-16 22:20:42 | Available devices are listed below, choose the one you want to run BAAS on.
INFO | 2025-01-16 22:20:42 | 1 : [ 127.0.0.1:16448 ]
INFO | 2025-01-16 22:20:42 | 2 : [ 127.0.0.1:16480 ]
INFO | 2025-01-16 22:20:42 | 3 : [ 127.0.0.1:16512 ]
INFO | 2025-01-16 22:20:42 | already connected to 127.0.0.1:16480
INFO | 2025-01-16 22:20:42 | Detect Package
INFO | 2025-01-16 22:20:42 | Check Package [ com.RoamingStar.BlueArchive ] Exist.
INFO | 2025-01-16 22:20:42 | List Packages
INFO | 2025-01-16 22:20:42 | Package Found.
INFO | 2025-01-16 22:20:42 | Server : CN
INFO | 2025-01-16 22:20:42 | MuMu Keep Alive :
INFO | 2025-01-16 22:20:42 | screenshot_interval set to 0.3
INFO | 2025-01-16 22:20:42 | Screenshot method : nemu
INFO | 2025-01-16 22:20:42 | Control method : uiautomator2
INFO | 2025-01-16 22:20:42 | screenshot_interval set to 0.3
INFO | 2025-01-16 22:20:42 | --------------Check ATX install ----------------
INFO | 2025-01-16 22:20:42 | Device [ 127.0.0.1:16480 ] is online.
INFO | 2025-01-16 22:20:42 | uiautomator2 version: [ 2.16.23 ].
INFO | 2025-01-16 22:20:42 | apk-debug package-info: [ {'package_name': 'com.github.uiautomator', 'version_name': '2.3.3', 'version_code': 2003003, 'flags': ['DEBUGGABLE', 'HAS_CODE', 'ALLOW_CLEAR_USER_DATA', 'ALLOW_BACKUP'], 'first_install_time': datetime.datetime(2023, 12, 16, 22, 48, 32), 'last_update_time': datetime.datetime(2023, 12, 16, 22, 48, 32), 'signature': 'ae17cd86], past signatures:[', 'path': '/data/app/~~Zsl13zDYH_ZQ-S2mpONv5A==/com.github.uiautomator-dzYPpcGGUjY1k1OBm8xzOw==/base.apk', 'sub_apk_paths': []} ].
INFO | 2025-01-16 22:20:42 | apk-debug-test package-info: [ {'package_name': 'com.github.uiautomator.test', 'version_name': None, 'version_code': 0, 'flags': ['DEBUGGABLE', 'HAS_CODE', 'ALLOW_CLEAR_USER_DATA', 'ALLOW_BACKUP'], 'first_install_time': datetime.datetime(2023, 12, 16, 22, 48, 32), 'last_update_time': datetime.datetime(2023, 12, 16, 22, 48, 32), 'signature': 'ae17cd86], past signatures:[', 'path': '/data/app/~~gYmQmMZptar-PFDpwMp4dA==/com.github.uiautomator.test-IroKi8GuJ1eMj-cHgDNn6A==/base.apk', 'sub_apk_paths': []} ].
INFO | 2025-01-16 22:20:42 | Already installed com.github.uiautomator apks
INFO | 2025-01-16 22:20:42 | Stop atx-agent.
INFO | 2025-01-16 22:20:42 | Real version: [0, 10, 0], Expect version:[0, 10, 0].
INFO | 2025-01-16 22:20:42 | Start atx-agent.
INFO | 2025-01-16 22:20:42 | Check atx-agent version
INFO | 2025-01-16 22:20:42 | Forward: local:tcp:14352 -> remote:tcp:7912
INFO | 2025-01-16 22:20:42 | atx-agent version [ 0.10.0 ].
INFO | 2025-01-16 22:20:42 | device wlan ip: [ 10.0.2.15 ].
INFO | 2025-01-16 22:20:49 | Uiautomator2 service started.
INFO | 2025-01-16 22:20:49 | Screen Size (1280, 720)
INFO | 2025-01-16 22:20:49 | Screen Size Ratio: 1.0
INFO | 2025-01-16 22:20:49 | --------Emulator Init Finished----------
INFO | 2025-01-16 22:20:49 | --------Initialization Finished----------
INFO | 2025-01-16 22:20:49 | Starting Blue Archive Auto Script...
INFO | 2025-01-16 22:20:49 | -------------- Start Scheduler ----------------
INFO | 2025-01-16 22:20:49 | CHECK RESTART
INFO | 2025-01-16 22:20:49 | Scheduler : {
INFO | 2025-01-16 22:20:49 | pre_task : []
INFO | 2025-01-16 22:20:49 | current_task : cafe_reward
INFO | 2025-01-16 22:20:49 | post_task : []
INFO | 2025-01-16 22:20:49 | }
INFO | 2025-01-16 22:20:49 | current_task: [ cafe_reward ] start
WARNING | 2025-01-16 22:20:49 | Failed to call nemu_capture_display, result=1
ERROR | 2025-01-16 22:20:49 | 'NoneType' object has no attribute 'fileno'
ERROR | 2025-01-16 22:20:49 | 'NoneType' object has no attribute 'fileno'
ERROR | 2025-01-16 22:20:49 | Request Human Take Over
ERROR | 2025-01-16 22:20:49 | error occurred, stop all activities
INFO | 2025-01-16 22:20:54 | --------Initializing All Data----------
INFO | 2025-01-16 22:20:54 | --------------Init Emulator----------------
INFO | 2025-01-16 22:20:54 | -- BAAS Check Emulator Start --
INFO | 2025-01-16 22:20:54 | -- Start Multi Emulator --
INFO | 2025-01-16 22:20:54 | EmulatorName: mumu
INFO | 2025-01-16 22:20:54 | MultiInstanceNumber: 3
INFO | 2025-01-16 22:20:55 | Start wait 0 seconds for emulator to start.
INFO | 2025-01-16 22:20:55 | Serial : 127.0.0.1:16480
INFO | 2025-01-16 22:20:55 | Detect Device
INFO | 2025-01-16 22:20:55 | Available devices are listed below, choose the one you want to run BAAS on.
INFO | 2025-01-16 22:20:55 | 1 : [ 127.0.0.1:16448 ]
INFO | 2025-01-16 22:20:55 | 2 : [ 127.0.0.1:16480 ]
INFO | 2025-01-16 22:20:55 | 3 : [ 127.0.0.1:16512 ]
INFO | 2025-01-16 22:20:55 | already connected to 127.0.0.1:16480
INFO | 2025-01-16 22:20:55 | Detect Package
INFO | 2025-01-16 22:20:55 | Check Package [ com.RoamingStar.BlueArchive ] Exist.
INFO | 2025-01-16 22:20:55 | List Packages
INFO | 2025-01-16 22:20:55 | Package Found.
INFO | 2025-01-16 22:20:55 | Server : CN
INFO | 2025-01-16 22:20:55 | MuMu Keep Alive :
INFO | 2025-01-16 22:20:55 | screenshot_interval set to 0.3
INFO | 2025-01-16 22:20:55 | Screenshot method : nemu
INFO | 2025-01-16 22:20:55 | Control method : uiautomator2
INFO | 2025-01-16 22:20:55 | screenshot_interval set to 0.3
INFO | 2025-01-16 22:20:55 | --------------Check ATX install ----------------
INFO | 2025-01-16 22:20:55 | Device [ 127.0.0.1:16480 ] is online.
INFO | 2025-01-16 22:20:55 | Uiautomator2 service started.
INFO | 2025-01-16 22:20:55 | Screen Size (1280, 720)
INFO | 2025-01-16 22:20:55 | Screen Size Ratio: 1.0
INFO | 2025-01-16 22:20:55 | --------Emulator Init Finished----------
INFO | 2025-01-16 22:20:55 | --------Initialization Finished----------
INFO | 2025-01-16 22:20:55 | Starting Blue Archive Auto Script...
INFO | 2025-01-16 22:20:55 | -------------- Start Scheduler ----------------
INFO | 2025-01-16 22:20:55 | CHECK RESTART
INFO | 2025-01-16 22:20:55 | Scheduler : {
INFO | 2025-01-16 22:20:55 | pre_task : []
INFO | 2025-01-16 22:20:56 | current_task : cafe_reward
INFO | 2025-01-16 22:20:56 | post_task : []
INFO | 2025-01-16 22:20:56 | }
INFO | 2025-01-16 22:20:56 | current_task: [ cafe_reward ] start
WARNING | 2025-01-16 22:20:56 | Failed to call nemu_capture_display, result=1
ERROR | 2025-01-16 22:20:56 | 'NoneType' object has no attribute 'fileno'
ERROR | 2025-01-16 22:20:56 | 'NoneType' object has no attribute 'fileno'
ERROR | 2025-01-16 22:20:56 | Request Human Take Over
ERROR | 2025-01-16 22:20:56 | error occurred, stop all activities

@KarylDAZE
Copy link
Author

顺带一提,建议在修复Issue中提出的问题时,在commit信息后加上 (#issue编号),这样对应Issue中会自动引用该提交

@KarylDAZE
Copy link
Author

Image

手动打总力战之后停在这个界面,没有进行任何操作,baas执行任务时报错:

.......
INFO | 2025-01-17 21:08:24 | loading, t load : 2.809 
INFO | 2025-01-17 21:08:24 | loading, t load : 3.123 
INFO | 2025-01-17 21:08:25 | loading, t load : 3.437 
INFO | 2025-01-17 21:08:25 | end : main_page 
INFO | 2025-01-17 22:08:20 | KILL CURRENT UIAUTOMATOR2 
INFO | 2025-01-17 22:08:28 | click (5    ,  5  ) 
INFO | 2025-01-17 22:08:28 | Scheduler : { 
INFO | 2025-01-17 22:08:28 |                 pre_task         : [] 
INFO | 2025-01-17 22:08:28 |                 current_task     : cafe_reward 
INFO | 2025-01-17 22:08:28 |                 post_task        : [] 
INFO | 2025-01-17 22:08:28 |             } 
INFO | 2025-01-17 22:08:28 | current_task: [ cafe_reward ] start 

WARNING | 2025-01-17 22:08:28 | Failed to call nemu_capture_display, result=1
ERROR | 2025-01-17 22:08:28 | Script Error Occurred
ERROR | 2025-01-17 22:08:28 | Traceback (most recent call last):
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\Baas_thread.py", line 465,
ERROR | 2025-01-17 22:08:28 | in solve
ERROR | 2025-01-17 22:08:28 | return func_dictactivity
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\module\cafe_reward.py", line 9,
ERROR | 2025-01-17 22:08:28 | in implement
ERROR | 2025-01-17 22:08:28 | self.quick_method_to_main_page()
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\Baas_thread.py", line 621,
ERROR | 2025-01-17 22:08:28 | in quick_method_to_main_page
ERROR | 2025-01-17 22:08:28 | picture.co_detect(self, "main_page", rgb_possi
ERROR | 2025-01-17 22:08:28 | bles, None, img_possibles, skip_first_screenshot,
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\picture.py", line 30, in co
ERROR | 2025-01-17 22:08:28 | detect
ERROR | 2025-01-17 22:08:28 | color.wait_loading(self)
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\color.py", line 8, in wait

ERROR | 2025-01-17 22:08:28 | loading
ERROR | 2025-01-17 22:08:28 | self.latest_img_array = self.get_screenshot_ar
ERROR | 2025-01-17 22:08:28 | ray()
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\Baas_thread.py", line 159,
ERROR | 2025-01-17 22:08:28 | in get_screenshot_array
ERROR | 2025-01-17 22:08:28 | return self.screenshot.screenshot()
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\device\Screenshot.py", line
ERROR | 2025-01-17 22:08:28 | 35, in screenshot
ERROR | 2025-01-17 22:08:28 | image = self.screenshot_instance.screenshot()
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\device\screenshot\nemu.py",
ERROR | 2025-01-17 22:08:28 | line 44, in screenshot
ERROR | 2025-01-17 22:08:28 | return self.nemu_client.screenshot()
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\device\nemu_client.py", lin
ERROR | 2025-01-17 22:08:28 | e 317, in screenshot
ERROR | 2025-01-17 22:08:28 | self.get_resolution()
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\device\nemu_client.py", lin
ERROR | 2025-01-17 22:08:28 | e 299, in get_resolution
ERROR | 2025-01-17 22:08:28 | ret = self.ev_run_sync(
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\device\nemu_client.py", lin
ERROR | 2025-01-17 22:08:28 | e 283, in ev_run_sync
ERROR | 2025-01-17 22:08:28 | with CaptureNemuIpc(self.logger):
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\device\nemu_client.py", lin
ERROR | 2025-01-17 22:08:28 | e 106, in enter
ERROR | 2025-01-17 22:08:28 | super().enter()
ERROR | 2025-01-17 22:08:28 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-17 22:08:28 | Portable_full_env\core\device\nemu_client.py", lin
ERROR | 2025-01-17 22:08:28 | e 51, in enter
ERROR | 2025-01-17 22:08:28 | self.fdout = sys.stdout.fileno()
ERROR | 2025-01-17 22:08:28 | AttributeError: 'NoneType' object has no attribute
ERROR | 2025-01-17 22:08:28 | 'fileno'
ERROR | 2025-01-17 22:08:28 | All activities stopped. Require human take over.

@KarylDAZE
Copy link
Author

重启baas后再次运行任务,很快报错:

INFO | 2025-01-24 10:26:42 | C:\Tools\BlueArchiveAutoSctipt_win_x86_64-Portable_full_env 
INFO | 2025-01-24 10:26:42 | ocr needed: ['NUM', 'Global', 'CN'] 
INFO | 2025-01-24 10:26:43 | Test ocrNUM : 0001011001001100100101101010011010 
INFO | 2025-01-24 10:26:43 | Test ocrCN : 我爱爱丽丝 
INFO | 2025-01-24 10:26:43 | Test ocrEN : I love Aris 
INFO | 2025-01-24 10:26:43 | -- All Data Initialization Complete Script ready-- 
INFO | 2025-01-24 10:26:47 | --------Initializing All Data---------- 
INFO | 2025-01-24 10:26:47 | --------------Init Emulator---------------- 
INFO | 2025-01-24 10:26:47 | -- BAAS Check Emulator Start -- 
INFO | 2025-01-24 10:26:47 | -- Start Multi Emulator -- 
INFO | 2025-01-24 10:26:47 | EmulatorName: mumu 
INFO | 2025-01-24 10:26:47 | MultiInstanceNumber: 3 
INFO | 2025-01-24 10:26:50 |  Start wait 0 seconds for emulator to start.  
INFO | 2025-01-24 10:26:50 | Serial : 127.0.0.1:16480 
INFO | 2025-01-24 10:26:50 | Detect Device 
INFO | 2025-01-24 10:26:50 | Available devices are listed below, choose the one you want to run BAAS on. 
INFO | 2025-01-24 10:26:50 | 1 : [ 127.0.0.1:16416 ] 
INFO | 2025-01-24 10:26:50 | 2 : [ 127.0.0.1:16448 ] 
INFO | 2025-01-24 10:26:50 | 3 : [ 127.0.0.1:16480 ] 
INFO | 2025-01-24 10:26:50 | 4 : [ 127.0.0.1:16512 ] 
INFO | 2025-01-24 10:26:50 | already connected to 127.0.0.1:16480 
INFO | 2025-01-24 10:26:50 | Detect Package 
INFO | 2025-01-24 10:26:50 | Check Package [ com.RoamingStar.BlueArchive ] Exist. 
INFO | 2025-01-24 10:26:50 | List Packages 
INFO | 2025-01-24 10:26:50 | Package Found. 
INFO | 2025-01-24 10:26:50 | Server : CN 
INFO | 2025-01-24 10:26:50 | MuMu Keep Alive :  
INFO | 2025-01-24 10:26:50 | screenshot_interval set to 0.3 
INFO | 2025-01-24 10:26:50 | Screenshot method : nemu 
INFO | 2025-01-24 10:26:50 | NemuIpcImpl init 
INFO | 2025-01-24 10:26:50 | nemu_folder = D:\Program Files\MuMuPlayer-12.0 
INFO | 2025-01-24 10:26:50 | ipc_dll     = D:\Program Files\MuMuPlayer-12.0\shell\sdk\external_renderer_ipc.dll 
INFO | 2025-01-24 10:26:50 | instance_id = 3 
INFO | 2025-01-24 10:26:50 | display_id  = 0 
INFO | 2025-01-24 10:26:50 | Control method : uiautomator2 
INFO | 2025-01-24 10:26:50 | screenshot_interval set to 0.3 
INFO | 2025-01-24 10:26:50 | --------------Check ATX install ---------------- 
INFO | 2025-01-24 10:26:50 | Device [ 127.0.0.1:16480 ] is online. 
INFO | 2025-01-24 10:26:51 | Uiautomator2 service started. 
INFO | 2025-01-24 10:26:51 | Screen Size  (1280, 720) 
INFO | 2025-01-24 10:26:51 | Screen Size Ratio: 1.0 
INFO | 2025-01-24 10:26:51 | --------Emulator Init Finished---------- 
INFO | 2025-01-24 10:26:51 | --------Initialization Finished---------- 
INFO | 2025-01-24 10:26:51 | Starting Blue Archive Auto Script... 
INFO | 2025-01-24 10:26:51 | -------------- Start Scheduler ---------------- 
INFO | 2025-01-24 10:26:51 | CHECK RESTART 
INFO | 2025-01-24 10:26:51 | Scheduler : { 
INFO | 2025-01-24 10:26:51 |                 pre_task         : [] 
INFO | 2025-01-24 10:26:51 |                 current_task     : no1_cafe_invite 
INFO | 2025-01-24 10:26:51 |                 post_task        : [] 
INFO | 2025-01-24 10:26:51 |             } 
INFO | 2025-01-24 10:26:51 | current_task: [ no1_cafe_invite ] start 
INFO | 2025-01-24 10:26:51 | end : main_page 
INFO | 2025-01-24 10:26:51 | find : main_page 
INFO | 2025-01-24 10:26:51 | click (95   ,  699) 
INFO | 2025-01-24 10:26:53 | loading, t load : 0.314 
INFO | 2025-01-24 10:26:53 | loading, t load : 0.631 
INFO | 2025-01-24 10:26:54 | loading, t load : 1.029 
INFO | 2025-01-24 10:26:54 | loading, t load : 1.375 
INFO | 2025-01-24 10:26:54 | loading, t load : 1.727 
INFO | 2025-01-24 10:26:55 | loading, t load : 2.18 
INFO | 2025-01-24 10:26:55 | loading, t load : 2.542 

ERROR | 2025-01-24 10:26:56 | Script Error Occurred
ERROR | 2025-01-24 10:26:56 | Traceback (most recent call last):
ERROR | 2025-01-24 10:26:56 | File "asyncio\tasks.py", line 490, in wait_for
ERROR | 2025-01-24 10:26:56 | asyncio.exceptions.CancelledError
ERROR | 2025-01-24 10:26:56 | The above exception was the direct cause of the fo
ERROR | 2025-01-24 10:26:56 | llowing exception:
ERROR | 2025-01-24 10:26:56 | Traceback (most recent call last):
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\core\Baas_thread.py", line 468,
ERROR | 2025-01-24 10:26:56 | in solve
ERROR | 2025-01-24 10:26:56 | return func_dictactivity
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\module\no1_cafe_invite.py", line
ERROR | 2025-01-24 10:26:56 | 6, in implement
ERROR | 2025-01-24 10:26:56 | to_cafe(self, True)
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\module\cafe_reward.py", line 45,
ERROR | 2025-01-24 10:26:56 | in to_cafe
ERROR | 2025-01-24 10:26:56 | picture.co_detect(self, 'cafe', rgb_possibles,
ERROR | 2025-01-24 10:26:56 | 'cafe_menu', img_possibles, skip_first_screenshot
ERROR | 2025-01-24 10:26:56 | )
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\core\picture.py", line 30, in co
ERROR | 2025-01-24 10:26:56 | detect
ERROR | 2025-01-24 10:26:56 | color.wait_loading(self)
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\core\color.py", line 8, in wait

ERROR | 2025-01-24 10:26:56 | loading
ERROR | 2025-01-24 10:26:56 | self.latest_img_array = self.get_screenshot_ar
ERROR | 2025-01-24 10:26:56 | ray()
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\core\Baas_thread.py", line 162,
ERROR | 2025-01-24 10:26:56 | in get_screenshot_array
ERROR | 2025-01-24 10:26:56 | return self.screenshot.screenshot()
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\core\device\Screenshot.py", line
ERROR | 2025-01-24 10:26:56 | 35, in screenshot
ERROR | 2025-01-24 10:26:56 | image = self.screenshot_instance.screenshot()
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\core\device\screenshot\nemu.py",
ERROR | 2025-01-24 10:26:56 | line 44, in screenshot
ERROR | 2025-01-24 10:26:56 | return self.nemu_client.screenshot()
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\core\device\nemu_client.py", lin
ERROR | 2025-01-24 10:26:56 | e 324, in screenshot
ERROR | 2025-01-24 10:26:56 | ret = self.ev_run_sync(
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\core\device\nemu_client.py", lin
ERROR | 2025-01-24 10:26:56 | e 271, in ev_run_sync
ERROR | 2025-01-24 10:26:56 | result = self.ev.run_until_complete(self.ev_r
ERROR | 2025-01-24 10:26:56 | un_async(func, *args, **kwargs))
ERROR | 2025-01-24 10:26:56 | File "asyncio\base_events.py", line 647, in run

ERROR | 2025-01-24 10:26:56 | until_complete
ERROR | 2025-01-24 10:26:56 | File "C:\Tools\BlueArchiveAutoSctipt_win_x86_64-
ERROR | 2025-01-24 10:26:56 | Portable_full_env\core\device\nemu_client.py", lin
ERROR | 2025-01-24 10:26:56 | e 256, in ev_run_async
ERROR | 2025-01-24 10:26:56 | result = await asyncio.wait_for(self._ev.run_i
ERROR | 2025-01-24 10:26:56 | n_executor(None, func_wrapped), timeout=timeout)
ERROR | 2025-01-24 10:26:56 | File "asyncio\tasks.py", line 492, in wait_for
ERROR | 2025-01-24 10:26:56 | asyncio.exceptions.TimeoutError
ERROR | 2025-01-24 10:26:56 | All activities stopped. Require human take over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants