Assertion failed

Hi, maybe who know what it means:

Assertion failed: lua_type(L, -3) == LUA_TFUNCTION, file …\src\gui_script.cpp, line 510

Hello! Could you please post the crash log? Its saved in a separate file depending on your OS, documented in the manual

For windows “…\Users.…\AppData\Roaming\Defold”?

I think I finded the reason.

This happens when I call this function twice

gui.play_spine(self.spine_scene, “idle”, gui.PLAYBACK_ONCE_FORWARD, 0.1)

Or, for example, you can use something like that

gui.play_spine(self.spine_scene, “idle”, gui.PLAYBACK_ONCE_FORWARD, 0.1, function()
gui.play_spine(self.spine_scene, “idle”, gui.PLAYBACK_ONCE_FORWARD, 0.1)
end)

and you have to get “Assertion failed”