Panakotta00 / FicsIt-Networks

Control, Monitor, Manage and Automate your Satisfactory.
https://ficsit.app/mod/FicsItNetworks
GNU General Public License v3.0
156 stars 51 forks source link

Crashes with Libaries #172

Closed veronoicc closed 2 years ago

veronoicc commented 2 years ago

Describe the bug When i try to Download and Load a Library from Github Satisfactory Crashes. The Library used in this case is working as i Tested it. I also tested it and think it crashes at the doFile Part.

Provide the Debug-File you can generate with SMM SMMDebug_2021-10-16_11-25-9.zip

To Reproduce Steps to reproduce the behavior:

  1. Build a Computer with Internet Card, Ram, Lua CPU
  2. Run this Code(Example from https://docs.ficsit.app/ficsit-networks/latest/lua/examples/InternetCard.html)

-- get internet card local card = computer.getPCIDevices(findClass("FINInternetCard"))[1]

-- get library from internet local req = card:request("https://raw.githubusercontent.com/rxi/json.lua/master/json.lua", "GET", "") local _, libdata = req:await()

-- save library to filesystem filesystem.initFileSystem("/dev") filesystem.makeFileSystem("tmpfs", "tmp") filesystem.mount("/dev/tmp","/") local file = filesystem.open("json.lua", "w") file:write(libdata) file:close()

-- load the library from the file system and use it local json = filesystem.doFile("json.lua")

local data = { somekey = "is stuff", otherkey = 42 }

print(json.encode(data))

  1. And it Crashes the Game

Expected behavior Downloading the Library and Loading it

Additional context When it Crashes it also make my PC Memory go to its limits with the Satisfactory Process

RozeDoyanawa commented 2 years ago

Make sure you generate the crash report before launching the game again. Afaics, that log file has no crash data in it.

veronoicc commented 2 years ago

SMMDebug_2021-10-16_11-49-43.zip The Problem with that is that i dont know if its a real crash as the game doesnt close but Takes super much memory (see screenshot) and just freezes unknown