[posila][2.0.7]Crash when loading a mod with invalid file paths

This subforum contains all the issues which we already resolved.
User avatar
JohnTheCF
Inserter
Inserter
Posts: 27
Joined: Thu Jun 22, 2017 7:15 pm
Contact:

[posila][2.0.7]Crash when loading a mod with invalid file paths

Post by JohnTheCF »

Encountered while updating my mod to 2.0, a typo in the mod name in a image path caused the game to crash. Expected to have a dialogue that says that the file path is invalid.
Attachments
factorio-current.log
Factorio log
(6.56 KiB) Downloaded 28 times
PlutoniumEnergy_1.7.1.zip
mod file
(2.05 MiB) Downloaded 15 times
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 580
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [raiguard][2.0.7]Crash when loading a mod with invalid file paths

Post by raiguard »

Thanks for the report. Do you have the zenity utility installed on your distro?

It appears that SDL uses this to display error dialogs on Wayland.
Don't forget, you're here forever.
User avatar
JohnTheCF
Inserter
Inserter
Posts: 27
Joined: Thu Jun 22, 2017 7:15 pm
Contact:

Re: [raiguard][2.0.7]Crash when loading a mod with invalid file paths

Post by JohnTheCF »

Ah, I should specify that I use Steam via flatpak. I have zenity on my main system but I doubt it's exposed to the flatpak environment and probably isn't included in there. Still, I would expect the game to perform filename sanitization and use the usual mod loading error screen to indicate such errors.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 580
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [raiguard][2.0.7]Crash when loading a mod with invalid file paths

Post by raiguard »

I will look into making it an in-game error, but since it isn't already, I imagine it isn't entirely trivial.
Don't forget, you're here forever.
User avatar
JohnTheCF
Inserter
Inserter
Posts: 27
Joined: Thu Jun 22, 2017 7:15 pm
Contact:

Re: [raiguard][2.0.7]Crash when loading a mod with invalid file paths

Post by JohnTheCF »

I would imagine it's like a missing file error, which does work fine when the mod name is correct. Just a guess.
posila
Factorio Staff
Factorio Staff
Posts: 5371
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [posila][2.0.7]Crash when loading a mod with invalid file paths

Post by posila »

Thanks for the report.
Fixed for 2.0.10
Post Reply

Return to “Resolved Problems and Bugs”