google / gapid

Graphics API Debugger
https://gapid.dev
Apache License 2.0
2.21k stars 328 forks source link

Tracing Failed Cause: Could not start trace Cause: Device is not rooted #3816

Closed adachigit closed 4 years ago

adachigit commented 4 years ago

GAPID Version: 1.6.1:338bb67b0fe291f56f31d69f11ea1a45ed7cfeb6 OS: mac os x x86_64

Please provide detailed steps that led to the error and copy-paste the stack trace. Extra details from the logs and the trace file would be extra helpful.

I have built my application as a "debuggable" app, but I didn't debug it.

com.google.gapid.server.Client$InternalServerErrorException: Tracing Failed Cause: Could not start trace Cause: Device is not rooted at com.google.gapid.server.Client.throwIfError(Client.java:312) at com.google.gapid.server.Client.lambda$streamTrace$52(Client.java:286) at com.google.gapid.server.GapidClientGrpc$StreamHandler.onNext(GapidClientGrpc.java:224) at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onMessage(ClientCalls.java:421) at io.grpc.ForwardingClientCallListener.onMessage(ForwardingClientCallListener.java:33) at io.grpc.ForwardingClientCallListener.onMessage(ForwardingClientCallListener.java:33) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInContext(ClientCallImpl.java:519) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: com.google.gapid.server.Client$Stack: For request: RPC->streamTrace() at com.google.gapid.server.Client.streamTrace(Client.java:283) at com.google.gapid.server.Tracer.trace(Tracer.java:41) at com.google.gapid.views.TracerDialog.showTracingDialog(TracerDialog.java:149) at com.google.gapid.LoadingScreen.lambda$createOptions$0(LoadingScreen.java:114) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4292) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535) at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1585) at org.eclipse.swt.widgets.Link.textView_clickOnLink_atIndex(Link.java:799) at org.eclipse.swt.widgets.Display.windowProc(Display.java:6508) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:235) at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1146) at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1138) at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2620) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5962) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:235) at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2158) at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2414) at org.eclipse.swt.widgets.Display.windowProc(Display.java:6086) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5325) at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5477) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:131) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3730) at org.eclipse.jface.window.Window.runEventLoop(Window.java:821) at org.eclipse.jface.window.Window.open(Window.java:797) at com.google.gapid.Main$UI.show(Main.java:119) at com.google.gapid.Main.main(Main.java:68)

pau-baiget commented 4 years ago

Thanks @adachigit for reporting this issue. The GAPID project has been moved to maintenance mode and therefore no active development is done on this repository.

We are focusing our efforts on the Android GPU Inspector: https://github.com/google/agi