-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
OverflowError when splatting array of arrays #11884
Comments
Yes, much better behavior than before @yuyichao fixed it so quickly! (Thanks again!) |
Is it something strange in the GC that it can work the 2nd time? Before the fixes, the first call would have hung julia. |
And just to give a example that doesn't depend on external packages. julia> ary = [[1, 2] for i in 1:100000];
julia> vcat(ary...);
ERROR: OverflowError()
julia> vcat(ary[1:100]...);
julia> vcat(ary...); |
@JeffBezanson suggests avoiding the splatting when doing this in favor of doing something like https://github.com/JuliaSparse/Metis.jl/blob/b675ea7adfb8d5230814757d8f08bfce63a42e02/src/util.jl#L1-L8 |
This avoids the JuliaLang/julia#11884 issue while waiting for JuliaLang/julia#11888 to be merged.
This avoids the JuliaLang/julia#11884 issue while waiting for JuliaLang/julia#11888 to be merged.
The test vector is from
Metis.jl
. The bug can be seen from the sequenceThe text was updated successfully, but these errors were encountered: