I have being using orb slam2 on TUM datasets. It starts normally but hangs after the images get over. I tested the same thing on my video, same behaviour. I have to kill the task to stop it.
I tried installing all the required libraries again, but it didn't help.
Using Ubuntu 16.04

The frames are the inputs.
What do you expect when the program gets no more inputs?
When the program has nothing to work with, it pauses and waits
Or I might not be understanding your question.
Its the same mono_tum program in examples. It do not stops. Just hangs when the frames are over.
I've got the same error with the same dataset. Images are over, but ORB-SLAM has to do few more operations including save the KeyframeTrajectory.txt file so it should still run
@davide200294 But KeyframeTrajectory.txt file is not getting generated at all even after a long time since the last frame.
Was anyone able to obtain the KeyframeTrajectory.txt file?
I solved the problem by referring to #547
Most helpful comment
I solved the problem by referring to #547