Comments (3)
ios 13.4.1是上面的日志,刚刚又试了一台ios 14.6的设备,报下面的错误:
2021-07-13 18:03:19 [INFO] [LockDown] lockdown.py[line:68] Connecting Device 00008020-001E19642190003A
2021-07-13 18:03:19 [INFO] [Instrument] Instrument.py[line:22] InstrumentServer init ...
2021-07-13 18:03:19 [INFO] [Instrument] dvt.py[line:148] set com.apple.instruments.server.services.coreprofilesessiontap callback ...
2021-07-13 18:03:20 [ERROR] [Instrument] dvt.py[line:233] 'utf-8' codec can't decode byte 0xe4 in position 0: unexpected end of data
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/ios_device/servers/dvt.py", line 220, in _receiver
self._channel_callbacks((1 << 32) - dtx.channel_code)
File "/usr/local/lib/python3.8/site-packages/ios_device/cli/instruments.py", line 307, in on_callback_message
kc_data = kc_data_parse(buf)
File "/usr/local/lib/python3.8/site-packages/ios_device/util/kc_data.py", line 1706, in kc_data_parse
str_data = "{" + kcdata_buffer.GetJsonRepr() + "}"
File "/usr/local/lib/python3.8/site-packages/ios_device/util/kc_data.py", line 622, in GetJsonRepr
o += ' "%s" : ' % k + v.GetJsonRepr() + ","
File "/usr/local/lib/python3.8/site-packages/ios_device/util/kc_data.py", line 480, in GetJsonRepr
return '[' + ', '.join([i.GetJsonRepr() for i in self.obj_collection]) + ']'
File "/usr/local/lib/python3.8/site-packages/ios_device/util/kc_data.py", line 480, in
return '[' + ', '.join([i.GetJsonRepr() for i in self.obj_collection]) + ']'
File "/usr/local/lib/python3.8/site-packages/ios_device/util/kc_data.py", line 482, in GetJsonRepr
return KNOWN_TYPES_COLLECTION[self.i_type].GetJsonRepr(self.i_data, self.i_flags)
File "/usr/local/lib/python3.8/site-packages/ios_device/util/kc_data.py", line 364, in GetJsonRepr
o = ", ".join(['"%s": %s' % (e.GetName(), e.GetJsonRepr(base_data)) for e in self.elements if
File "/usr/local/lib/python3.8/site-packages/ios_device/util/kc_data.py", line 364, in
o = ", ".join(['"%s": %s' % (e.GetName(), e.GetJsonRepr(base_data)) for e in self.elements if
File "/usr/local/lib/python3.8/site-packages/ios_device/util/kc_data.py", line 301, in GetJsonRepr
return self.GetStringRepr(base_data)
File "/usr/local/lib/python3.8/site-packages/ios_device/util/kc_data.py", line 279, in GetStringRepr
str_arr.append(self.GetValueAsString(base_data, i))
File "/usr/local/lib/python3.8/site-packages/ios_device/util/kc_data.py", line 246, in GetValueAsString
return data.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 0: unexpected end of data
Traceback (most recent call last):
File "/usr/local/bin/pyidevice", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.8/site-packages/ios_device/main.py", line 15, in cli
cli_commands()
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1137, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1668, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1668, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/ios_device/cli/instruments.py", line 314, in stackshot
rpc.core_profile_session(on_callback_message, stopSignal)
File "/usr/local/lib/python3.8/site-packages/ios_device/cli/base.py", line 330, in core_profile_session
self.instruments.call(InstrumentsService.CoreProfileSessionTap, "start")
File "/usr/local/lib/python3.8/site-packages/ios_device/servers/dvt.py", line 169, in call
ret = self._call(True, channel_id, selector, *auxiliaries)
File "/usr/local/lib/python3.8/site-packages/ios_device/servers/dvt.py", line 208, in _call
ret = self.wait_reply(identifier)
File "/usr/local/lib/python3.8/site-packages/ios_device/servers/dvt.py", line 182, in wait_reply
ret = self._reply_queues[message_id].get(timeout=timeout)
File "/usr/local/Cellar/[email protected]/3.8.6/Frameworks/Python.framework/Versions/3.8/lib/python3.8/queue.py", line 178, in get
raise Empty
_queue.Empty
from py-ios-device.
嗯,好像有点 bug 。有时候能导出,有时候不行,我测试了下也是不能 100% 成功。我再看看
from py-ios-device.
解决了下 获取数据包乱序 的问题 14.6 测试基本正常
9243463
from py-ios-device.
Related Issues (20)
- Get real-time cpu usage on iPhone 6 HOT 3
- 使用pyidevice instruments monitor 时,拿到的memory 数据是负数,free memory甚至越用越大。 HOT 1
- 请问从com.apple.instruments.server.services.sysmontap拿到得数据是否有统一处理方法 HOT 1
- python 3.10.3 安装 py_ios_device报错 HOT 4
- pyidevice instruments fps does not show fps above 60. HOT 1
- start_get_fps: code == 830472984 HOT 3
- iOS16(A16) GPU Counters error HOT 1
- iOS17设备支持问题 HOT 4
- 大佬,readme手册里的命令执行的参数有问题
- start_get_fps 您好我问一下,为什么我在 iPhone12 系统iOS14.5.1 拿到的FPS和游戏内出入比较大
- Cannot launch app on ios 16 HOT 5
- Get issue when execute command pyidevice crash list --udid HOT 1
- iOS17的屏幕帧数获取在windows上存在延迟。 HOT 3
- iOS 17 Device Not Supporting HOT 3
- requests.exceptions.HTTPError: 404 Client Error: Not Found for url HOT 1
- 通过perfdog 与 tidevice 获取到的游戏应用CPU使用都是10%左右,而通过instruments appmonitor 获取到的cpuUsge 60%
- 截图问题: windows 上的截图太慢 长达10s 请问怎么解决 HOT 2
- ios 17.4.1 无法获取性能数据 ,另一个低版本的ios 17.2.1 一切正常
- ios17 截图不太稳定 经常提示报错 HOT 5
- socket 连接好像不稳定
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-ios-device.