Insomniac icon indicating copy to clipboard operation
Insomniac copied to clipboard

Crash on first run with pocophone

Open M3sca opened this issue 4 years ago • 0 comments

[12/21 21:38:04] Open Instagram app [12/21 21:38:14] Sleep for 1.90 seconds [12/21 21:38:16] Press profile

Caught an exception: -32001 Jsonrpc error: <java.lang.SecurityException> data: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission at android.os.Parcel.createException(Parcel.java:2074) at android.os.Parcel.readException(Parcel.java:2042) at android.os.Parcel.readException(Parcel.java:1990) at android.app.IUiAutomationConnection$Stub$Proxy.injectInputEvent(IUiAutomationConnection.java:471) at android.app.UiAutomation.injectInputEvent(UiAutomation.java:597) at com.github.uiautomator.stub.TouchController.injectEventSync(TouchController.java:38) at com.github.uiautomator.stub.TouchController.touchDown(TouchController.java:47) at com.github.uiautomator.stub.AutomatorServiceImpl.click(AutomatorServiceImpl.java:206) at java.lang.reflect.Method.invoke(Native Method) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251) at com.github.uiautomator.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:100) at fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244) at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945) at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192) at java.lang.Thread.run(Thread.java:919) , method: click

Traceback (most recent call last): File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\device_facade.py", line 179, in click self.viewV2.click(UI_TIMEOUT_LONG) File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\uiautomator2_selector.py", line 155, in click self.session.click(x, y) File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\uiautomator2_init_.py", line 996, in click self.jsonrpc.click(x, y) File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\uiautomator2_init_.py", line 436, in call http_timeout) File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\uiautomator2_init_.py", line 442, in _jsonrpc_retry_call return self.jsonrpc_call(*args, **kwargs) File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\uiautomator2_init.py", line 514, in _jsonrpc_call raise err uiautomator2.exceptions.JSONRPCError: -32001 Jsonrpc error: <java.lang.SecurityException> data: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission at android.os.Parcel.createException(Parcel.java:2074) at android.os.Parcel.readException(Parcel.java:2042) at android.os.Parcel.readException(Parcel.java:1990) at android.app.IUiAutomationConnection$Stub$Proxy.injectInputEvent(IUiAutomationConnection.java:471) at android.app.UiAutomation.injectInputEvent(UiAutomation.java:597) at com.github.uiautomator.stub.TouchController.injectEventSync(TouchController.java:38) at com.github.uiautomator.stub.TouchController.touchDown(TouchController.java:47) at com.github.uiautomator.stub.AutomatorServiceImpl.click(AutomatorServiceImpl.java:206) at java.lang.reflect.Method.invoke(Native Method) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251) at com.github.uiautomator.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:100) at fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244) at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945) at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192) at java.lang.Thread.run(Thread.java:919) , method: click

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\session.py", line 149, in run self.start_session(args, device_wrapper, app_version) File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\session.py", line 100, in start_session self.session_state.my_following_count = get_my_profile_info(device_wrapper.get()) File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\action_get_my_profile_info.py", line 12, in get_my_profile_info navigate(device, Tabs.PROFILE) File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\navigation.py", line 23, in navigate button.click() File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\device_facade.py", line 181, in click raise DeviceFacade.JsonRpcError(e) insomniac.device_facade.DeviceFacade.JsonRpcError: -32001 Jsonrpc error: <java.lang.SecurityException> data: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission at android.os.Parcel.createException(Parcel.java:2074) at android.os.Parcel.readException(Parcel.java:2042) at android.os.Parcel.readException(Parcel.java:1990) at android.app.IUiAutomationConnection$Stub$Proxy.injectInputEvent(IUiAutomationConnection.java:471) at android.app.UiAutomation.injectInputEvent(UiAutomation.java:597) at com.github.uiautomator.stub.TouchController.injectEventSync(TouchController.java:38) at com.github.uiautomator.stub.TouchController.touchDown(TouchController.java:47) at com.github.uiautomator.stub.AutomatorServiceImpl.click(AutomatorServiceImpl.java:206) at java.lang.reflect.Method.invoke(Native Method) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283) at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251) at com.github.uiautomator.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:100) at fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244) at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945) at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192) at java.lang.Thread.run(Thread.java:919) , method: click

M3sca avatar Dec 21 '20 20:12 M3sca