Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9417

Output files written by 6.13/02 with ZLIB can not be read by older ROOT releases

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 6.13/02
    • 6.14/00, 6.16/00
    • None
    • None
    • CentOS 7.5

    Description

      Dear ROOTers,

       

      I observe the following. A file created with ROOT 6.13/02 like:

      root [0] TFile *file = TFile::Open("output.root","NEW", "", 104);
      root [1] file->GetCompressionSettings()
      (int) 104
      root [2] TH1D *test = new TH1D("test","test",10,0,10);
      root [3] test->Write();
      root [4] file->Write();
      root [5] file->Close();

      When trying to open e.g. with 6.05/03, I get:

      $ root -l output.root
      root [0]
      Attaching file output.root as _file0...
      Error R__unzip_header: error in header
      Info in <TFile::GetStreamerInfoList>: cannot find the StreamerInfo record in file output.root
      (TFile *) nullptr

      Since there has been no announcement of a header format change in the release notes of 6.13/02, I doubt the header format was silently changed in a backwards-incompatbile way - what am I missing in configuring zlib compression?

       

      Cheers,

      Oliver

      Attachments

        Activity

          People

            oshadura Oksana Shadura
            ofreyerm Oliver Freyermuth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: