Closed ranocha closed 2 years ago
@mateuszbaran Do you have an idea what might have caused this problem in StaticArrays.jl?
My guess is that it was most likely caused by this change: https://github.com/JuliaArrays/StaticArrays.jl/pull/1016 but it looks like a Cassette bug:
julia> Cassette.overdub(Ctx(), () -> begin
StaticArrays.has_size(SVector)
end)
true
julia> StaticArrays.has_size(SVector)
false
Thanks, @mateuszbaran! Yes, I think it's a bug in Cassette.jl, too.
@ranocha, this should now be fixed with StaticArrays v1.5.1. Can you confirm and then close this issue? :)
Yes, this specific issue is fixed with StaticArrays v1.5.1, but it looks like the underlying bug in Cassette.jl is probably still there. I can't say for sure whether there is anything else since we just removed Cassette.jl from our test suite, see https://github.com/trixi-framework/Trixi.jl/pull/1173.
I observed the following error with
overdub
and StaticArrays.jl in Julia v1.7.3:Note that everything was fine with StaticArrays.jl v1.4.4:
However, it looks more like a problem with Cassette.jl to me, since the version without
overdub
works fine with both versions of StaticArrays.jl.