Skip to content

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

Closed as duplicate

Description

@ktf

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.

Activity

  1. ktf commented on Sep 15, 2021

    @ktf
    ContributorAuthor

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

  2. pcanal commented on Sep 16, 2021

    @pcanal
    Member

    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?

  3. ktf commented on Sep 16, 2021

    @ktf
    ContributorAuthor

    yes. Reading it back on linux works just fine.

  4. ktf commented on Sep 16, 2021

    @ktf
    ContributorAuthor

    The actual value should be some timestamp around 1630659771715.

  5. pcanal commented on Sep 16, 2021

    @pcanal
    Member

    :) 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

  6. ktf commented on Sep 16, 2021

    @ktf
    ContributorAuthor

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

  7. github-actions commented on Sep 9, 2025

    @github-actions

    Hi @ferdymercury, @pcanal,

    It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

    Sincerely,
    🤖

  8. github-actions commented on Sep 10, 2025

    @github-actions

    Hi @ferdymercury, @pcanal,

    It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

    Sincerely,
    🤖

  9. github-actions commented on Sep 11, 2025

    @github-actions

    Hi @ferdymercury, @pcanal,

    It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

    Sincerely,
    🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions