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

TTree v5 parsing issue #241

Open
tamasgal opened this issue Apr 20, 2023 · 0 comments
Open

TTree v5 parsing issue #241

tamasgal opened this issue Apr 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@tamasgal
Copy link
Member

tamasgal commented Apr 20, 2023

This is a separate issue for something which I believe is unrelated to the issue where it was originally reported (#168 (comment)) 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 tamasgal added the bug Something isn't working label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant