generate thumb error causing crash