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

PkgEval failure due to KeyError #57

Open
vilterp opened this issue Feb 17, 2022 · 4 comments
Open

PkgEval failure due to KeyError #57

vilterp opened this issue Feb 17, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@vilterp
Copy link
Collaborator

vilterp commented Feb 17, 2022

https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/f51f24c_vs_2ca8b0c/PProf.primary.log

  Got exception outside of a @test
  KeyError: key 0x00007fb686828010 not found
  Stacktrace:
    [1] getindex
      @ ./dict.jl:498 [inlined]
    [2] pprof(data::Nothing, lidict::Nothing; sampling_delay::Nothing, web::Bool, webhost::String, webport::Int64, out::String, from_c::Bool, full_signatures::Bool, drop_frames::Nothing, keep_frames::Nothing, ui_relative_percentages::Bool)
      @ PProf ~/.julia/packages/PProf/SfsWK/src/PProf.jl:199
    [3] macro expansion
      @ ~/.julia/packages/PProf/SfsWK/test/PProf.jl:39 [inlined]

I think I've seen this in CI before; never tracked it down though.

@vilterp vilterp added the bug Something isn't working label Feb 17, 2022
@NHDaly
Copy link
Member

NHDaly commented Feb 18, 2022

Thank you for filing this issue.

Yeah, it's only happening on 1.8, right? I think we should report this on the julia repository. it's a regression (or at least a change) in the Profile package that's causing this failure in a very simple test:

PProf.jl/test/PProf.jl

Lines 29 to 39 in 34c8724

@profile for i in 1:10000
# Profile compilation
@eval foo(x,y) = x * y + x / y
@eval foo($i,3)
end
# Cache profile output to test that it isn't changed
_prior_profile_output = Profile.retrieve()
# Write the profile
outf = pprof(out=out, web=false)

I actually don't know if this means PProf CPU profiles are entirely broken on julia master? or if this test is somehow hitting some weird corner case?

But we should definitely file this as a regression on the julia repo 👍 👍

@cafaxo
Copy link

cafaxo commented Mar 23, 2022

I am also experiencing this issue on a recent master build of Julia.

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.9.0-DEV.183 (2022-03-14)
 _/ |\__'_|_|_|\__'_|  |  Commit 2e63293 (9 days old master)
|__/                   |

julia> using Profile

julia> using PProf

julia> @profile peakflops()
9.141912495979059e10

julia> pprof()
ERROR: KeyError: key 0x0000000000000001 not found
Stacktrace:
 [1] getindex
   @ ./dict.jl:499 [inlined]
 [2] pprof(data::Nothing, lidict::Nothing; sampling_delay::Nothing, web::Bool, webhost::String, webport::Int64, out::String, from_c::Bool, full_signatures::Bool, drop_frames::Nothing, keep_frames::Nothing, ui_relative_percentages::Bool)
   @ PProf ~/.julia/packages/PProf/ZEiZQ/src/PProf.jl:199
 [3] pprof (repeats 2 times)
   @ ~/.julia/packages/PProf/ZEiZQ/src/PProf.jl:105 [inlined]
 [4] top-level scope
   @ REPL[4]:1

StatProfilerHTML is also broken:

julia> statprofilehtml()
ERROR: KeyError: key 0x0000000000000001 not found
Stacktrace:
 [1] getindex
   @ ./dict.jl:499 [inlined]
 [2] StatProfilerHTML.Reports.Report(data::Vector{UInt64}, litrace::Dict{UInt64, Vector{Base.StackTraces.StackFrame}}, from_c::Bool)
   @ StatProfilerHTML.Reports ~/.julia/packages/StatProfilerHTML/FRimo/src/Reports.jl:106
 [3] statprofilehtml(data::Vector{UInt64}, litrace::Dict{UInt64, Vector{Base.StackTraces.StackFrame}}; from_c::Bool, path::String)
   @ StatProfilerHTML ~/.julia/packages/StatProfilerHTML/FRimo/src/StatProfilerHTML.jl:23
 [4] statprofilehtml (repeats 3 times)
   @ ~/.julia/packages/StatProfilerHTML/FRimo/src/StatProfilerHTML.jl:17 [inlined]
 [5] top-level scope
   @ REPL[10]:1

@NHDaly
Copy link
Member

NHDaly commented Mar 31, 2022

I've finally filed JuliaLang/julia#44818 about it. Sorry, should've done this weeks ago.

@PedroPizarro
Copy link

PedroPizarro commented Jul 19, 2024

I am also experiencing this issue on a recent master build of Julia.

Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 4 × Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 4 default, 0 interactive, 2 GC (on 4 virtual cores)
Environment:
JULIA_NUM_THREADS = 4
JULIA_EDITOR = code

The error:

julia> @pprof peakflops()
ERROR: KeyError: key 0x0000000000000001 not found
Stacktrace:
[1] getindex
@ ./dict.jl:498 [inlined]
[2]
@ PProf ~/.julia/packages/PProf/S0VKK/src/PProf.jl:185
[3] pprof
@ ~/.julia/packages/PProf/S0VKK/src/PProf.jl:83 [inlined]
[4] pprof()
@ PProf ~/.julia/packages/PProf/S0VKK/src/PProf.jl:83
[5] top-level scope
@ ~/.julia/packages/PProf/S0VKK/src/PProf.jl:313
Some type information was truncated. Use show(err) to see complete types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants