# TBasket problem reading TMVA file

**URL:** <https://root-forum.cern.ch/t/tbasket-problem-reading-tmva-file/14167>\
**Category:** TMVA\
**Created:** [April 19, 2012, 10:34am UTC](https://root-forum.cern.ch/t/tbasket-problem-reading-tmva-file/14167 "2012-04-19T10:34:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaxara](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/yaxara/32/11286_2.png) [@Yaxara](https://root-forum.cern.ch/u/Yaxara)\
**Post date:** [April 19, 2012, 10:34am UTC](https://root-forum.cern.ch/t/tbasket-problem-reading-tmva-file/14167/1 "2012-04-19T10:34:08Z")

</div>

Hi to everyone,  
I am trying to read a file from TMVA output (which stores some variables in a simple TNtuple), but it reports always this error:

[quote]R\_\_unzip: error in the header  
Error in TBasket::ReadBasketBuffers: Inconsistency found in header (nin=0, nbuf=0)[/quote]

When I look to the TNtuple structure I find a Tree Compression Factor of -32000. Is there anything that I can do?  
I am running ROOT 28.00c (and cannot change it).

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [July 4, 2012, 10:37am UTC](https://root-forum.cern.ch/t/tbasket-problem-reading-tmva-file/14167/2 "2012-07-04T10:37:07Z")

</div>

Hi,

It somehow look like the file is corrupted and/or was not produced correctly. A priori either the producing code did not run to completion or there is serious issue (memory over-write, etc.) in the producing code (Check using valgrind).

Cheers,  
Philippe.
