Skip to content

ERROR: LoadError: UndefVarError: undefmatrix not defined #157

@ranocha

Description

@ranocha

We get the following error in our CI runs:

  ✗ NonlinearSolve
  ✗ OrdinaryDiffEq
  183 dependencies successfully precompiled in 569 seconds
  2 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
...
ERROR: LoadError: UndefVarError: undefmatrix not defined
Stacktrace:
  [1] jacobian_caches(alg::NonlinearSolve.TrustRegion{0, true, Val{:forward}, Nothing, typeof(NonlinearSolve.DEFAULT_PRECS), true, nothing, Rational{Int64}}, f::Function, u::Float32, p::Float32, #unused#::Val{false})
    @ NonlinearSolve ~/.julia/packages/NonlinearSolve/VEpTU/src/trustRegion.jl:213
  [2] __init(::SciMLBase.NonlinearProblem{Float32, false, Float32, SciMLBase.NonlinearFunction{false, SciMLBase.FullSpecialize, NonlinearSolve.var"#16#18", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardNonlinearProblem}, ::NonlinearSolve.TrustRegion{0, true, Val{:forward}, Nothing, typeof(NonlinearSolve.DEFAULT_PRECS), true, nothing, Rational{Int64}}; alias_u0::Bool, maxiters::Int64, abstol::Float32, internalnorm::Function, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ NonlinearSolve ~/.julia/packages/NonlinearSolve/VEpTU/src/trustRegion.jl:239
  [3] #init_call#18
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:412 [inlined]
  [4] #init_up#21
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:462 [inlined]
  [5] #init#19
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:425 [inlined]
  [6] __solve(::SciMLBase.NonlinearProblem{Float32, false, Float32, SciMLBase.NonlinearFunction{false, SciMLBase.FullSpecialize, NonlinearSolve.var"#16#18", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardNonlinearProblem}, ::NonlinearSolve.TrustRegion{0, true, Val{:forward}, Nothing, typeof(NonlinearSolve.DEFAULT_PRECS), true, nothing, Rational{Int64}}; kwargs::Base.Pairs{Symbol, Float32, Tuple{Symbol}, NamedTuple{(:abstol,), Tuple{Float32}}})
    @ NonlinearSolve ~/.julia/packages/NonlinearSolve/VEpTU/src/NonlinearSolve.jl:30
  [7] #solve_call#22
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:496 [inlined]
  [8] #solve_up#29
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:927 [inlined]
  [9] #solve#28
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:886 [inlined]
 [10] macro expansion
    @ ~/.julia/packages/NonlinearSolve/VEpTU/src/NonlinearSolve.jl:53 [inlined]
 [11] top-level scope
    @ ~/.julia/packages/SnoopPrecompile/1XXT1/src/SnoopPrecompile.jl:69
 [12] include
    @ ./Base.jl:418 [inlined]
 [13] 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)
    @ Base ./loading.jl:1318
 [14] top-level scope
    @ none:1
 [15] eval
    @ ./boot.jl:373 [inlined]
 [16] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [17] top-level scope
    @ none:1
in expression starting at /home/runner/.julia/packages/NonlinearSolve/VEpTU/src/NonlinearSolve.jl:1
ERROR: LoadError: Failed to precompile NonlinearSolve [8913a72c-1f9b-4ce2-8d82-6[509](https://github.com/trixi-framework/Trixi2Vtk.jl/actions/runs/4253970904/jobs/7399566972#step:6:512)4dcecaec] to /home/runner/.julia/compiled/v1.7/NonlinearSolve/jl_Wiq4lE.

See https://github.com/trixi-framework/Trixi2Vtk.jl/actions/runs/4253970904/jobs/7399566972#step:6:476

This CI run uses Julia v1.7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions