runhey / OnmyojiAutoScript

Onmyoji Auto Script | 阴阳师脚本
https://runhey.github.io/OnmyojiAutoScript-website/
GNU General Public License v3.0
1.88k stars 187 forks source link

更新最新版OAS无法连接host service #435

Closed 7661349mk closed 2 months ago

7661349mk commented 2 months ago

在提问之前...

描述你的问题

打开OAS突然无法连接host service,设置都是之前的没有变更

如何复现

  1. 前往 '...'
  2. 点击 '....'
  3. 滑动到 '....'
  4. 出现问题

预期行为

No response

相关 Logs

════════════════════════════════════════════════════════════════════════════════
──────────────────────────────────── START ─────────────────────────────────────
════════════════════════════════════════════════════════════════════════════════
2024-09-12 00:27:35.619 |            script.py:0406 |     INFO | Start scheduler loop: oas2                                                                     
2024-09-12 00:27:35.631 |            config.py:0214 |     INFO | Pending tasks: ['Orochi']                                                                      
2024-09-12 00:27:35.634 |            logger.py:0284 |     INFO | [Task] Orochi (Enable, 5, 2023-01-01 00:00:00)                                                 
════════════════════════════════════ DEVICE ════════════════════════════════════
2024-09-12 00:27:35.639 |            logger.py:0271 |     INFO | DEVICE                                                                                         
2024-09-12 00:27:35.642 |            logger.py:0284 |     INFO | [AdbBinary]                                                                                    
F:/yysjiaoben/OnmyojiAutoScript-easy-install/toolkit/Lib/site-packages/adbutils/binaries/adb.exe                                                                
2024-09-12 00:27:35.647 |            logger.py:0284 |     INFO | [AdbClient] AdbClient(127.0.0.1, 5037)                                                         
2024-09-12 00:27:35.651 |            logger.py:0276 |     INFO | <<< DETECT DEVICE >>>                                                                          
2024-09-12 00:27:35.654 |        connection.py:0750 |     INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set                  
Alas.Emulator.Serial="auto"                                                                                                                                     
2024-09-12 00:27:35.658 |        connection.py:0757 |     INFO | 127.0.0.1:7555                                                                                 
2024-09-12 00:27:35.669 |        connection.py:0553 |     INFO | connected to 127.0.0.1:16384                                                                   
2024-09-12 00:27:35.673 |            logger.py:0284 |     INFO | [AdbDevice] AdbDevice(serial=127.0.0.1:16384 )                                                 
2024-09-12 00:27:35.675 |            logger.py:0284 |     INFO | [PackageName] com.netease.onmyoji.wyzymnqsd_cps                                                
2024-09-12 00:27:35.678 |            logger.py:0276 |     INFO | <<< HANDLE >>>                                                                                 
2024-09-12 00:27:35.682 |            handle.py:0190 |     INFO | Handle is handle string. oas use it as root handle title                                       
2024-09-12 00:27:35.685 |            handle.py:0194 |     INFO | The root handle title is MuMu模拟器12 and num is 1116930                                       
2024-09-12 00:27:35.688 |            handle.py:0199 |     INFO | Emulator handle structure:                                                                     
2024-09-12 00:27:35.692 |            handle.py:0201 |     INFO | MuMu模拟器12                                                                                   
2024-09-12 00:27:35.695 |            handle.py:0201 |     INFO | └── MuMuPlayer                                                                                 
2024-09-12 00:27:35.698 |            handle.py:0201 |     INFO |     └── nemudisplay                                                                            
2024-09-12 00:27:35.701 |            handle.py:0203 |     INFO | 1116930                                                                                        
2024-09-12 00:27:35.704 |            handle.py:0203 |     INFO | └── 1247950                                                                                    
2024-09-12 00:27:35.707 |            handle.py:0203 |     INFO |     └── 4720580                                                                                
2024-09-12 00:27:35.710 |            handle.py:0206 |     INFO | Emulator family: EmulatorFamily.FAMILY_MUMU                                                    
2024-09-12 00:27:35.714 |            handle.py:0209 |     INFO | Your window screen scale rate: 1.25                                                            
2024-09-12 00:27:35.717 |            handle.py:0336 |     INFO | The emulator is MuMu模拟器12                                                                   
2024-09-12 00:27:35.720 |            handle.py:0211 |     INFO | Screenshot handle num: 1247950                                                                 
2024-09-12 00:27:35.723 |            handle.py:0212 |     INFO | Emulator screenshot size: (1280, 720)                                                          
2024-09-12 00:27:35.726 |        screenshot.py:0185 |     INFO | Screenshot interval set to 0.3s                                                                
2024-09-12 00:27:35.729 |            script.py:0440 |     INFO | Scheduler: Start task `Orochi`                                                                 
════════════════════════════════════════════════════════════════════════════════
──────────────────────────────────── OROCHI ────────────────────────────────────
════════════════════════════════════════════════════════════════════════════════
2024-09-12 00:27:35.743 |            logger.py:0318 |    ERROR | AdbError: unknown host service                                                                 
2024-09-12 00:27:35.753 |        connection.py:0583 |     INFO | disconnected 127.0.0.1:16384                                                                   
2024-09-12 00:27:35.848 |        connection.py:0553 |     INFO | connected to 127.0.0.1:16384                                                                   
2024-09-12 00:27:35.852 |            logger.py:0276 |     INFO | <<< DETECT DEVICE >>>                                                                          
2024-09-12 00:27:35.856 |        connection.py:0750 |     INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set                  
Alas.Emulator.Serial="auto"                                                                                                                                     
2024-09-12 00:27:35.861 |        connection.py:0757 |     INFO | 127.0.0.1:16384                                                                                
2024-09-12 00:27:35.865 |        connection.py:0757 |     INFO | 127.0.0.1:7555                                                                                 
2024-09-12 00:27:35.872 |            logger.py:0318 |    ERROR | AdbError: unknown host service                                                                 
2024-09-12 00:27:36.881 |        connection.py:0583 |     INFO | disconnected 127.0.0.1:16384                                                                   
2024-09-12 00:27:36.905 |        connection.py:0553 |     INFO | connected to 127.0.0.1:16384                                                                   
2024-09-12 00:27:36.908 |            logger.py:0276 |     INFO | <<< DETECT DEVICE >>>                                                                          
2024-09-12 00:27:36.912 |        connection.py:0750 |     INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set                  
Alas.Emulator.Serial="auto"                                                                                                                                     
2024-09-12 00:27:36.917 |        connection.py:0757 |     INFO | 127.0.0.1:16384                                                                                
2024-09-12 00:27:36.919 |        connection.py:0757 |     INFO | 127.0.0.1:7555                                                                                 
2024-09-12 00:27:36.925 |            logger.py:0318 |    ERROR | AdbError: unknown host service                                                                 
2024-09-12 00:27:39.936 |        connection.py:0583 |     INFO | disconnected 127.0.0.1:16384                                                                   
2024-09-12 00:27:39.946 |        connection.py:0553 |     INFO | connected to 127.0.0.1:16384                                                                   
2024-09-12 00:27:39.950 |            logger.py:0276 |     INFO | <<< DETECT DEVICE >>>                                                                          
2024-09-12 00:27:39.952 |        connection.py:0750 |     INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set                  
Alas.Emulator.Serial="auto"                                                                                                                                     
2024-09-12 00:27:39.957 |        connection.py:0757 |     INFO | 127.0.0.1:16384                                                                                
2024-09-12 00:27:39.961 |        connection.py:0757 |     INFO | 127.0.0.1:7555                                                                                 
2024-09-12 00:27:39.967 |            logger.py:0318 |    ERROR | AdbError: unknown host service                                                                 
2024-09-12 00:27:42.978 |        connection.py:0583 |     INFO | disconnected 127.0.0.1:16384                                                                   
2024-09-12 00:27:42.993 |        connection.py:0553 |     INFO | connected to 127.0.0.1:16384                                                                   
2024-09-12 00:27:42.997 |            logger.py:0276 |     INFO | <<< DETECT DEVICE >>>                                                                          
2024-09-12 00:27:43.000 |        connection.py:0750 |     INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set                  
Alas.Emulator.Serial="auto"                                                                                                                                     
2024-09-12 00:27:43.014 |        connection.py:0757 |     INFO | 127.0.0.1:16384                                                                                
2024-09-12 00:27:43.023 |        connection.py:0757 |     INFO | 127.0.0.1:7555                                                                                 
2024-09-12 00:27:43.030 |            logger.py:0318 |    ERROR | AdbError: unknown host service                                                                 
2024-09-12 00:27:43.033 |     uiautomator_2.py:0093 | CRITICAL | Retry screenshot_uiautomator2() failed                                                         
2024-09-12 00:27:43.037 |            script.py:0390 | CRITICAL |                                                                                                
2024-09-12 00:27:43.040 |            script.py:0391 | CRITICAL | Request human takeover                                                                         
2024-09-12 00:27:43.042 |            config.py:0385 |     INFO | Notifier: OAS2                                                                                 
2024-09-12 00:27:43.045 |    script_process.py:0139 |     INFO | Script oas2 process exit                                                                       
2024-09-12 00:27:43.048 |            logger.py:0318 |    ERROR | Error: 1                                                                                       
════════════════════════════════════════════════════════════════════════════════
──────────────────────────────────── START ─────────────────────────────────────
════════════════════════════════════════════════════════════════════════════════
2024-09-12 00:33:29.587 |            script.py:0406 |     INFO | Start scheduler loop: oas2                                                                     
2024-09-12 00:33:29.597 |            config.py:0214 |     INFO | Pending tasks: ['Orochi']                                                                      
2024-09-12 00:33:29.600 |            logger.py:0284 |     INFO | [Task] Orochi (Enable, 5, 2023-01-01 00:00:00)                                                 
════════════════════════════════════ DEVICE ════════════════════════════════════
2024-09-12 00:33:29.604 |            logger.py:0271 |     INFO | DEVICE                                                                                         
2024-09-12 00:33:29.606 |            logger.py:0284 |     INFO | [AdbBinary]                                                                                    
F:/yysjiaoben/OnmyojiAutoScript-easy-install/toolkit/Lib/site-packages/adbutils/binaries/adb.exe                                                                
2024-09-12 00:33:29.608 |            logger.py:0284 |     INFO | [AdbClient] AdbClient(127.0.0.1, 5037)                                                         
2024-09-12 00:33:29.611 |            logger.py:0276 |     INFO | <<< DETECT DEVICE >>>                                                                          
2024-09-12 00:33:29.613 |        connection.py:0750 |     INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set                  
Alas.Emulator.Serial="auto"                                                                                                                                     
2024-09-12 00:33:29.617 |        connection.py:0757 |     INFO | 127.0.0.1:16384                                                                                
2024-09-12 00:33:29.619 |        connection.py:0757 |     INFO | 127.0.0.1:7555                                                                                 
2024-09-12 00:33:29.625 |        connection.py:0553 |     INFO | already connected to 127.0.0.1:16384                                                           
2024-09-12 00:33:29.628 |            logger.py:0284 |     INFO | [AdbDevice] AdbDevice(serial=127.0.0.1:16384 )                                                 
2024-09-12 00:33:29.631 |            logger.py:0284 |     INFO | [PackageName] com.netease.onmyoji.wyzymnqsd_cps                                                
2024-09-12 00:33:29.631 |            logger.py:0276 |     INFO | <<< HANDLE >>>                                                                                 
2024-09-12 00:33:29.634 |            handle.py:0190 |     INFO | Handle is handle string. oas use it as root handle title                                       
2024-09-12 00:33:29.636 |            handle.py:0194 |     INFO | The root handle title is MuMu模拟器12 and num is 1116930                                       
2024-09-12 00:33:29.638 |            handle.py:0199 |     INFO | Emulator handle structure:                                                                     
2024-09-12 00:33:29.640 |            handle.py:0201 |     INFO | MuMu模拟器12                                                                                   
2024-09-12 00:33:29.642 |            handle.py:0201 |     INFO | └── MuMuPlayer                                                                                 
2024-09-12 00:33:29.644 |            handle.py:0201 |     INFO |     └── nemudisplay                                                                            
2024-09-12 00:33:29.647 |            handle.py:0203 |     INFO | 1116930                                                                                        
2024-09-12 00:33:29.649 |            handle.py:0203 |     INFO | └── 1247950                                                                                    
2024-09-12 00:33:29.652 |            handle.py:0203 |     INFO |     └── 4720580                                                                                
2024-09-12 00:33:29.654 |            handle.py:0206 |     INFO | Emulator family: EmulatorFamily.FAMILY_MUMU                                                    
2024-09-12 00:33:29.656 |            handle.py:0209 |     INFO | Your window screen scale rate: 1.25                                                            
2024-09-12 00:33:29.658 |            handle.py:0336 |     INFO | The emulator is MuMu模拟器12                                                                   
2024-09-12 00:33:29.660 |            handle.py:0211 |     INFO | Screenshot handle num: 1247950                                                                 
2024-09-12 00:33:29.662 |            handle.py:0212 |     INFO | Emulator screenshot size: (1280, 720)                                                          
2024-09-12 00:33:29.664 |        screenshot.py:0185 |     INFO | Screenshot interval set to 0.3s                                                                
2024-09-12 00:33:29.666 |            script.py:0440 |     INFO | Scheduler: Start task `Orochi`                                                                 
════════════════════════════════════════════════════════════════════════════════
──────────────────────────────────── OROCHI ────────────────────────────────────
════════════════════════════════════════════════════════════════════════════════
2024-09-12 00:33:29.675 |            logger.py:0318 |    ERROR | AdbError: unknown host service                                                                 
2024-09-12 00:33:29.684 |        connection.py:0583 |     INFO | disconnected 127.0.0.1:16384                                                                   
2024-09-12 00:33:29.705 |        connection.py:0553 |     INFO | connected to 127.0.0.1:16384                                                                   
2024-09-12 00:33:29.709 |            logger.py:0276 |     INFO | <<< DETECT DEVICE >>>                                                                          
2024-09-12 00:33:29.711 |        connection.py:0750 |     INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set                  
Alas.Emulator.Serial="auto"                                                                                                                                     
2024-09-12 00:33:29.715 |        connection.py:0757 |     INFO | 127.0.0.1:16384                                                                                
2024-09-12 00:33:29.717 |        connection.py:0757 |     INFO | 127.0.0.1:7555                                                                                 
2024-09-12 00:33:29.724 |            logger.py:0318 |    ERROR | AdbError: unknown host service                                                                 
2024-09-12 00:33:30.734 |        connection.py:0583 |     INFO | disconnected 127.0.0.1:16384                                                                   
2024-09-12 00:33:30.744 |        connection.py:0553 |     INFO | connected to 127.0.0.1:16384                                                                   
2024-09-12 00:33:30.747 |            logger.py:0276 |     INFO | <<< DETECT DEVICE >>>                                                                          
2024-09-12 00:33:30.749 |        connection.py:0750 |     INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set                  
Alas.Emulator.Serial="auto"                                                                                                                                     
2024-09-12 00:33:30.753 |        connection.py:0757 |     INFO | 127.0.0.1:16384                                                                                
2024-09-12 00:33:30.755 |        connection.py:0757 |     INFO | 127.0.0.1:7555                                                                                 
2024-09-12 00:33:30.759 |            logger.py:0318 |    ERROR | AdbError: unknown host service                                                                 
2024-09-12 00:33:33.768 |        connection.py:0583 |     INFO | disconnected 127.0.0.1:16384                                                                   
2024-09-12 00:33:33.778 |        connection.py:0553 |     INFO | connected to 127.0.0.1:16384                                                                   
2024-09-12 00:33:33.781 |            logger.py:0276 |     INFO | <<< DETECT DEVICE >>>                                                                          
2024-09-12 00:33:33.782 |        connection.py:0750 |     INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set                  
Alas.Emulator.Serial="auto"                                                                                                                                     
2024-09-12 00:33:33.785 |        connection.py:0757 |     INFO | 127.0.0.1:16384                                                                                
2024-09-12 00:33:33.788 |        connection.py:0757 |     INFO | 127.0.0.1:7555                                                                                 
2024-09-12 00:33:33.793 |            logger.py:0318 |    ERROR | AdbError: unknown host service                                                                 
2024-09-12 00:33:36.803 |        connection.py:0583 |     INFO | disconnected 127.0.0.1:16384                                                                   
2024-09-12 00:33:36.813 |        connection.py:0553 |     INFO | connected to 127.0.0.1:16384                                                                   
2024-09-12 00:33:36.816 |            logger.py:0276 |     INFO | <<< DETECT DEVICE >>>                                                                          
2024-09-12 00:33:36.818 |        connection.py:0750 |     INFO | Here are the available devices, copy to Alas.Emulator.Serial to use it or set                  
Alas.Emulator.Serial="auto"                                                                                                                                     
2024-09-12 00:33:36.820 |        connection.py:0757 |     INFO | 127.0.0.1:16384                                                                                
2024-09-12 00:33:36.827 |        connection.py:0757 |     INFO | 127.0.0.1:7555                                                                                 
2024-09-12 00:33:36.839 |            logger.py:0318 |    ERROR | AdbError: unknown host service                                                                 
2024-09-12 00:33:36.843 |     uiautomator_2.py:0093 | CRITICAL | Retry screenshot_uiautomator2() failed                                                         
2024-09-12 00:33:36.845 |            script.py:0390 | CRITICAL |                                                                                                
2024-09-12 00:33:36.847 |            script.py:0391 | CRITICAL | Request human takeover                                                                         
2024-09-12 00:33:36.849 |            config.py:0385 |     INFO | Notifier: OAS2                                                                                 
2024-09-12 00:33:36.851 |    script_process.py:0139 |     INFO | Script oas2 process exit                                                                       
2024-09-12 00:33:36.854 |            logger.py:0318 |    ERROR | Error: 1

截图

屏幕截图 2024-09-12 003413 屏幕截图 2024-09-12 003725 屏幕截图 2024-09-12 003712

还有别的吗?

No response

sauce8 commented 2 months ago

模拟器关了,oas关了。都重开下。我是这么解决的,后面正常用

7661349mk commented 2 months ago

都试过了,不行,请问可以给我看看你们的配置吗?我参考一下试试看,谢谢。

2769960069 @.***

 

------------------ 原始邮件 ------------------ 发件人: "runhey/OnmyojiAutoScript" @.>; 发送时间: 2024年9月12日(星期四) 上午10:27 @.>; @.**@.>; 主题: Re: [runhey/OnmyojiAutoScript] 更新最新版OAS无法连接host service (Issue #435)

模拟器关了,oas关了。都重开下。我是这么解决的,后面正常用

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

7661349mk commented 2 months ago

已经解决,更改为dev分支,OAS更改为默认设置,重启可以用了,感谢

runhey commented 2 months ago

我在alas翻到这个:https://github.com/LmeSzinc/AzurLaneAutoScript/issues/911

runhey commented 2 months ago

网上搜这个问题: image