Last active
August 29, 2015 14:26
-
-
Save HybridDog/1f868a012b1f59cdf00c to your computer and use it in GitHub Desktop.
error in error handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local near_player = {x=0, y=0, z=0} | |
local please_crash = "foo" | |
minetest.register_node(":default:tmp", { | |
on_dig = function() | |
please_crash() | |
end | |
}) | |
minetest.after(3, function() | |
minetest.set_node(near_player, {name="default:tmp"}) | |
minetest.dig_node(near_player) | |
end) | |
--[[ | |
--minetest.dig_node crashes causing an error in error handling: | |
AL lib: FreeContext: (0x8910ab0) Deleting 1 Source(s) | |
2015-08-07 10:38:57: ACTION[main]: .__ __ __ | |
2015-08-07 10:38:57: ACTION[main]: _____ |__| ____ _____/ |_ ____ _______/ |_ | |
2015-08-07 10:38:57: ACTION[main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\ | |
2015-08-07 10:38:57: ACTION[main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | | | |
2015-08-07 10:38:57: ACTION[main]: |__|_| /__|___| /\___ >__| \___ >____ > |__| | |
2015-08-07 10:38:57: ACTION[main]: \/ \/ \/ \/ \/ | |
2015-08-07 10:38:57: ACTION[main]: World at [<worldpath>] | |
2015-08-07 10:38:57: ACTION[main]: Server for gameid="minetest_game_git" listening on 0.0.0.0:63454. | |
2015-08-07 10:38:59: ACTION[ServerThread]: singleplayer [127.0.0.1] joins game. | |
2015-08-07 10:38:59: ACTION[ServerThread]: singleplayer joins game. List of players: singleplayer | |
2015-08-07 10:38:59: ACTION[main]: Irrlicht: Could not open file of texture: character.png | |
2015-08-07 10:38:59: ACTION[main]: Irrlicht: Could not open file of texture: character.png | |
2015-08-07 10:39:00: ERROR[main]: ServerError: Runtime error in environment_Step(): Double fault error in node_on_dig(): error in error handling | |
2015-08-07 10:39:00: ERROR[main]: stack traceback: | |
2015-08-07 10:39:00: ERROR[main]: [C]: in function 'dig_node' | |
2015-08-07 10:39:00: ERROR[main]: <file_path>:12: in function 'func' | |
2015-08-07 10:39:00: ERROR[main]: /usr/share/minetest/builtin/game/misc.lua:17: in function 'update_timers' | |
2015-08-07 10:39:00: ERROR[main]: /usr/share/minetest/builtin/game/misc.lua:49: in function </usr/share/minetest/builtin/game/misc.lua:37> | |
2015-08-07 10:39:00: ERROR[main]: /usr/share/minetest/builtin/game/register.lua:341: in function </usr/share/minetest/builtin/game/register.lua:329> | |
2015-08-07 10:39:00: ACTION[ServerThread]: singleplayer leaves game. List of players: | |
AL lib: FreeContext: (0xb090c58) Deleting 1 Source(s) | |
]] | |
--[[ | |
--running the crash "function" directly here tells the error | |
please_crash() | |
AL lib: FreeContext: (0x9cdc630) Deleting 1 Source(s) | |
2015-08-07 10:35:24: ERROR[main]: ========== ERROR FROM LUA =========== | |
2015-08-07 10:35:24: ERROR[main]: Failed to load and run script from | |
2015-08-07 10:35:24: ERROR[main]: <file_path>: | |
2015-08-07 10:35:24: ERROR[main]: <file_path>:9: attempt to call local 'please_crash' (a string value) | |
2015-08-07 10:35:24: ERROR[main]: stack traceback: | |
2015-08-07 10:35:24: ERROR[main]: <file_path>:9: in main chunk | |
2015-08-07 10:35:24: ERROR[main]: ======= END OF ERROR FROM LUA ======== | |
2015-08-07 10:35:24: ERROR[main]: Server: Failed to load and run <file_path> | |
2015-08-07 10:35:24: ERROR[main]: ModError: ModError: Failed to load and run <file_path> | |
2015-08-07 10:35:24: ERROR[main]: Error from Lua: | |
2015-08-07 10:35:24: ERROR[main]: <file_path>:9: attempt to call local 'please_crash' (a string value) | |
2015-08-07 10:35:24: ERROR[main]: stack traceback: | |
2015-08-07 10:35:24: ERROR[main]: <file_path>:9: in main chunk | |
2015-08-07 10:35:24: ERROR[main]: Siehe debug.txt für Details. | |
AL lib: FreeContext: (0x9d059e8) Deleting 1 Source(s) | |
]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment