Tempo detection not working on a midi track

I’m trying to use the tempo detection feature, but when I select the midi event (an entire piano song), nothing happens when analyzing. All the other buttons remain grey and no tempo track is created. Any suggestion, please?

uhm…I had to cut the performance into smaller pieces to make the calculation possible. But this makes no sense, sometimes with the same exact cut the algorithm work and other times not. The overall interface seems buggy on selecting buttons and there’s certainly something bad happening especially on the last releases