runhey / OnmyojiAutoScript

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

oas服务启动时出现错误, adb相关 #478

Closed Lascym closed 3 weeks ago

Lascym commented 1 month ago

在提问之前...

描述你的问题

请问: 中午还在正常使用, 到晚上启动的时候突然报错, 在oasx界面启动时遇到的问题, 无法进入到oas脚本界面, 看报错是adb相关, 只有启动日志, 因为卡在了启动这一步, 尝试重装oas和oasx后问题依然存在 --后续从oas.exe直接启动, 可以进入oas1界面, 但是无法运行任务, log信息都是无法识别ui, 日志的截图都是抽象的纵向截图 感谢!!!

如何复现

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

预期行为

No response

相关 Logs

OAS working directory:
ShellException(pwd, exitCode 1, workingDirectory: H:\ruanjian\yys\oas)
./toolkit/Lib/site-packages/requests/sessions.py trust_env already patched
./toolkit/Lib/site-packages/pip/_vendor/requests/sessions.py trust_env already patched
./toolkit/Lib/site-packages/uiautomator2/init.py minicap_urls no need to patch
./toolkit/Lib/site-packages/uiautomator2/init.py appdir already patched
==================== SHOW DEPLOY CONFIG ====================
WebuiPort: 22288
Rest of the configs are the same as default
+---------------------------------------------------+
|                    UPDATE ALAS                    |
+---------------------------------------------------+
==================== GIT INIT ====================
"H:/ruanjian/yys/oas/toolkit/Git/mingw64/bin/git.exe" init
Reinitialized existing Git repository in H:/ruanjian/yys/oas/.git/
[ success ]
==================== SET GIT PROXY ====================
"H:/ruanjian/yys/oas/toolkit/Git/mingw64/bin/git.exe" config --local --unset http.proxy
[ allowed failure ], error_code: 5
"H:/ruanjian/yys/oas/toolkit/Git/mingw64/bin/git.exe" config --local --unset https.proxy
[ allowed failure ], error_code: 5
"H:/ruanjian/yys/oas/toolkit/Git/mingw64/bin/git.exe" config --local http.sslVerify false
[ success ]
==================== SET GIT REPOSITORY ====================
"H:/ruanjian/yys/oas/toolkit/Git/mingw64/bin/git.exe" remote set-url origin https://e.coding.net/onmyojiautoscript/oas/OnmyojiAutoScript.git
[ success ]
==================== FETCH REPOSITORY BRANCH ====================
"H:/ruanjian/yys/oas/toolkit/Git/mingw64/bin/git.exe" fetch origin master
[ success ]
==================== PULL REPOSITORY BRANCH ====================
"H:/ruanjian/yys/oas/toolkit/Git/mingw64/bin/git.exe" reset --hard origin/master
HEAD is now at 4a78456 Merge pull request #475 from runhey/dev
[ success ]
"H:/ruanjian/yys/oas/toolkit/Git/mingw64/bin/git.exe" pull --ff-only origin master
Already up to date.
[ success ]
==================== SHOW VERSION ====================
"H:/ruanjian/yys/oas/toolkit/Git/mingw64/bin/git.exe" --no-pager log --no-merges -1
commit c0258504e8b24ec38759c810a9fe440501c2eb86
Author: ryland <2234044577@qq.com>
Date:   Tue Oct 1 21:52:11 2024 +0800
    fix(FrogBoss): time delta error
[ success ]
+----------------------------------------------------------+
|                    KILL EXISTING ALAS                    |
+----------------------------------------------------------+
==================== KILL OAS.EXE ====================
pywin32 not installed, skip
==================== KILL PYTHON.EXE ====================
pywin32 not installed, skip
==================== KILL PYTHONW.EXE ====================
pywin32 not installed, skip
+-----------------------------------------------------------+
|                    UPDATE DEPENDENCIES                    |
+-----------------------------------------------------------+
==================== CHECK PYTHON ====================
"H:/ruanjian/yys/oas/toolkit/python.exe" --version
Python 3.10.11
[ success ]
==================== UPDATE DEPENDENCIES ====================
"H:/ruanjian/yys/oas/toolkit/python.exe" -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn --disable-pip-version-check
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: adbutils==0.11.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 9)) (0.11.0)
Requirement already satisfied: anyio==3.7.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 10)) (3.7.1)
Requirement already satisfied: anytree==2.8.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 11)) (2.8.0)
Requirement already satisfied: apkutils2==1.0.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 12)) (1.0.0)
Requirement already satisfied: cached-property==1.5.2 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 13)) (1.5.2)
Requirement already satisfied: certifi==2023.11.17 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 14)) (2023.11.17)
Requirement already satisfied: cffi==1.16.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 15)) (1.16.0)
Requirement already satisfied: charset-normalizer==3.3.2 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 16)) (3.3.2)
Requirement already satisfied: cigam==0.0.3 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 17)) (0.0.3)
Requirement already satisfied: click==8.1.7 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 18)) (8.1.7)
Requirement already satisfied: colorama==0.4.6 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 19)) (0.4.6)
Requirement already satisfied: coloredlogs==15.0.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 20)) (15.0.1)
Requirement already satisfied: cryptography==42.0.8 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 21)) (42.0.8)
Requirement already satisfied: decorator==5.1.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 22)) (5.1.1)
Requirement already satisfied: deprecated==1.2.14 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 23)) (1.2.14)
Requirement already satisfied: deprecation==2.1.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 24)) (2.1.0)
Requirement already satisfied: exceptiongroup==1.2.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 25)) (1.2.0)
Requirement already satisfied: fastapi==0.104.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 26)) (0.104.1)
Requirement already satisfied: filelock==3.13.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 27)) (3.13.1)
Requirement already satisfied: flatbuffers==23.5.26 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 28)) (23.5.26)
Requirement already satisfied: future==0.18.3 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 29)) (0.18.3)
Requirement already satisfied: gevent==23.9.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 30)) (23.9.1)
Requirement already satisfied: greenlet==3.0.3 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 31)) (3.0.3)
Requirement already satisfied: h11==0.14.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 32)) (0.14.0)
Requirement already satisfied: humanfriendly==10.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 33)) (10.0)
Requirement already satisfied: idna==3.6 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 34)) (3.6)
Requirement already satisfied: inflection==0.5.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 35)) (0.5.1)
Requirement already satisfied: logzero==1.7.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 36)) (1.7.0)
Requirement already satisfied: lxml==5.0.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 37)) (5.0.0)
Requirement already satisfied: markdown-it-py==2.2.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 38)) (2.2.0)
Requirement already satisfied: mdurl==0.1.2 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 39)) (0.1.2)
Requirement already satisfied: mpmath==1.3.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 40)) (1.3.0)
Requirement already satisfied: msgpack==1.0.7 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 41)) (1.0.7)
Requirement already satisfied: numpy==1.24.3 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 42)) (1.24.3)
Requirement already satisfied: oashya==0.0.7 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 43)) (0.0.7)
Requirement already satisfied: onepush==1.2.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 44)) (1.2.0)
Requirement already satisfied: onnxruntime==1.16.3 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 45)) (1.16.3)
Requirement already satisfied: opencv-python==4.7.0.72 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 46)) (4.7.0.72)
Requirement already satisfied: packaging==20.9 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 47)) (20.9)
Requirement already satisfied: paho-mqtt==1.6.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 48)) (1.6.1)
Requirement already satisfied: pillow==10.2.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 49)) (10.2.0)
Requirement already satisfied: ppocr-onnx==0.0.3.9 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 50)) (0.0.3.9)
Requirement already satisfied: progress==1.6 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 51)) (1.6)
Requirement already satisfied: protobuf==4.25.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 52)) (4.25.1)
Requirement already satisfied: py==1.11.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 53)) (1.11.0)
Requirement already satisfied: pyclipper==1.3.0.post5 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 54)) (1.3.0.post5)
Requirement already satisfied: pycparser==2.21 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 55)) (2.21)
Requirement already satisfied: pydantic==1.10.7 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 56)) (1.10.7)
Requirement already satisfied: pyelftools==0.30 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 57)) (0.30)
Requirement already satisfied: pygments==2.17.2 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 58)) (2.17.2)
Requirement already satisfied: pyparsing==3.1.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 59)) (3.1.1)
Requirement already satisfied: pyreadline3==3.4.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 60)) (3.4.1)
Requirement already satisfied: pywin32==306 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 61)) (306)
Requirement already satisfied: pyyaml==6.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 62)) (6.0)
Requirement already satisfied: pyzmq==25.1.2 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 63)) (25.1.2)
Requirement already satisfied: requests==2.31.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 64)) (2.31.0)
Requirement already satisfied: retry==0.9.2 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 65)) (0.9.2)
Requirement already satisfied: rich==13.3.5 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 66)) (13.3.5)
Requirement already satisfied: shapely==2.0.2 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 67)) (2.0.2)
Requirement already satisfied: six==1.16.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 68)) (1.16.0)
Requirement already satisfied: sniffio==1.3.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 69)) (1.3.0)
Requirement already satisfied: starlette==0.27.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 70)) (0.27.0)
Requirement already satisfied: sympy==1.12 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 71)) (1.12)
Requirement already satisfied: tqdm==4.65.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 72)) (4.65.0)
Requirement already satisfied: typing-extensions==4.9.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 73)) (4.9.0)
Requirement already satisfied: uiautomator2==2.16.17 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 74)) (2.16.17)
Requirement already satisfied: uiautomator2cache==0.3.0.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 75)) (0.3.0.1)
Requirement already satisfied: urllib3==2.1.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 76)) (2.1.0)
Requirement already satisfied: uvicorn==0.23.2 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 77)) (0.23.2)
Requirement already satisfied: websockets==11.0.3 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 78)) (11.0.3)
Requirement already satisfied: whichcraft==0.6.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 79)) (0.6.1)
Requirement already satisfied: wrapt==1.15.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 80)) (1.15.0)
Requirement already satisfied: xmltodict==0.13.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 81)) (0.13.0)
Requirement already satisfied: zerorpc==0.6.3 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 82)) (0.6.3)
Requirement already satisfied: zope-event==5.0 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 83)) (5.0)
Requirement already satisfied: zope-interface==6.1 in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from -r requirements.txt (line 84)) (6.1)
Requirement already satisfied: setuptools in h:\ruanjian\yys\oas\toolkit\lib\site-packages (from zope-event==5.0->-r requirements.txt (line 83)) (65.5.0)
[ success ]
+---------------------------------------------------------+
|                    START ADB SERVICE                    |
+---------------------------------------------------------+
==================== REPLACE ADB ====================
Kill all known ADB
taskkill /f /im adb.exe >nul 2>nul
Error occurred when killing task adb.exe, return code 1
taskkill /f /im nox_adb.exe >nul 2>nul
Error occurred when killing task nox_adb.exe, return code 1
taskkill /f /im adb_server.exe >nul 2>nul
Error occurred when killing task adb_server.exe, return code 1
taskkill /f /im HD-Adb.exe >nul 2>nul
Error occurred when killing task HD-Adb.exe, return code 1
H:/ruanjian/yys/oas/toolkit/Lib/site-packages/adbutils/binaries/adb.exe devices
Devices: ['127.0.0.1:7555']
H:/ruanjian/yys/oas/toolkit/Lib/site-packages/adbutils/binaries/adb.exe devices
already connected to 127.0.0.1:7555
Devices: ['127.0.0.1:7555']
==================== UIAUTOMATOR2 INIT ====================
ShellException(python -m deploy.installer, exitCode 1, workingDirectory: H:\ruanjian\yys\oas)
Start OAS
ShellException(taskkill /f /t /im pythonw.exe, exitCode 128, workingDirectory: H:\ruanjian\yys\oas)
ShellException(.\toolkit\pythonw.exe server.py, exitCode 1, workingDirectory: H:\ruanjian\yys\oas)

