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

Perfetto UI complains Incompatible RPC version #536

Open
zivmax opened this issue Jan 13, 2025 · 1 comment
Open

Perfetto UI complains Incompatible RPC version #536

zivmax opened this issue Jan 13, 2025 · 1 comment

Comments

@zivmax
Copy link

zivmax commented Jan 13, 2025

Problem

I'm using the command vizviewer --use_external_processor result.json to analyze a very large trace (3GB~), the Perfetto UI warns about a old Trace Processor binary.

Incompatible RPC version
The Trace Processor instance on 127.0.0.1:9001 is too old.

This UI requires TraceProcessor features that are not present in the
Trace Processor native accelerator you are currently running.
If you continue, this is almost surely going to cause UI failures.

Please update your local Trace Processor binary:

```
curl -LO https://get.perfetto.dev/trace_processor
chmod +x ./trace_processor
./trace_processor --httpd
```

UI version code: v47.0-02b2414d5
UI RPC API: 12

Trace processor version: Perfetto v37.0-034ebb3d5 (034ebb3d57140170ed3d29fce03303c70ea2c57b)
Trace processor version code: 
Trace processor RPC API: 8

Perfetto indeed provided a builtin wasm option, but since my result.json is very large, it will exceed the memory limit of a browser tab:

Oops! Your WASM trace processor ran out of memory
The in-memory representation of the trace is too big for the browser memory limits (typically 2GB per tab).
You can work around this problem by using the trace_processor native binary as an accelerator for the UI as follows:

```
curl -LO https://get.perfetto.dev/trace_processor
chmod +x ./trace_processor
trace_processor --httpd /path/to/trace.pftrace
# Reload the UI, it will prompt to use the HTTP+RPC interface
```

If choose running on the old version, this error will occur:

Oops, something went wrong. Please file a bug.
UI: http://127.0.0.1:10000/v47.0-02b2414d5

WebSocket error (state=3)

Trace: not available (HTTP_RPC). Provide repro steps.
UA: Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0

Log of vizviewer:

Loading and parsing trace data, this could take a while...
Downloading https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v37.0/linux-amd64/trace_processor_shell
Running vizviewer
You can also view your trace on http://localhost:10000
Press Ctrl+C to quit

Version

Installed by pipx

   package viztracer 1.0.0, installed using Python 3.12.3
    - viztracer
    - vizviewer
@gaogaotiantian
Copy link
Owner

Ah, that was my fault. I forgot to update the trace processor when I update Perfetto version. It will be updated in the next release.

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