UnROOT.jl icon indicating copy to clipboard operation
UnROOT.jl copied to clipboard

TTree v5 parsing issue

Open tamasgal opened this issue 1 year ago • 0 comments

This is a separate issue for something which I believe is unrelated to the issue where it was originally reported (https://github.com/JuliaHEP/UnROOT.jl/issues/168#issuecomment-1405476730) by @Cornelius-G

The file has a TTree v5 and we have a runaway file pointer with the latest UnROOT version:

julia> f = ROOTFile("/Users/tamasgal/Downloads/data.root")
ROOTFile with 1 entry and 53 streamers.
/Users/tamasgal/Downloads/data.root


julia> f["proton"]
ERROR: Object 'UnROOT.TObjArray' has 6077 bytes; expected 42958
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] endcheck
    @ ~/Dev/UnROOT.jl/src/io.jl:140 [inlined]
  [3] unpack(io::IOBuffer, tkey::UnROOT.TKey32, refs::Dict{Int32, Any}, T::Type{UnROOT.TObjArray})
    @ UnROOT ~/Dev/UnROOT.jl/src/streamers.jl:334
  [4] UnROOT.TTree(io::UnROOT.MmapStream, tkey::UnROOT.TKey32, refs::Dict{Int32, Any}; top::Bool)
    @ UnROOT ~/Dev/UnROOT.jl/src/bootstrap.jl:1091
  [5] UnROOT.TTree(io::UnROOT.MmapStream, tkey::UnROOT.TKey32, refs::Dict{Int32, Any})
    @ UnROOT ~/Dev/UnROOT.jl/src/bootstrap.jl:1057
  [6] macro expansion
    @ ~/Dev/UnROOT.jl/src/root.jl:172 [inlined]

The corresponding file reuploaded: data.zip

tamasgal avatar Apr 20 '23 23:04 tamasgal