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

在未开启模拟器的情况下无法自动调起模拟器 #500

Open
3 tasks done
superJujubo opened this issue Jun 8, 2024 · 1 comment
Open
3 tasks done

在未开启模拟器的情况下无法自动调起模拟器 #500

superJujubo opened this issue Jun 8, 2024 · 1 comment
Labels
asking a question / 提问 Asking a question, not related to bugs or feature

Comments

@superJujubo
Copy link

在提问之前...

  • 我已经搜索了现有的 issues
  • 我在提问题之前至少花费了 5 分钟来思考和准备
  • 我正在使用最新版的 SRC

描述你的问题

在未开启模拟器的情况下无法自动调起模拟器,只有mumu可以

如何复现

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

预期行为

配置好模拟器 Serial后,点击启动自动开启模拟器

相关 Logs

WARNING  04:58:31.806 │ atx-agent has something wrong, auto recovering             
INFO     04:58:31.807 │ device reconnecting, time left(3.0s)                       
INFO     04:58:32.817 │ adb reconnect error: adb read timeout                      
INFO     04:58:33.821 │ device reconnecting, time left(1.0s)                       
INFO     04:58:33.822 │ cannot connect to 127.0.0.1:5555:                          
         由于目标计算机积极拒绝,无法连接。 (10061)                                
INFO     04:58:33.823 │ cannot connect to 127.0.0.1:5555:                          
         由于目标计算机积极拒绝,无法连接。 (10061)                                
WARNING  04:58:33.824 │ No such device exists, please restart the emulator or set a
         correct serial                                                            
