-
Notifications
You must be signed in to change notification settings - Fork 47
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
invalidation_trees()
throws error: Collection has multiple elements
#322
Comments
Without having access to ADRIA this will be hard for me to debug. Which version of SnoopCompile are you using? For me SnoopCompile.jl/src/invalidations.jl Line 386 in fa775b3
But you might consider updating to a newer SnoopCompile. Another alternative is to download the beta of Julia 1.9 and try that. |
Thanks, I'll have a look tomorrow but I was certain all packages are their most recent. Will update after I confirm. I'll also try it with v1.9-beta |
They can't possibly be at their most recent (now), given that stacktrace. But three weeks ago, that may well have been true! |
On Julia v1.8.5, but now with SnoopCompile v2.9.8, the error goes away and the expected output seems to be displayed, albeit with a number of warnings that repeat (27 times to be exact): julia> trees = invalidation_trees(invalidations)
┌ Warning: MethodInstance for MacroTools.match(::Expr, ::Expr, ::Dict{Any, Any}) not found in `backedge_table`
└ @ SnoopCompile C:\Users\takuy\.julia\packages\SnoopCompile\yStp6\src\invalidations.jl:429
┌ Warning: MethodInstance for MacroTools.match(::Expr, ::Expr) not found in `backedge_table`
└ @ SnoopCompile C:\Users\takuy\.julia\packages\SnoopCompile\yStp6\src\invalidations.jl:429
# ... this repeats 27 times ... I've been able to move forward now so thank you for fixing whatever was causing my issue. If the warnings are not of concern, I think this issue can be closed. Thanks again! |
You might try Julia 1.9.0-beta (or wait until 1.9 comes out officially), I think that gets rid of the warnings. |
Hello!
I'm developing a package (http://github.com/open-AIMS/ADRIA.jl) which has grown quite large. Initial precompilation can take a long time: typically 2mins but I've seen upwards of 5mins as well.
I was hoping to use SnoopCompile to help identify where the biggest causes are but following the tutorial the
invalidation_trees()
step throws an error:ERROR: ArgumentError: Collection has multiple elements, must contain exactly 1 element
.Is this a bug in SnoopCompile or am I doing something wrong?
The text was updated successfully, but these errors were encountered: