GithubHelp home page GithubHelp logo

Comments (3)

haryshi avatar haryshi commented on July 28, 2024

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.

YueChen-C avatar YueChen-C commented on July 28, 2024

嗯,好像有点 bug 。有时候能导出,有时候不行,我测试了下也是不能 100% 成功。我再看看

from py-ios-device.

YueChen-C avatar YueChen-C commented on July 28, 2024

解决了下 获取数据包乱序 的问题 14.6 测试基本正常
9243463

from py-ios-device.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.