Root file size question

Hi, I am not sure I can reproduce it because I wrote to the root file over the past 3 months using different scripts. And I think it happened recently. There is no temporary or TTree in the file.

Several days ago, right after I created 10 subdirectories and wrote some histograms in the file, and then using TBrowser to look at the histograms. Odd thing was when I click dir1 through dir5, an error message like the one in Error in ReadBasketBuffers & Gaps with Map() happened (I don’t remember exactly the error message, but it looks like the same) , while dir6 through dir10 works fine.

I then deleted dir1 through dir5, and then wrote them again. Now the error message appeared when I use TBrowser to click dir6 through dir10, while dir1 through dir5 works fine . Noted that now dir6 through dir10 appeared before the new dir1 through dir5 in the root file, I suspected that any directory in there will have that error. My naive solution is to delete dir1 through dir10 first, created 5 empty directories which I won’t use (hoping they could occupy the space that may cause error), then write dir1 through dir10 again. Now the problems is solved. But no more error when I click the empty directories.

I am not sure whether this is related to the sudden change of the file size, but it is really odd to me.

[quote=“pcanal”]Hi,

Humm … Is this reproducible? Do you store something ‘temporarily’ in the file? Is there any TTree involved? What is your code looking like?

Philippe.[/quote]