Crash when hero:set_animation() has a wrong parameter
Just do hero:set_direction(5)
(or any integer value not between 0 and 3). The engine crashes with a dialog "Invalid direction for set_animation_direction". It should instead show a proper Lua error.