Page 1 of 1

[0.15.37] Crash when loading save: "Flush failed: Resource temporarily unavailable" [Linux]

Posted: Mon Oct 23, 2017 8:48 pm
by smellybumbum
"Map loading failed: Flush failed: Resource temporarily unavailable"
When I join online games thats longer then about 4 hours then game crashes after downloading map.
Didnt have this before :S

Code: Select all

   0.000 2017-10-23 22:26:08; Factorio 0.15.37 (build 30927, linux64, alpha)
   0.556 Operating system: Linux (Ubuntu 16.04)
   0.557 Program arguments: "/home/<user>/Games/factorio/bin/x64/factorio" 
   0.557 Read data path: /home/<user>/Games/factorio/data
   0.557 Write data path: /home/<user>/Games/factorio
   0.557 Binaries path: /home/<user>/Games/factorio/bin
   0.565 System info: [CPU: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 4 cores, RAM: 7900MB]
   0.566 Display options: [FullScreen: 1] [VSync: 1] [UIScale: 80%] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.568 Available display adapters: 1
   0.568  [0]: resolution 1920x1080px at [0,0]
   0.568 Create display on adapter 0. Size 1280x720 at position [310, 162].
   0.832 Initialised OpenGL:[0] Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) ; driver: 3.0 Mesa 17.0.7
   0.888 Graphics settings preset: medium
   0.889 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 25%] [DXT: false] [Shader: 1]

 112.356 Warning Map.cpp:299: Map loading failed: Flush failed: Resource temporarily unavailable
 112.512 Error CrashHandler.cpp:387: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
 114.469 Warning Logger.cpp:413: Symbols.size() == 21, usedSize == 13
#0  0x00000000009e778d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-XxmJMF/src/Util/Logger.cpp:438
#1  0x0000000000745290 in CrashHandler::writeStackTrace(CrashHandler::CrashReason) [clone .constprop.109915] at /tmp/factorio-XxmJMF/src/Util/CrashHandler.cpp:122
#2  0x0000000000745724 in CrashHandler::SignalHandler(int) at /tmp/factorio-XxmJMF/src/Util/CrashHandler.cpp:389
#3  0x00007fc6314fc4b0 in ?? at ??:0
#4  0x00007fc631614c44 in ?? at ??:0
#5  0x0000000000a07cf2 in __copy_m<Player*> at /usr/include/c++/5/bits/stl_algobase.h:382
#6  0x0000000000bf70b5 in __copy_move_a<true, Player**, Player**> at /usr/include/c++/5/bits/stl_algobase.h:400
#7  0x0000000000bf775e in __copy_move_a2<true, __gnu_cxx::__normal_iterator<Player**, std::vector<Player*> >, __gnu_cxx::__normal_iterator<Player**, std::vector<Player*> > > at /usr/include/c++/5/bits/stl_algobase.h:436
#8  0x0000000000d6004d in move<__gnu_cxx::__normal_iterator<Player**, std::vector<Player*> >, __gnu_cxx::__normal_iterator<Player**, std::vector<Player*> > > at /usr/include/c++/5/bits/stl_algobase.h:502
#9  0x0000000000d6065a in _M_erase at /usr/include/c++/5/bits/vector.tcc:145
#10 0x00000000013bfa70 in erase at /usr/include/c++/5/bits/stl_vector.h:1147
#11 0x00007fc6330876ba in Player::~Player() at /tmp/factorio-XxmJMF/src/Player.cpp:255
#12 0x00007fc6315ce3dd in Player::~Player() at /tmp/factorio-XxmJMF/src/Player.cpp:256
 116.077 Warning Logger.cpp:413: Symbols.size() == 20, usedSize == 12
No mods, just base game.
What do?

Re: [15.37] Crash when loading save: "Flush failed: Resource temporarily unavailable"

Posted: Mon Oct 23, 2017 9:14 pm
by Loewchen
Post the complete log please.

Re: [15.37] Crash when loading save: "Flush failed: Resource temporarily unavailable"

Posted: Mon Oct 23, 2017 9:20 pm
by smellybumbum

Re: [15.37] Crash when loading save: "Flush failed: Resource temporarily unavailable"

Posted: Fri Oct 27, 2017 5:04 pm
by smellybumbum
Any update?

What exactly is the resource thats unavailable?

Re: [15.37] Crash when loading save: "Flush failed: Resource temporarily unavailable"

Posted: Fri Oct 27, 2017 5:19 pm
by Rseding91
smellybumbum wrote:Any update?

What exactly is the resource thats unavailable?
Unknown, it's a Linux related error which means none of us Windows devs can do anything about it.

Re: [0.15.37] Crash when loading save: "Flush failed: Resource temporarily unavailable" [Linux]

Posted: Thu Feb 01, 2018 10:53 am
by wheybags
So, I had a proper look into this, and it seems a bit weird.
According to the docs, fflush can only set errno to EAGAIN (Resource temporarily unavailable) when the underlying stream has O_NONBLOCK set.
I checked with strace, and none of the files we fflush in the start game -> connect to server -> quit game flow have O_NONBLOCK set.

I realise this issue is a bit old (sorry for the delay), but do you remember if you were running factorio on any sort of weird filesystem like nfs or a fuse mount?
At this point that's the only thing I can think of.

Re: [0.15.37] Crash when loading save: "Flush failed: Resource temporarily unavailable" [Linux]

Posted: Thu Sep 19, 2019 7:07 am
by posila
Another report with this error: 75663