alibaba / alibaba/tidevice

tidevice ps多次执行时,会出现tidedvice.exception.MuxError

Open
#134 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.6k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "/opt/homebrew/bin/tidevice", line 8, in
sys.exit(main())
File "/Users/hspcadmin/Library/Python/3.9/lib/python/site-packages/tidevice/main.py", line 723, in main
actionsargs.subparser
File "/Users/hspcadmin/Library/Python/3.9/lib/python/site-packages/tidevice/main.py", line 441, in cmd_ps
ps = list(d.instruments.app_process_list(app_infos))
File "/Users/hspcadmin/Library/Python/3.9/lib/python/site-packages/tidevice/_instruments.py", line 708, in app_process_list
processes = self.app_running_processes()
File "/Users/hspcadmin/Library/Python/3.9/lib/python/site-packages/tidevice/_instruments.py", line 681, in app_running_processes
retobj = self.call_message(identifier, "runningProcesses")
File "/Users/hspcadmin/Library/Python/3.9/lib/python/site-packages/tidevice/_instruments.py", line 354, in call_message
channel = self.make_channel(channel)
File "/Users/hspcadmin/Library/Python/3.9/lib/python/site-packages/tidevice/_instruments.py", line 315, in make_channel
result = self.call_message(0, '_requestChannelWithCode:identifier:', aux)
File "/Users/hspcadmin/Library/Python/3.9/lib/python/site-packages/tidevice/_instruments.py", line 360, in call_message
return self.wait_reply(_id).result
File "/Users/hspcadmin/Library/Python/3.9/lib/python/site-packages/tidevice/_instruments.py", line 550, in wait_reply
raise MuxError("connection closed")
tidevice.exceptions.MuxError: connection closed

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by running tidevice ps repeatedly, then trace the failure through tidevice/__main__.py and tidevice/_instruments.py, especially channel creation and reply handling. Done means repeated ps runs no longer end with MuxError: connection closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, python
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.