Closed roflmaostc closed 1 year ago
Got this too, for DynamicExpressions.jl (I'm also on 1.8.3 Julia; though on a mac M1 rather than linux)
using SnoopCompile
invalidations = @snoopr begin
using DynamicExpressions
end;
trees = SnoopCompile.invalidation_trees(invalidations)
Output:
ERROR: AssertionError: leaf !== nothing
Stacktrace:
[1] invalidation_trees(list::Vector{Any}; exclude_corecompiler::Bool)
@ SnoopCompile ~/.julia/packages/SnoopCompile/Q8zUg/src/invalidations.jl:365
[2] invalidation_trees(list::Vector{Any})
@ SnoopCompile ~/.julia/packages/SnoopCompile/Q8zUg/src/invalidations.jl:294
[3] top-level scope
@ REPL[11]:1
Tried SnoopCompile 2.8.1, and get this instead:
ERROR: unexpected loctag jl_insert_method_instance at 20156
Stacktrace:
[1] error(::String, ::String, ::String, ::Int64)
@ Base ./error.jl:44
[2] invalidation_trees(list::Vector{Any}; exclude_corecompiler::Bool)
@ SnoopCompile ~/.julia/packages/SnoopCompile/wiBT1/src/invalidations.jl:373
[3] invalidation_trees(list::Vector{Any})
@ SnoopCompile ~/.julia/packages/SnoopCompile/wiBT1/src/invalidations.jl:287
[4] top-level scope
@ REPL[3]:1
I just realized this issue is a duplicate of #302 FYI
Looks like #302 was solved in https://github.com/SciML/ModelingToolkit.jl/pull/1821 somehow... @ChrisRackauckas @YingboMa @lamorton how did you end up solving it? Sounds like it is known to show up on at least FourierTools.jl, ModelingToolkit.jl, and DynamicExpressions.jl.
@MilesCranmer not sure we did anything different. Like I said, it was intermittent, so could still be lurking.
By intermittent, do you mean it randomly appears sometimes if you re-run the exact same code on same OS/dependencies/etc, or do you mean it shows up for certain combinations of dependencies?
@MilesCranmer I wasn't able to reproduce it on my machine, and on Github it came and went between runs. IDK if the maintainers made any changes on the GH Actions.
Thanks! Very weird bug.
Luckily these ones FourierTools.jl and DynamicExpressions.jl seem to be locally reproducible, so maybe the bug can finally be tracked down.
In my case it seemed to be reproducible, the couple of times I checked it.
I never knew that existed so any fix was accidental.
I'm having the same issue while tracking invalidations for Gridap.jl. Any progress on what might be going on?
Not reproducible for me on SnoopCompile 2.9.7 and either Julia 1.8.4 or nightly. Can you still reproduce it?
This package has had many changes and so has Julia. It's worth nothing that 1.8.4 backported some changes from 1.9 in how it handles and logs invalidations, so it's quite possible this is what fixed the bug.
Let me know if you can reproduce this, otherwise I will close.
Thanks @timholy. I can report that my issue on DynamicExpressions.jl went away on Julia 1.9.0-beta2 with SnoopCompile 2.9.7! Everything works smoothly now 🎉
Thanks @timholy. The issue has also been resolved on Gridap.jl using SnoopCompile 2.9.7 and Julia 1.8.5. Thanks to everybody who has been contributing to this!
Thanks for the feedback!
Hi,
not quite sure, what's going wrong but while testing this, I encountered this:
Is it my fault somewhere?
Thanks!
Felix