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

TStreamerInfo removed from the file when new object is written

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: master, 6.12/06, 6.16/00, 6.14/08, 6.18/04
    • Fix Version/s: 6.20/00, 6.18/06
    • Component/s: I/O
    • Labels:
      None
    • Environment:

      Linux 64 bit

      Description

      There is file used in JSROOT geometry tests: https://root.cern/js/files/geom/geodemo.root

      If I try to update it (write several new objects), some entries from streamer infos list disappear. To reproduce do:

      wget https://root.cern/js/files/geom/geodemo.root

      root -l
       
      root [0] TFile::Open("geodemo.root","update");
      root [1] gFile->GetStreamerInfoList()->FindObject("TGeoParaboloid")
       (TObject *) 0x44f05e0
      root [2] TGeoTessellated *g = new TGeoTessellated("triaconthaedron", 30)
      root [3] gFile->WriteObject(g,"tess");
      root [4] gFile->GetStreamerInfoList()->FindObject("TGeoParaboloid")
      (TObject *) 0x45c0bb0
      root [5] gFile->Close();
      root [6] .q
      

      When starting root next time, TGeoParaboloid disappeared from streamer info.

      root.exe -l geodemo.root                                                                                                                                                                                                             (04.02. 10:55:38) !4707 
      root [0] 
      Attaching file geodemo.root as _file0...
      (TFile *) 0x3c7ee90
      root [1] gFile->GetStreamerInfoList()->FindObject("TGeoParaboloid")
      (TObject *) nullptr
      

      But there is still TGeoParaboloid object in the file.

      As a result - I cannot read it from the file with JSROOT.

       

       

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pcanal Philippe Canal
                Reporter:
                slinev Serguei Linev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: