YueChen-C / py-ios-device

IOS Professional Performance Testing Tool . You can get CPU, GPU, Memory , Lifecycle and other metrics from real iOS devices . IOS 专业性能测试工具
GNU General Public License v3.0
633 stars 179 forks source link

Intermittent error during app listing #107

Closed khrithik96 closed 1 year ago

khrithik96 commented 1 year ago

Getting error 'NoneType' object has no attribute 'get' when calling get_apps of InstallationProxyService.

self.service.recv_plist() is returning None intermittently, which is causing the error.

https://github.com/YueChen-C/py-ios-device/blob/4dddce914ff885082f578912fff882b8b06a84e4/ios_device/servers/Installation.py#L148

Getting this error intermittently only on one device: iPhone SE2, iOS 15.5.

Any idea how can this be fixed?

YueChen-C commented 1 year ago

Run in debug mode to view more logs

YueChen-C commented 1 year ago

https://github.com/YueChen-C/py-ios-device/blob/4dddce914ff885082f578912fff882b8b06a84e4/ios_device/util/plist_service.py#L84-L86

Looks more like the device disconnected and then reconnected

khrithik96 commented 1 year ago

We were not able to reproduce the error. For now, we have added a retry.