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

@profview errors on second attempt #2540

Closed
alecloudenback opened this issue Nov 7, 2021 · 1 comment · Fixed by #2551
Closed

@profview errors on second attempt #2540

alecloudenback opened this issue Nov 7, 2021 · 1 comment · Fixed by #2551

Comments

@alecloudenback
Copy link

When running a second call of the same signature, I get an error instead of displaying the profiling results.

julia> @profview sum(rand(100)) # works

julia> @profview sum(rand(1000))
ERROR: BoundsError: attempt to access 0-element Vector{Int64} at index [1]

julia> @profview sum(rand([true,false])) # works

info: Julia Insider 1.5.2. Also attempted on Julia 1.4.3 (non-insider version)

Julia Version 1.7.0-rc2
Commit f23fc0d27a (2021-10-20 12:45 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin20.6.0)
  CPU: Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)
Environment:
  JULIA_NUM_THREADS = 4
  JULIA_EDITOR = code
@pfitzseb pfitzseb added the bug label Nov 7, 2021
@pfitzseb pfitzseb added this to the Next Patch milestone Nov 7, 2021
@pfitzseb
Copy link
Member

pfitzseb commented Nov 7, 2021

FWIW, I'm pretty sure this happens because the second call just doesn't collect any samples (because it's too fast).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants