PProf.jl icon indicating copy to clipboard operation
PProf.jl copied to clipboard

profile.pb.gz: malformed profile: found location with reserved id=0

Open wly2014 opened this issue 1 year ago • 7 comments

When I run PProf.pprof(). I met this error:

profile.pb.gz: malformed profile: found location with reserved id=0
pprof: failed to fetch any source profiles

versioninfo:

Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 32 × 13th Gen Intel(R) Core(TM) i9-13900K
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, goldmont)
  Threads: 1 on 32 virtual cores

Thanks.

wly2014 avatar Dec 12 '23 02:12 wly2014

Also running into the same issue. Anyone know of a workaround?

torfjelde avatar Jan 25 '24 17:01 torfjelde

I am also encountering the issue, did anyone found a solution ?

Azercoco avatar Feb 01 '24 16:02 Azercoco

Experiencing this as well, fixed by downgrading to version 2.3.0 for me

jarbus avatar Feb 27 '24 14:02 jarbus

I also have this issue, but downgrading to 2.3.0 didn't fix it

theo-brown avatar Apr 10 '24 11:04 theo-brown

Could someone who is experiencing this issue please upload the .pb.gz that has the problem? it should be in the CWD of wherever you are running pprof.

And cherry-on-top would be to provide a reproducible MRE that would let us demonstrate this ourselves!

NHDaly avatar Apr 16 '24 03:04 NHDaly

This reproduces the issue for me on v3.1.0:

using PProf
@pprof map(sin, rand(1000))

Here's the generated profile.pb.gz

System information:

julia> versioninfo()
Julia Version 1.10.3
Commit 0b4590a5507 (2024-04-30 10:59 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 192 × AMD EPYC 9654 96-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 192 virtual cores)
Environment:
  LD_LIBRARY_PATH = /sw/pkgs/arc/gcc/10.3.0/lib64:/sw/pkgs/arc/python/3.11.5/lib:/nfs/turbo/coe-venkvis/awadell
/mist/deepspeed/.venv/lib
  JULIA_PKG_USE_CLI_GIT = true
  LD_RUN_PATH = /sw/pkgs/arc/gcc/10.3.0/lib64

awadell1 avatar May 31 '24 14:05 awadell1

Affected by the same issue; I stepped through the code and produced #97 which appears to fix this. Please try and lmk if this works for you!

sprig avatar Jul 22 '24 06:07 sprig

Affected by the same issue; I stepped through the code and produced #97 which appears to fix this. Please try and lmk if this works for you!

Thanks, this fixed the issue for me.

tanderson92 avatar Aug 18 '24 16:08 tanderson92

Any released fix for this? Having the same.

rbeeli avatar Sep 01 '24 01:09 rbeeli

Until an "official" fix is released you can try using the PR branch by running ]add https://github.com/sprig/PProf.jl.git in julia.

sprig avatar Sep 01 '24 16:09 sprig