-
Notifications
You must be signed in to change notification settings - Fork 170
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
Unity poco ios: ios 上接入Unity的游戏,操作一段时间后(获取元素,点击元素)会出现poco socket 断开的情况 #106
Comments
app错误日志:
|
问题 mac 系统连接 ios设备,并运行untiy挟带poco的游戏会出现 操作一会(选择元素,选中元素)poco socket就断开的情况。
环境:facebook-wda 1.4.6
airtest 1.2.6
pocoui 1.0.87
报错:Traceback (most recent call last):
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/airtest/cli/runner.py", line 70, in runTest
exec(compile(code.encode("utf-8"), pyfilepath, 'exec'), self.scope)
File "/Users/pirate/Documents/jenkins_workspace/workspace/saki_auto_test_ios/saki/saki_office_6/saki_office_case_21.air/saki_office_case_21.py", line 46, in {module}
ocl.enter_office()
File "/Users/pirate/Documents/jenkins_workspace/workspace/saki_auto_test_ios/saki/saki_common/office_common/office_common.py", line 30, in enter_office
self.office_button.click()
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/proxy.py", line 23, in wrapped
return func(proxy, *args, **kwargs)
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/proxy.py", line 332, in click
pos_in_percentage = self.get_position(focus)
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/proxy.py", line 72, in wrapped
return func(proxy, *args, **kwargs)
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/proxy.py", line 613, in get_position
pos = list(map(float, self.attr('pos')))
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/proxy.py", line 39, in wrapped
return func(self, *args, **kwargs)
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/proxy.py", line 736, in attr
nodes = self._do_query(multiple=False)
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/proxy.py", line 886, in _do_query
self._nodes = self.poco.agent.hierarchy.select(self.query, multiple)
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/freezeui/hierarchy.py", line 90, in select
return self.selector.select(query, multiple)
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/sdk/Selector.py", line 77, in select
return self.selectImpl(cond, multiple, self.getRoot(), 9999, True, True)
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/sdk/Selector.py", line 71, in getRoot
return self.dumper.getRoot()
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/freezeui/hierarchy.py", line 35, in getRoot
root = Node(self.dumpHierarchy())
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/utils/simplerpc/utils.py", line 13, in new_func
ret, err = cb.wait(timeout=30)
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/utils/simplerpc/simplerpc.py", line 74, in wait
self.agent.update()
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/utils/simplerpc/rpcclient.py", line 64, in update
data = self.conn.recv()
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/utils/simplerpc/transport/tcp/main.py", line 36, in recv
msg_bytes = self.c.recv()
File "/Users/pirate/opt/anaconda3/lib/python3.8/site-packages/poco/utils/simplerpc/transport/tcp/safetcp.py", line 39, in recv
raise socket.error("socket connection broken")
OSError: socket connection broken
The text was updated successfully, but these errors were encountered: