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

This subforum contains all the issues which we already resolved.
User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 426
Joined: Tue Mar 06, 2018 12:18 am
Contact:

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

Post 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 530 times
After searching:
11-08-2024, 13-26-03.png
11-08-2024, 13-26-03.png (27.58 KiB) Viewed 530 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

User avatar
xargo-sama
Inserter
Inserter
Posts: 44
Joined: Mon Jun 05, 2023 1:04 pm
Contact:

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

Post 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.

User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 404
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

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

Post by Stringweasel »

This seems like the same error: 120642
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration

User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 426
Joined: Tue Mar 06, 2018 12:18 am
Contact:

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

Post 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.

Mishaa
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Nov 08, 2024 9:14 pm
Contact:

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

Post 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

User avatar
xargo-sama
Inserter
Inserter
Posts: 44
Joined: Mon Jun 05, 2023 1:04 pm
Contact:

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

Post 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.

Post Reply

Return to “Resolved Problems and Bugs”