[0.11.13] invalid gui style still crashes

This subforum contains all the issues which we already resolved.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

[0.11.13] invalid gui style still crashes

Post by prg »

https://forums.factorio.com/forum/vie ... =11&t=8028 is not fixed

Code: Select all

game.player.gui.top.add{type="button", caption="crashme", style="invalid"}
segfault
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: [0.11.13] invalid gui style still crashes

Post by Choumiko »

i assume it is an invalid (as in not existing) style? Because today i assigned a (valiid/existing) style to a wrong type and got an error instead of crash.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: [0.11.13] invalid gui style still crashes

Post by prg »

Right, the provided code causes the crash.

edit: ...so it's completely invalid style vs. wrong type of style for the gui element, different bug then.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.11.13] invalid gui style still crashes

Post by kovarex »

Yes ... the check is there, but there is error in the check because I didn't test it.

So I fixed it and added automated test of it.
Post Reply

Return to “Resolved Problems and Bugs”