About tree space

i hav a problem

When i fill a tree for about 50,000 events with event loop
and track loop, it is found that tree isn’t filled with 50,000 events rather filled in less events.

Is there any space in tree filling ?

Could you post the shortest possible RUNNING script reproducing the problem?