Skip to content
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

运行截图时报错 #1

Open
defnngj opened this issue Apr 15, 2019 · 1 comment
Open

运行截图时报错 #1

defnngj opened this issue Apr 15, 2019 · 1 comment

Comments

@defnngj
Copy link

defnngj commented Apr 15, 2019

INTERNALERROR>   File "/Users/test/Project_pytest/new_auto_test/test-app-autotest/conftest.py", line 88, in capture_screenshot
INTERNALERROR>     screenshot, fmt = poco.snapshot(width=720)
INTERNALERROR>   File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/poco/pocofw.py", line 433, in snapshot
INTERNALERROR>     return self.agent.screen.getScreen(width)
INTERNALERROR>   File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/poco/drivers/android/uiautomation.py", line 73, in getScreen
INTERNALERROR>     b64img = self.screen.getScreen(width)
INTERNALERROR>   File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/hrpc/object_proxy.py", line 92, in __call__
INTERNALERROR>     return self._client__.evaluate(self.__call_no_evaluate__(remote_obj_cache, *args))
INTERNALERROR>   File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/hrpc/client.py", line 81, in evaluate
INTERNALERROR>     raise RpcRemoteException(resp)
INTERNALERROR> hrpc.exceptions.RpcRemoteException: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference

hrpc.exceptions.RpcRemoteException 异常,并且又涉及到了android.graphics.Bitmap.getHeight()错误,希望解决。

@DHpie
Copy link

DHpie commented Apr 14, 2022

我也遇到了同样的问题, 请问该问题是否已经解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants