Skip to content
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

BoundsError while detecting headers on linux CI #724

Closed
rofinn opened this issue Aug 14, 2020 · 1 comment
Closed

BoundsError while detecting headers on linux CI #724

rofinn opened this issue Aug 14, 2020 · 1 comment

Comments

@rofinn
Copy link
Member

rofinn commented Aug 14, 2020

I realize this isn't very helpful, but I'm getting a weird indexing error when CSV is trying to detect headers. My code works fine on mac and in a linux docker container, but seems to be failing on our CI system (running the same linux docker container). Since this is challenging to reproduce I thought I'd open an issue in case folks have some suggestions on things to check first (outside of trying to manually run this on the CI server).

BoundsError: attempt to access 256-element Array{Int64,1} at index [0]
  Stacktrace:
   [1] getindex at ./array.jl:744 [inlined]
   [2] getindex at ./multidimensional.jl:486 [inlined]
   [3] incr! at /root/.julia/packages/CSV/MKemC/src/detection.jl:162 [inlined]
   [4] detectdelimandguessrows(::Array{UInt8,1}, ::Int64, ::Int64, ::Int64, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::Nothing, ::Bool) at /root/.julia/packages/CSV/MKemC/src/detection.jl:77
   [5] Header at /root/.julia/packages/CSV/MKemC/src/header.jl:160 [inlined]
   [6] #File#26(::Int64, ::Bool, ::Int64, ::Nothing, ::Int64, ::Bool, ::Nothing, ::Nothing, ::Bool, ::Nothing, ::Nothing, ::Array{String,1}, ::String, ::Nothing, ::Bool, ::Char, ::Nothing, ::Nothing, ::Char, ::Nothing, ::Nothing, ::UInt8, ::Array{String,1}, ::Array{String,1}, ::Nothing, ::Nothing, ::Dict{Type,Type}, ::Nothing, ::Float64, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Type{CSV.File}, ::Array{UInt8,1}) at /root/.julia/packages/CSV/MKemC/src/file.jl:216
   [7] CSV.File(::Array{UInt8,1}) at /root/.julia/packages/CSV/MKemC/src/file.jl:216
@rofinn
Copy link
Member Author

rofinn commented Aug 14, 2020

Figured out it was an issue with different versions of tar and trying to load a ._ metadata file.

@rofinn rofinn closed this as completed Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant