I get a St9bad_alloc when I am reading the 4th tree (out of 200) from a txt weights file. The error comes from:
TMVA::MethodBDT::ReadWeightsFromStream( istream& istr )
The trees were trained using root 5.16 and I am using root 5.28, but that shouldn’t be a problem, since other people on other systems have had no problems with this.
digging even deeper, the St9bad_alloc crash comes from the line:
currentNode = CreateNode(); // create a new node to be read next
The function is defined in:
G__get_linked_tagnum(&G__G__TMVA2LN_TMVAcLcLNode), -1, 0, 0, 1, 1, 8,
"", (char*)NULL, (void
*) NULL, 3);
I don’t understand what this memfunc_setup is or what the problem could be.
I’m using Red Hat 4.1.2. I don’t think I’m running out of memory, the weights file is only 18MB and it crashes already on the 4th out of 200 trees. Any thoughts?