[2.0.66] Crash when mod changes "clicked_font_color" on label (Color:toAguiColor)

Bugs which we just recently fixed in our development version and will reach you in the next release.
MerryDreambound
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Sep 08, 2025 3:11 pm
Contact:

[2.0.66] Crash when mod changes "clicked_font_color" on label (Color:toAguiColor)

Post by MerryDreambound »

What did you do?
Context:
I'm creating a mod to organize space platforms, and I'm trying to recreate the "Surfaces" GUI, to do so I tried to change the "clicked_font_color" style of a label (Important because it shouldn't be possible) Factorio API reference

Repro steps:
Download/Install the mod "UntitledGuiGuideTemplate-Merry" in the attachments
Open factorio
Create a new sandbox world (Click yes to all boxes that appears when you appear in the world)
Create a new space platform (Fully)
Open the custom GUI from the mod with "CONTROL + i"
It segfaults

What happened?
It segfaults/crashes factorio

What did you expect to happen instead?
For factorio to give out the following Notice
"The mod X caused a non-recoverable error.
Please report this error to the mod author."
and to drop the user in the main menu.

Does it happen always, once, or sometimes?
It happens always
Attachments
factorio-current.log
Log file
(10.94 KiB) Downloaded 6 times
UntitledGuiGuideTemplate-Merry.tar.gz
Mod file
(3.09 KiB) Downloaded 4 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16104
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.66] Crash when mod changes "clicked_font_color" on label (Color:toAguiColor)

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release. The lua docs should now say that it's possible to write that value on labels and it will no longer crash.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved for the next release”