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

Reading a std::array<Long64_t, 1> from a TFile created on linux does not work on macOS #9001

Open
ktf opened this issue Sep 15, 2021 · 6 comments
Assignees
Labels

Comments

@ktf
Copy link
Contributor

ktf commented Sep 15, 2021

To reproduce, download http://ccdb-test.cern.ch:8080/download/d64bd450-1619-11ec-a9d5-200114580202 and open it in TBrowser. Works on ubuntu, but on mac I get:

root [2] Error in <TBufferFile::ReadVersion>: Could not find the StreamerInfo with a checksum of 0xdc6299b4 for the class "array<Long64_t,1>" in /Users/ktf/Downloads/array<Long64_t,1>_1631706076679.root.
Error in <TBufferFile::CheckByteCount>: object of class array<Long64_t,1> read too few bytes: 6 instead of 14

when clicking on ccdb_object;1.

Both ROOT 6.24.02 and 6.24.06 seem to be affected.

@ktf ktf added the bug label Sep 15, 2021
@ktf
Copy link
Contributor Author

ktf commented Sep 15, 2021

Notice that using a std::vector in place of a std::array works as expected.

@pcanal
Copy link
Member

pcanal commented Sep 16, 2021

Does the reading work properly on the same platform (both no warning and the correct value)? What is the array value for the example provided?

@ktf
Copy link
Contributor Author

ktf commented Sep 16, 2021

yes. Reading it back on linux works just fine.

@ktf
Copy link
Contributor Author

ktf commented Sep 16, 2021

The actual value should be some timestamp around 1630659771715.

@pcanal
Copy link
Member

pcanal commented Sep 16, 2021

:) ok. That's what I get, that looked like a random stream :) .. well not quite the same but similar (1631706076551146), I assume it is a different file

@ktf
Copy link
Contributor Author

ktf commented Sep 16, 2021

yeah, I cannot check the actual value right now, but it looks correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants