Consider this code
local file = love.filesystem.newFile("beatmap.txt", "r") for line in file:lines() do -- Do something end
If the file is somehow bigger than 1024 bytes (and possibly with some different condition), the loop never ends, thus cause infinite loop. I think 1797945 is causing this. If I remember,
love.filesystem.lines uses same implementation so I think that one is also affected by this.
I attached test file which caused this problem.