Skip to content

Unable to start the trace for debuggable app #1410

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

Open
show50726 opened this issue Mar 26, 2025 · 0 comments
Open

Unable to start the trace for debuggable app #1410

show50726 opened this issue Mar 26, 2025 · 0 comments

Comments

@show50726
Copy link

Environment information:

  • AGI version: 2024-3.3.3
  • Host OS: MacOS
    If tracing on Android:
  • Device model: Pixel 7
  • Android Version: 15

Bug description
Not able to start tracing even if the app is debuggable.

Error message

Tracing Failed
   Cause: Could not start trace
   Cause: Cannot trace non-debuggable app
   Cause: Device is not a userdebug build

Reproduction steps
Steps to reproduce the behavior:

Stacktrace

com.google.gapid.server.Client$InternalServerErrorException: Tracing Failed
   Cause: Could not start trace
   Cause: Cannot trace non-debuggable app
   Cause: Device is not a userdebug build
	at com.google.gapid.server.Client.throwIfError(Client.java:327)
	at com.google.gapid.server.Client.lambda$streamTrace$58(Client.java:301)
	at com.google.gapid.server.GapidClientGrpc$StreamHandler.onNext(GapidClientGrpc.java:232)
	at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onMessage(ClientCalls.java:474)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInternal(ClientCallImpl.java:661)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInContext(ClientCallImpl.java:646)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.google.gapid.server.Client$Stack: For request: RPC->streamTrace()
	at com.google.gapid.server.Client.streamTrace(Client.java:298)
	at com.google.gapid.server.Tracer.trace(Tracer.java:41)
	at com.google.gapid.views.TracerDialog.showTracingDialog(TracerDialog.java:201)
	at com.google.gapid.views.TracerDialog.showFrameTracingDialog(TracerDialog.java:181)
	at com.google.gapid.LoadingScreen.lambda$new$1(LoadingScreen.java:121)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4604)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4390)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3966)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
	at org.eclipse.jface.window.Window.open(Window.java:799)
	at com.google.gapid.Main$UI.show(Main.java:140)
	at com.google.gapid.Main.main(Main.java:80)

Screenshots
If applicable, add screenshots to help explain your problem.

Additional debugging information
I've checked my app is debuggable with

adb shell dumpsys package com.google.android.filament.hellotriangle

The full output is as the attachment: package_dump.txt

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

1 participant