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

Precompile failure can cause a Pluto notebook to stop responding; using Profile #2040

Open
BioTurboNick opened this issue Apr 19, 2022 · 4 comments
Labels
backend Concerning the julia server and runtime good first issue Good for newcomers package manager Pluto's built-in package manager

Comments

@BioTurboNick
Copy link
Contributor

BioTurboNick commented Apr 19, 2022

I believe the error itself is unrelated to Pluto, but it's causing the notebook to hang (working animations running). Pluto v0.19.0, Julia 1.8.0-beta3

It seems to be happening when I try to add using Profile. The only way to get out of it is to edit the notebook manually to remove that line, then restart the notebook.

      From worker 17:   ERROR: LoadError: ccall method definition: argument 1 type doesn't correspond to a C type
      From worker 17:   Stacktrace:
      From worker 17:    [1] top-level scope
      From worker 17:      @ ~/.julia/packages/SentinelArrays/p1IoM/src/SentinelArrays.jl:209
      From worker 17:    [2] include
      From worker 17:      @ ./Base.jl:422 [inlined]
      From worker 17:    [3] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
      From worker 17:      @ Base ./loading.jl:1400
      From worker 17:    [4] top-level scope
      From worker 17:      @ stdin:1
      From worker 17:   in expression starting at /home/ec2-user/.julia/packages/SentinelArrays/p1IoM/src/SentinelArrays.jl:1
      From worker 17:   in expression starting at stdin:1
      From worker 17:   ERROR: LoadError: Failed to precompile SentinelArrays [91c51154-3ec4-41a3-a24f-3f23e20d615c] to /home/ec2-user/.julia/compiled/v1.8/SentinelArrays/jl_rqgd4r.
      From worker 17:   Stacktrace:
      From worker 17:     [1] error(s::String)
      From worker 17:       @ Base ./error.jl:35
      From worker 17:     [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
      From worker 17:       @ Base ./loading.jl:1551
      From worker 17:     [3] compilecache
      From worker 17:       @ ./loading.jl:1495 [inlined]
      From worker 17:     [4] _require(pkg::Base.PkgId)
      From worker 17:       @ Base ./loading.jl:1199
      From worker 17:     [5] _require_prelocked(uuidkey::Base.PkgId)
      From worker 17:       @ Base ./loading.jl:1084
      From worker 17:     [6] macro expansion
      From worker 17:       @ ./loading.jl:1064 [inlined]
      From worker 17:     [7] macro expansion
      From worker 17:       @ ./lock.jl:223 [inlined]
      From worker 17:     [8] require(into::Module, mod::Symbol)
      From worker 17:       @ Base ./loading.jl:1028
      From worker 17:     [9] include
      From worker 17:       @ ./Base.jl:422 [inlined]
      From worker 17:    [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
      From worker 17:       @ Base ./loading.jl:1400
      From worker 17:    [11] top-level scope
      From worker 17:       @ stdin:1
      From worker 17:   in expression starting at /home/ec2-user/.julia/packages/CSV/0Elut/src/CSV.jl:1
      From worker 17:   in expression starting at stdin:1
@fonsp
Copy link
Owner

fonsp commented Apr 20, 2022

We should create a package that always errors during precompilation and add it to https://github.com/JuliaPluto/PlutoPkgTestRegistry to debug/fix/test this.

@fonsp fonsp added good first issue Good for newcomers package manager Pluto's built-in package manager labels Apr 20, 2022
@fonsp
Copy link
Owner

fonsp commented Apr 20, 2022

I created https://github.com/JuliaPluto/PlutoPkgTestErrorA.jl and added it to https://github.com/JuliaPluto/PlutoPkgTestRegistry.

I'm leaving the rest as a Good First Issue! Search for PlutoPkgTest in our source code to learn more about writing package manager tests.

@sylvain-bougnoux

This comment was marked as off-topic.

@fonsp

This comment was marked as off-topic.

@fonsp fonsp added the backend Concerning the julia server and runtime label May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Concerning the julia server and runtime good first issue Good for newcomers package manager Pluto's built-in package manager
Projects
None yet
Development

No branches or pull requests

3 participants