Posted 01 January 2015 - 08:30 PM
VERSION: ComputerCraft 1.65
DESCRIPTION:
Today I've put fs.open in an infinite while loop by mistake. It caused the game to crash with a lot of "Too many open files" exceptions. I think this could even cause world corruption if you had bad luck.
This happened to me on Linux, but I believe Windows would do the same thing.
EXPECTED RESULT: ComputerCraft somehow limits the amount of files opened at once
REPRODUCTION STEPS:
CRASH LOG: http://pastebin.com/fsfNy7jb
The game failed to even save it into crash-reports directory - #@?@# Game crashed! Crash report could not be saved. #@?@#
DESCRIPTION:
Today I've put fs.open in an infinite while loop by mistake. It caused the game to crash with a lot of "Too many open files" exceptions. I think this could even cause world corruption if you had bad luck.
This happened to me on Linux, but I believe Windows would do the same thing.
EXPECTED RESULT: ComputerCraft somehow limits the amount of files opened at once
REPRODUCTION STEPS:
-- Create some file
local file = fs.open("file.txt", "w")
file.close()
-- Open it in a loop without closing
while true do
local file = fs.open("file.txt", "r")
end
PS. You can crash any server with ComputerCraft installed using this code.CRASH LOG: http://pastebin.com/fsfNy7jb
The game failed to even save it into crash-reports directory - #@?@# Game crashed! Crash report could not be saved. #@?@#