google / perfetto

Performance instrumentation and tracing for Android, Linux and Chrome (read-only mirror of https://android.googlesource.com/platform/external/perfetto/)
https://www.perfetto.dev
Apache License 2.0
2.59k stars 328 forks source link

Cannot open some perfetto trace files in v45 (But works in v44) #818

Closed benny8453123 closed 2 weeks ago

benny8453123 commented 4 weeks ago

Hi,

Since last Firday I cannot open some perfetto trace files. The error was shown below:

UI: https://ui.perfetto.dev/v45.0-c0c52a371

RegistryError: Registrant perfetto.ProcessScheduling#228.null.schedule already exists in the registry
 - Registry.register (frontend_bundle.js:4432:20)
 - TrackManager.registerTrack (frontend_bundle.js:346785:36)
 - PluginContextTraceImpl.registerTrack (frontend_bundle.js:355626:58)
 - ProcessSummaryPlugin.addProcessTrackGroups (frontend_bundle.js:457076:22)
 - async ProcessSummaryPlugin.onTraceLoad (frontend_bundle.js:457012:10)
 - async doPluginTraceLoad (frontend_bundle.js:355861:22)
 - async PluginManager.onTraceLoad (frontend_bundle.js:355834:15)
 - async TraceController.loadTrace (frontend_bundle.js:470562:10)

Trace: not available (FILE). Provide repro steps.
UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Referrer: 

And I found there is upgrade was published at last Firday (Jun 07 6:02 PM) (according to perfetto/ui/release/channels.json) How can I fix it or downgrade to v44 version in Windows platform?

primiano commented 4 weeks ago

@stevegolton ^

primiano commented 4 weeks ago

@benny8453123 Can you please attach a trace? Otherwise it's impossible to act on this

LalitMaganti commented 3 weeks ago

This was fixed in https://r.android.com/3063482. Please use canary/autopush for now, we should be doing a stable release soon!

benny8453123 commented 3 weeks ago

When I use Canary/Autopush, the progress gets stuck at "Reading thread list" and does not proceed any further stuck

primiano commented 3 weeks ago

I think @stevegolton actually just did a stable release soon. Maybe we should cherry-pick the fix on stable then?

LalitMaganti commented 3 weeks ago

https://r.android.com/3125096 will fix the issue on autopush. Agree we should cherry-pick these patches on stable.

benny8453123 commented 3 weeks ago

I tried the autopush version today, and Perfetto can now work with the previous trace file normally. Really appreciate it !

LalitMaganti commented 2 weeks ago

I've pushed this to stable now so closing this out.