从oas.exe直接启动
════════════════════════════════════════════════════════════════════════════════
───────────────────────────────── DAILYTRIFLES ─────────────────────────────────
════════════════════════════════════════════════════════════════════════════════
2024-10-03 20:34:41.751 |            logger.py:0284 |     INFO | [nemud.app_keep_alive]                                                                         
2024-10-03 20:34:41.759 |        connection.py:0440 |     INFO | Reuse forward: ForwardItem(serial='127.0.0.1:16384', local='tcp:20821', remote='tcp:53516')    
2024-10-03 20:34:42.013 |            logger.py:0284 |     INFO | [Screen_size] 1280x720                                                                         
2024-10-03 20:34:42.021 |            script.py:0350 |     INFO | module_path: H:\ruanjian\yys\oas\tasks\DailyTrifles\script_task.py, module_name: script_task   
2024-10-03 20:34:42.318 |           game_ui.py:0096 |     INFO | UI get current page                                                                            
2024-10-03 20:34:42.385 |             image.py:0077 |     INFO | roi_front size changed to 66x75                                                                
2024-10-03 20:34:42.464 |            logger.py:0284 |     INFO | [u2.Device] Device(atx_agent_url=http://127.0.0.1:60097)                                       
2024-10-03 20:34:42.637 |            logger.py:0284 |     INFO | [Package_name] com.netease.onmyoji.wyzymnqsd_cps                                               
2024-10-03 20:34:42.678 |            logger.py:0284 |     INFO | [Device Orientation] 1 (HOME key on the right)                                                 
2024-10-03 20:34:52.327 |           game_ui.py:0153 |  WARNING | Unknown ui page                                                                                
2024-10-03 20:34:52.335 |            logger.py:0284 |     INFO | [EMULATOR__SCREENSHOT_METHOD] ScreenshotMethod.DROIDCAST_RAW                                   
2024-10-03 20:34:52.345 |            logger.py:0284 |     INFO | [EMULATOR__CONTROL_METHOD] ControlMethod.MINITOUCH                                             
2024-10-03 20:34:52.354 |           game_ui.py:0156 |  WARNING | Starting from current page is not supported                                                    
2024-10-03 20:34:52.363 |           game_ui.py:0157 |  WARNING | Supported page: ['page_main', 'page_summon', 'page_exploration', 'page_town',                  
'page_awake_zones', 'page_soul_zones', 'page_realm_raid', 'page_goryou_realm', 'page_delegation', 'page_secret_zones', 'page_area_boss', 'page_heian_kitan',    
'page_six_gates', 'page_bondling_fairyland', 'page_kekkai_toppa', 'page_duel', 'page_demon_encounter', 'page_hunt', 'page_draft_duel', 'page_hyakkisen',        
'page_shikigami_records', 'page_onmyodo', 'page_friends', 'page_daily', 'page_mall', 'page_guild', 'page_team', 'page_collection']                              
2024-10-03 20:34:52.378 |           game_ui.py:0158 |  WARNING | Supported page: Any page with a "HOME" button on the upper-right                               
2024-10-03 20:34:52.388 |           game_ui.py:0159 | CRITICAL | Please switch to a supported page before starting oas                                          
2024-10-03 20:34:52.397 |            script.py:0377 |     INFO | Game server may be under maintenance or network may be broken, check server status now         
2024-10-03 20:34:52.404 |            script.py:0379 | CRITICAL | Game page unknown                                                                              
2024-10-03 20:34:52.412 |            script.py:0096 |  WARNING | Saving error: ./log/error/1727958892412                                                        

截图

log 2024-10-03_20-34-52-325292

还有别的吗?

感谢!!! 感谢!!! 感谢!!! No response

runhey commented 1 month ago

那把截屏方式全部换一遍看看

XinyuWang-Isak commented 4 weeks ago

直接试试在cmd里run这个 adb -startup 记得用管理员权限打开