[1.1.36] Crash

Things that we don't consider worth fixing at this moment.
Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[1.1.36] Crash

Post by eradicator »

This thing is a bit weird *cough* it prints a line to the console that's not part of the actual log:

Code: Select all

PANIC: unprotected error in call to Lua API
Reproduction:
Load the attached savegame after synching mods and grabbing bio industries from github. Click the "Bio Industries" button in the already open gvv gui.

Probably cause:
To test if I can get an easy copy of the environment I added a "simple" function to gvv's remote interface. (I can feel a hearty "just don't do this" incoming :lol:.)

Code: Select all

 _G = function() return _ENV end,
Attachments
report.7z
(1.6 MiB) Downloaded 155 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [1.1.36] Crash

Post by posila »

I guess that's what Lua interpreter does when you corrupt its global state like that ... so don't do that 8-)

EDIT: Although, in the code it is actually more like this

Code: Select all

{ _G = function() return _ENV end, }
so I don't know why the global _G is being corrupted ... but I am not interested enough in this to try to decode what is actually happening in that mod :)

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [1.1.36] Crash

Post by eradicator »

posila wrote:
Thu Jul 29, 2021 2:17 pm
so don't do that 8-)
Sir, yes Sir! :mrgreen:
posila wrote:
Thu Jul 29, 2021 2:17 pm
EDIT: Although, in the code it is actually more like this
Yea, sorry if that was unclear. It's a function named "_G" in the remote interface. Not something that replaces _ENV._G. Just reported it because of the weird way it crashed with memory related warnings etc. Hope you at least got a good laugh :geek: .
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Won't fix.”