[0.17.68] Trouble with log() when running Factorio outside Terminal (Linux)
Posted: Fri Sep 13, 2019 1:00 pm
I have a script to run factorio in my $PATH that runs factorio through a symlink static_client to the current version's directory, as
When I try to call this in my UI environment (using Rofi, but I suspect any standard application launcher could run into this issue), a log() issue *sometimes* comes up. The following error can be observed under some conditions, and I have not been able to figure out precisely what those conditions are:
Following the error to the line in the applicable mod has led in each case to a log() call. In this case, the mod is robot_tree_farm, and it points to line 618, which log()s some things. I've also had this come up in one of my data files, and I simply removed the call to log(), and, if memory serves, I *may* have changed it to print() with success. At the same time, I have a data-final-fixes.lua in adamo-chemical that makes two log() calls without a problem.
If I run the program through the script in $PATH from a terminal, then the game and mods load without difficulty. So it's clear that there's some issue with part of the environment not being available, I think, but indicates the symlink isn't the issue unless it's in a secondary way. I realize this may not be something you can easily handle on your side. I saw that something similar came up in v16, however, and so I thought I should at least let you guys know that this may still creep up sometimes.
Code: Select all
~/factorio/static_client/bin/x64/factorio
Code: Select all
Failed to load mods: Flush failed: Resource temporarily unavailable
If I run the program through the script in $PATH from a terminal, then the game and mods load without difficulty. So it's clear that there's some issue with part of the environment not being available, I think, but indicates the symlink isn't the issue unless it's in a secondary way. I realize this may not be something you can easily handle on your side. I saw that something similar came up in v16, however, and so I thought I should at least let you guys know that this may still creep up sometimes.