Can not load large trance(3.2G) when Using TraceProcessor as a native accelerator on macos(M3 Chip)

19 views
Skip to first unread message

Shane Sue

unread,
Mar 8, 2025, 11:15:42 AMMar 8
to Perfetto Development - www.perfetto.dev
I can not load large trance(3.2G) when Using TraceProcessor as a native accelerator on macos(M3 Chip)
the `trace_processor` return an error: [851.307] d_trace_internal.cc:100 Cannot use mmap on this system. Falling back on read()

Could not read trace file (path: /Users/profiler/897875.pt.trace.json): Could not open trace file (path: /Users/profiler/97875.pt.trace.json)


Is There Any One Could Help Me Solve this? Thanks a lot

Lalit Maganti

unread,
Mar 8, 2025, 11:18:46 AMMar 8
to Shane Sue, Perfetto Development - www.perfetto.dev
The error "Could not open trace file" happens due to one of the following cases:
  • The trace does not exist at the path
  • The user the trace processor is running as does not have permissions to access the trace (for example, if the file is owned by root but you are running as your own user)
  • The trace is corrupt.
The mmap error is harmless and is a red herring, the second error is all that matters.
Are you sure you actually have a valid trace at that file path on the system and is accessible?

--
You received this message because you are subscribed to the Google Groups "Perfetto Development - www.perfetto.dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to perfetto-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/perfetto-dev/1b0a42ce-89db-4765-a64d-7983242ddd8fn%40googlegroups.com.

Primiano Tucci

unread,
Mar 10, 2025, 5:19:23 PMMar 10
to Lalit Maganti, Shane Sue, Perfetto Development - www.perfetto.dev
Very likely it's some ACL-related permission.
Maybe you are generating a trace running some tool as root, and then are trying to pass it to TP and it fails to open it.
Try chmod-ing it (chmod 644 /Users/profiler/97875.pt.trace.json)



--
Primiano Tucci
Software Engineer
Google UK Limited

Reply all
Reply to author
Forward
0 new messages