StaticArrays.jl icon indicating copy to clipboard operation
StaticArrays.jl copied to clipboard

lu(::SizedMatrix) fails for large dimension

Open tpapp opened this issue 3 years ago • 4 comments

julia> VERSION
v"1.8.0-rc1.41"

(@v1.8) pkg> st StaticArrays
Status `~/.julia/environments/v1.8/Project.toml`
  [90137ffa] StaticArrays v1.5.0

julia> using StaticArrays, LinearAlgebra

julia> N = 149
149

julia> lu(SizedMatrix{N,N}(randn(N, N)))
Internal error: encountered unexpected error in runtime:
StackOverflowError()
process_node! at ./compiler/ssair/ir.jl:989
process_newnode! at ./compiler/ssair/ir.jl:1195
iterate at ./compiler/ssair/ir.jl:1295
process_newnode! at ./compiler/ssair/ir.jl:1203
iterate at ./compiler/ssair/ir.jl:1295

repeats forever.

tpapp avatar Jul 08 '22 13:07 tpapp

Weirdly enough, a = lu(SizedMatrix{N,N}(randn(N, N))); a works fine.

mateuszbaran avatar Jul 08 '22 13:07 mateuszbaran

Not for me, I get the same error. Did you try in a clean environment?

tpapp avatar Jul 11 '22 08:07 tpapp

I checked again in a clean environment. a = lu(SizedMatrix{N,N}(randn(N, N))); a works fine on Julia 1.7.1 but not on Julia 1.8-rc1. Still weird.

mateuszbaran avatar Jul 11 '22 08:07 mateuszbaran

Anyway, showing the value is the issue, not computing lu.

mateuszbaran avatar Jul 11 '22 08:07 mateuszbaran