Identified the problem, but didnt solve it. It is at the TTF_RenderText method.
Problem identified, opening the font using TTF_OpenFont. Added the ubuntu font and an image to test.