Program stuck at get_latest_frame()

I have also tried setting up the stream parameters as mentioned in Error in getting frames of IR stream with 320*240 @30fps - #4 by Victor.

And when I run the tests, all of them fail. The weird thing is that some executables in the /bin directory work just fine.