Ok, I noticed why that happens. I included some external images in one of the sections, and it seems it didn't like it. After deleting the images, it exports the PDF without any problem.
It's not an important issue for me, but I guessed you'd like to know :)
