Page 1 of 1

[Hrusa][2.0.16][Crash] Invalid UTF-8 Sequence when filtering in Mod Manager

Posted: Fri Nov 08, 2024 9:26 pm
by kirazy
When attempting to search in the

Reproduction Steps:
  • Start Factorio with a mod named Armor-MK4.
  • Select "Manage Mods"
  • CTRL+F to enter the search box, then typing "a", "r", and then trying to type "t"
This happens regardless of how one entered the Mod Manager, whether during a startup error or a normal load.

This does not happen without any mods present in the folder. I've narrowed it down to this mod:

Before search:
11-08-2024, 13-25-29.png
11-08-2024, 13-25-29.png (18.44 KiB) Viewed 524 times
After searching:
11-08-2024, 13-26-03.png
11-08-2024, 13-26-03.png (27.58 KiB) Viewed 524 times
Mod in question: https://mods.factorio.com/mod/Armor-MK4

Edit the relevant portion from the logs:

Code: Select all

Error Util.cpp:81: Invalid UTF-8 sequence

Re: [Hrusa][2.0.16][Crash] Invalid UTF-8 Sequence when filtering in Mod Manager

Posted: Sat Nov 09, 2024 9:27 am
by xargo-sama
Hi,

I've looked into it and it appears to be one of the ü in the Mod description. If you erase or re-type it, it should not crash the game anymore.

Also, the mod just straight up doesn't work even if you manage to load it in. The API has changed between 1.1 and it seems Armor-MK4 has not been updated in 3 years.

Sorry about the inconvenience, we will try to find a way to stop this from crashing a game, but it might take a while unless we can find more mods that cause this.

Re: [Hrusa][2.0.16][Crash] Invalid UTF-8 Sequence when filtering in Mod Manager

Posted: Sat Nov 09, 2024 11:13 pm
by Stringweasel
This seems like the same error: 120642

Re: [Hrusa][2.0.16][Crash] Invalid UTF-8 Sequence when filtering in Mod Manager

Posted: Sun Nov 10, 2024 6:14 am
by kirazy
xargo-sama wrote:
Sat Nov 09, 2024 9:27 am
Hi,

I've looked into it and it appears to be one of the ü in the Mod description. If you erase or re-type it, it should not crash the game anymore.

Also, the mod just straight up doesn't work even if you manage to load it in. The API has changed between 1.1 and it seems Armor-MK4 has not been updated in 3 years.

Sorry about the inconvenience, we will try to find a way to stop this from crashing a game, but it might take a while unless we can find more mods that cause this.
The mod that triggered it in this case is, i think, not important. I think this is related to the new filtering logic that is locale aware and this is an edge case that is going to crop up in other places. This is just smoke that might help find the fire.

Re: [Hrusa][2.0.16][Crash] Invalid UTF-8 Sequence when filtering in Mod Manager

Posted: Sun Nov 10, 2024 11:46 am
by Mishaa
xargo-sama wrote:
Sat Nov 09, 2024 9:27 am
Hi,

I've looked into it and it appears to be one of the ü in the Mod description. If you erase or re-type it, it should not crash the game anymore.

Also, the mod just straight up doesn't work even if you manage to load it in. The API has changed between 1.1 and it seems Armor-MK4 has not been updated in 3 years.

Sorry about the inconvenience, we will try to find a way to stop this from crashing a game, but it might take a while unless we can find more mods that cause this.
My friends and I have the bug when we open the logistics network (key L), which completely prevents us from connecting again (the player who had the crash by pressing the key) and forces us to reload an old server save.
Please see : viewtopic.php?f=7&t=120642&p=636143

Re: [Hrusa][2.0.16][Crash] Invalid UTF-8 Sequence when filtering in Mod Manager

Posted: Mon Nov 11, 2024 4:44 pm
by xargo-sama
We've fixed this for the next release. Instead of crashing, mods with invalid characters will fall back on some replacement character and you shouldn't notice it anymore.