[Rseding91] [15.18] "Error loading mods" dialog can overrun UI

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
H8UL
Fast Inserter
Fast Inserter
Posts: 114
Joined: Mon May 15, 2017 4:02 pm
Contact:

[Rseding91] [15.18] "Error loading mods" dialog can overrun UI

Post by H8UL »

It's possible for a badly behaved mod to make the "Error loading mod" dialog run past the end of the screen so that the friendly "Mods to be disabled" text, and the buttons, are not visible. A user must then guess or know to hit Escape to exit, and this results in the system-styled error reporting dialog (which means user might think that Factorio crashed).

Hopefully published mods are not too likely to do this! It happened to me during mod development, but perhaps Factorio should protect against it? It's borderline because it's not an actual crash, but I thought I'd report it. Could happen if a mod dumps a lua table without realizing it's too big, or pretty prints a large block of text as an error message.

Sample code to put into a data.lua:

Code: Select all

local result = {}
for i=0, 100 do
    r = table.insert(result, 1)
end

error(serpent.block(result))
A more minimal (if tenuous) method:

Code: Select all

error("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
These examples were tested on a 1440p monitor. Reproduced both in full screen and windowed (maximized).
Shameless mod plugging: Ribbon Maze

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [15.18] "Error loading mods" dialog can overrun UI

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.15.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”