ERROR    04:58:33.825 │ EmulatorNotRunningError:                                   
         ╭────────────────── Traceback (most recent call last) ───────────────────╮
         │ E:\StarRailCopilot_0.5.4_fullcn\StarRailCopilot\module\device\connecti │
         │ on.py:38 in retry_wrapper                                              │
         │                                                                        │
         │     36 │   │   │   │   if callable(init):                              │
         │     37 │   │   │   │   │   retry_sleep(_)                              │
         │ ❱   38 │   │   │   │   │   init()                                      │
         │     39 │   │   │   │   return func(self, *args, **kwargs)              │
         │     40 │   │   │   # Can't handle                                      │
         │                                                                        │
         │ ╭────────────────────────────── locals ──────────────────────────────╮ │
         │ │      _ = 1                                                         │ │
         │ │   args = ()                                                        │ │
         │ │      e = EmulatorNotRunningError()                                 │ │
         │ │   func = <function Connection.get_orientation at                   │ │
         │ │          0x000001F1FF4C7130>                                       │ │
         │ │   init = <function retry.<locals>.retry_wrapper.<locals>.init at   │ │
         │ │          0x000001F1FFAD6B90>                                       │ │
         │ │ kwargs = {}                                                        │ │
         │ │   self = <module.device.device.Device object at                    │ │
         │ │          0x000001F1AD227340>                                       │ │
         │ ╰────────────────────────────────────────────────────────────────────╯ │
         │                                                                        │
         │ E:\StarRailCopilot_0.5.4_fullcn\StarRailCopilot\module\device\connecti │
         │ on.py:53 in init                                                       │
         │                                                                        │
         │     51 │   │   │   │   if handle_adb_error(e):                         │
         │     52 │   │   │   │   │   def init():                                 │
         │ ❱   53 │   │   │   │   │   │   self.adb_reconnect()                    │
         │     54 │   │   │   │   else:                                           │
         │     55 │   │   │   │   │   break                                       │
         │                                                                        │
         │ ╭───────────────────────────── locals ──────────────────────────────╮  │
         │ │ self = <module.device.device.Device object at 0x000001F1AD227340> │  │
         │ ╰───────────────────────────────────────────────────────────────────╯  │
         │                                                                        │
         │ E:\StarRailCopilot_0.5.4_fullcn\StarRailCopilot\module\base\decorator. │
         │ py:70 in wrapper                                                       │
         │                                                                        │
         │    68 │   │   │   │   │   │   continue                                 │
         │    69 │   │   │   │   │                                                │
         │ ❱  70 │   │   │   │   │   return record['func'](self, *args, **kwargs) │
         │    71 │   │   │   │                                                    │
         │    72 │   │   │   │   logger.warning(f'No option fits for {name}, usin │
         │       func.')                                                          │
         │                                                                        │
         │ ╭────────────────────────────── locals ──────────────────────────────╮ │
         │ │   args = ()                                                        │ │
         │ │    cls = <class 'module.base.decorator.Config'>                    │ │
         │ │   flag = [True]                                                    │ │
         │ │   func = <function Connection.adb_reconnect at 0x000001F1FF4C7010> │ │
         │ │ kwargs = {}                                                        │ │
         │ │ logger = <Logger alas (INFO)>                                      │ │
         │ │   name = 'adb_reconnect'                                           │ │
         │ │ record = {                                                         │ │
         │ │          │   'options': {'DEVICE_OVER_HTTP': False},               │ │
         │ │          │   'func': <function Connection.adb_reconnect at         │ │
         │ │          0x000001F1FF4C6EF0>                                       │ │
         │ │          }                                                         │ │
         │ │   self = <module.device.device.Device object at                    │ │
         │ │          0x000001F1AD227340>                                       │ │
         │ ╰────────────────────────────────────────────────────────────────────╯ │
         │                                                                        │
         │ E:\StarRailCopilot_0.5.4_fullcn\StarRailCopilot\module\device\connecti │
         │ on.py:667 in adb_reconnect                                             │
         │                                                                        │
         │    665 │   │   │   self.adb_restart()                                  │
         │    666 │   │   │   # Connect to device                                 │
         │ ❱  667 │   │   │   self.adb_connect(self.serial)                       │
         │    668 │   │   │   self.detect_device()                                │
         │    669 │   │   else:                                                   │
         │                                                                        │
         │ ╭───────────────────────────── locals ──────────────────────────────╮  │
         │ │ self = <module.device.device.Device object at 0x000001F1AD227340> │  │
         │ ╰───────────────────────────────────────────────────────────────────╯  │
         │                                                                        │
         │ E:\StarRailCopilot_0.5.4_fullcn\StarRailCopilot\module\base\decorator. │
         │ py:70 in wrapper                                                       │
         │                                                                        │
         │    68 │   │   │   │   │   │   continue                                 │
         │    69 │   │   │   │   │                                                │
         │ ❱  70 │   │   │   │   │   return record['func'](self, *args, **kwargs) │
         │    71 │   │   │   │                                                    │
         │    72 │   │   │   │   logger.warning(f'No option fits for {name}, usin │
         │       func.')                                                          │
         │                                                                        │
         │ ╭────────────────────────────── locals ──────────────────────────────╮ │
         │ │   args = ('127.0.0.1:5555',)                                       │ │
         │ │    cls = <class 'module.base.decorator.Config'>                    │ │
         │ │   flag = [True]                                                    │ │
         │ │   func = <function Connection.adb_connect at 0x000001F1FF4C6D40>   │ │
         │ │ kwargs = {}                                                        │ │
         │ │ logger = <Logger alas (INFO)>                                      │ │
         │ │   name = 'adb_connect'                                             │ │
         │ │ record = {                                                         │ │
         │ │          │   'options': {'DEVICE_OVER_HTTP': False},               │ │
         │ │          │   'func': <function Connection.adb_connect at           │ │
         │ │          0x000001F1FF4C6C20>                                       │ │
         │ │          }                                                         │ │
         │ │   self = <module.device.device.Device object at                    │ │
         │ │          0x000001F1AD227340>                                       │ │
         │ ╰────────────────────────────────────────────────────────────────────╯ │
         │                                                                        │
         │ E:\StarRailCopilot_0.5.4_fullcn\StarRailCopilot\module\device\connecti │
         │ on.py:625 in adb_connect                                               │
         │                                                                        │
         │    623 │   │   │   │   logger.info(msg)                                │
         │    624 │   │   │   │   logger.warning('No such device exists, please r │
         │        set a correct serial')                                          │
         │ ❱  625 │   │   │   │   raise EmulatorNotRunningError                   │
         │    626 │   │                                                           │
         │    627 │   │   # Failed to connect                                     │
         │                                                                        │
         │ ╭────────────────────────────── locals ──────────────────────────────╮ │
         │ │      _ = 0                                                         │ │
         │ │    msg = 'cannot connect to 127.0.0.1:5555:                        │ │
         │ │          由于目标计算机积极拒绝,无法连接。 (10061)'               │ │
         │ │   self = <module.device.device.Device object at                    │ │
         │ │          0x000001F1AD227340>                                       │ │
         │ │ serial = '127.0.0.1:5555'                                          │ │
         │ ╰────────────────────────────────────────────────────────────────────╯ │
         ╰────────────────────────────────────────────────────────────────────────╯
         EmulatorNotRunningError

截图

No response

还有别的吗?

No response

@superJujubo superJujubo added the bug / 缺陷 Something isn't working label Jun 8, 2024
@LmeSzinc
Copy link
Owner

模拟器启动目前只支持 MuMu 系和夜神系模拟器。

@LmeSzinc LmeSzinc added asking a question / 提问 Asking a question, not related to bugs or feature and removed bug / 缺陷 Something isn't working labels Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asking a question / 提问 Asking a question, not related to bugs or feature
Projects
None yet
Development

No branches or pull requests

2 participants