Open dpinol opened 1 year ago
With julia 1.6 I get this error, which is the same I get in my full project
julia> @allocated run(f, buf)
ERROR: cannot resize array with shared data
Stacktrace:
[1] Buffer
@ ./array.jl:888 [inlined]
[2] Buffer
@ ./array.jl:1108 [inlined]
[3] Buffer
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Random/src/RNGs.jl:354 [inlined]
[4] (::Buffer)(::typeof(Random.seed!), ::Random.MersenneTwister, ::Vector{UInt32})
@ Alloc ~/.julia/packages/IRTools/FeBr2/src/reflection/dynamo.jl:0
[5] Buffer
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Random/src/RNGs.jl:362 [inlined]
[6] (::Buffer)(::typeof(Random.seed!), ::Random.MersenneTwister)
@ Alloc ~/.julia/packages/IRTools/FeBr2/src/reflection/dynamo.jl:0
[7] Buffer
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Random/src/Random.jl:426 [inlined]
[8] (::Buffer)(::typeof(Random.seed!), ::Random.MersenneTwister, ::Nothing)
@ Alloc ~/.julia/packages/IRTools/FeBr2/src/reflection/dynamo.jl:0
[9] Buffer
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Random/src/RNGs.jl:147 [inlined]
[10] (::Buffer)(::Type{Random.MersenneTwister}, ::Nothing)
@ Alloc ~/.julia/packages/IRTools/FeBr2/src/reflection/dynamo.jl:0
[11] Buffer
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Random/src/RNGs.jl:147 [inlined]
[12] (::Buffer)(args::Type{Random.MersenneTwister})
@ Alloc ~/.julia/packages/IRTools/FeBr2/src/reflection/dynamo.jl:0
[13] Buffer
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Random/src/RNGs.jl:376 [inlined]
[14] (::Buffer)(::typeof(Random.default_rng), ::Int64)
@ Alloc ~/.julia/packages/IRTools/FeBr2/src/reflection/dynamo.jl:0
[15] Buffer
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Random/src/RNGs.jl:370 [inlined]
[16] Buffer
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Random/src/Random.jl:289 [inlined]
[17] (::Buffer)(::typeof(rand), ::Type{Float64}, ::Tuple{Int64, Int64})
@ Alloc ~/.julia/packages/IRTools/FeBr2/src/reflection/dynamo.jl:0
[18] Buffer
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Random/src/Random.jl:277 [inlined]
[19] Buffer
@ ./REPL[3]:2 [inlined]
[20] (::Buffer)(args::typeof(f))
@ Alloc ~/.julia/packages/IRTools/FeBr2/src/reflection/dynamo.jl:0
[21] run
@ ~/.julia/packages/Alloc/6Rvr0/src/stack.jl:25 [inlined]
[22] top-level scope
@ ./timing.jl:321 [inlined]
[23] top-level scope
@ ./REPL[5]:0
Package Version
0.1.0
Julia Version
1.8.2
OS / Environment
ubuntu 22.4
Describe the bug
Example in project readme crashes
Steps to Reproduce
Expected Results
It should not crash
Observed Results
It crashes
Relevant log output