-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Unreachable reached in AtomicStructures.jl on Julia 1.8.1, but not 1.8.0 #46735
Comments
Smaller working example: julia> versioninfo()
Julia Version 1.8.1
Commit afb6c60d69a (2022-09-06 15:09 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 32 × AMD Ryzen 9 3950X 16-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, znver2)
Threads: 1 on 32 virtual cores
(v1.8) pkg> activate .
Activating new project at `/export/stefanos/work/projects/test-code/test-atomic-structure`
(test-atomic-structure) pkg> add AtomicStructure AtomicLevels CompactBases
Updating registry at `~/.julia/registries/General.toml`
Resolving package versions...
Updating `/export/stefanos/work/projects/test-code/test-atomic-structure/Project.toml`
[10933b4c] + AtomicLevels v0.1.8
[e24b7630] + AtomicStructure v0.1.2
[2c0377a8] + CompactBases v0.3.8
⋮
julia> using AtomicStructure, AtomicLevels, CompactBases
julia> R = StaggeredFiniteDifferences(0.15, 0.6, 0.002, 50)
Staggered finite differences basis {Float64} on 0.0..7.7452155051783524 with 50 points with spacing varying from 0.15006749493775312 to 0.15663927831901248
julia> atom = Atom(R, csfs([c"1s", c"2s", c"2p", c"3s", c"3p", c"3d"]),
pc"H", verbosity=4) TOMLs attached: unreachable-atoms.zip |
Since you're on Linux, an rr trace could be helpful. Just start Julia with |
Here is the crash report: https://s3.amazonaws.com/julialang-dumps/reports/2022-09-13T08-57-03-jagot.tar.zst I had to manually create a symlink |
Reduced to julia> using AtomicStructure: RadialOperator
julia> S = RadialOperator{T,B} where {T,B}
LazyArrays.Applied{<:Any, typeof(*), <:Tuple{var"#s128", M, var"#s127"} where {var"#s128"<:(Union{B, var"#s5"} where var"#s5"<:(QuasiArrays.SubQuasiArray{<:Any, <:Any, <:B})), var"#s127"<:(Union{var"#s7", var"#s6"} where {var"#s7"<:(QuasiArrays.QuasiAdjoint{<:Any, B}), var"#s6"<:(QuasiArrays.QuasiAdjoint{var"#s4", <:QuasiArrays.SubQuasiArray{var"#s4", var"#s8", var"#s9"}} where {var"#s4", var"#s8", var"#s9"<:B})})}} where {T, B, M<:AbstractMatrix{T}}
julia> typeintersect(S, RadialOperator)
LazyArrays.Applied{<:Any, typeof(*), <:Tuple{var"#s128", M, var"#s127"} where {B<:ContinuumArrays.Basis, M<:AbstractMatrix{T}, var"#s128"<:(QuasiArrays.SubQuasiArray{<:Any, <:Any, Union{}}), var"#s127"<:(Union{QuasiArrays.QuasiAdjoint{<:Any, B}, QuasiArrays.QuasiAdjoint{<:Any, B1}, QuasiArrays.QuasiAdjoint{var"#s4", <:QuasiArrays.SubQuasiArray{var"#s4", var"#s8", Union{}}} where {var"#s4", var"#s8"}} where B1<:ContinuumArrays.Basis)}} where T # Union{} after 9b3a2bba31fe4d18d9fa06fac6aaecc2e242d84b |
Could be worth checking if this is also due to 5d03fcd. |
while working to reduce that more, I encountered this mildly interesting additional case:
(it fails almost instantly, but formatting the stacktrace then takes a minute) smaller MWEs that doesn't involve any packages:
also ran into this additional issue too:
with additional MWEs:
|
For reference, 9aabb4c on master. |
It might be possible to work around this by simplifying some type constraints a bit, e.g. in
remove the |
FWIW, it looks like they already worked around it by removing some of the extraneous |
Yes, but that caused an interesting I fixed this by removing some overloads which I erroneously thought were not needed anymore, and then broke another package of mine 😱 This I have to fix today. I know that my code is rather type-heavy, because it takes ages to compile and run (for the first time). This is probably compounded by my overloading methods like |
Please report this on BugReporting.jl |
https://github.com/JuliaAtoms/AtomicStructure.jl/actions/runs/3042781441/jobs/4901317463#step:6:200
Steps to reproduce:
The same test suite works fine on 1.6 and 1.8.0. Will endeavour to produce MWE.
The text was updated successfully, but these errors were encountered: