The Surge (GOG): eventfd: too many files open

Hi there,

atts the game goes out with eventfd: too many files open. My file limits are set to 1048576 so it’s a little odd to me. :slight_smile: It’s the first game in a while showing that error. Funky toggles and wine versions tried in Lutris:

  • Use Esync on/off
  • Use Feral Gamemode on/off
  • lutris-5.0 / lutris-4.20 / lutris-4.16

…in all possible combinations over roughly 25 hours. :smile:

Wine versions and gamemode didn’t make any difference except for esync making it crash after 5 to 15 minutes with esync having a noticeable performance improvement.

The current install script on the site enables esync.

Here’s a game log:
lutris-wrapper: The Surge
Running /home/-/.local/share/lutris/runners/wine/lutris-5.0-x86_64/bin/wine /home/-/Games/Windows/The Surge/S1/drive_c/GOG Games/The Surge/bin/TheSurge.exe
Initial process has started with pid 29087
Game is considered started.
gamemodeauto:
esync: up and running.
gamemodeauto:
[INF] (05:27:12) Registering the ‘0x3CCFC91E’ DLC (555300)
[ …some 750000 lines later… ]
[62326] ResourcePackage: 0x79290BCE — Resource: 0xCB6B2487 — AllocSize: 8320 — Success: 1
eventfd: Too many open files
Protocol error: process 002d: sendmsg: Bad file descriptor
Initial process has exited.
Game is considered exited.
All monitored processes have exited.
Exit with returncode 0

System in a gist: https://gist.github.com/7HEPOW/07e672409553beb78f6dad3ad51f2f49

Any ideas welcome! :smile:

Seems like 2097152 as a file limit isn’t enough yet, even though the game runs for longer…

Here’s the last 15 lines of the log:

[WAR] (01:39:21) Given Child/Attached object(s) not found on Object ‘0xBAB86717’, skipping action ‘0x03869111’ ChildName: ‘0x03869111’. Sequence: ‘0xD2F86AEE’ Time: 0.000
[WAR] (01:39:21) Given Child/Attached object(s) not found on Object ‘0xBAB86717’, skipping action ‘0x03869111’ ChildName: ‘0x03869111’. Sequence: ‘0xD2F86AEE’ Time: 0.000
[WAR] (01:39:21) Given Child/Attached object(s) not found on Object ‘0xBAB86717’, skipping action ‘0x03869111’ ChildName: ‘0x03869111’. Sequence: ‘0xD2F86AEE’ Time: 0.000
[WAR] (01:39:22) Returning true because non-looping sequence is playing: 0xF99C4263
[WAR] (01:39:22) Sequence object: 0x84887E3B
[WAR] (01:39:22) There is no property named ‘0xA5A335C8’ present within this set. Owner: ‘0x53F234B9’
[WAR] (01:39:22) Could not set the property: ‘0xA5A335C8’ on Object ‘0x53F234B9’ Action: ‘0xA5A335C8’. ActionCaller: Executer is not tracked on no-string builds ATM.
[WAR] (01:39:23) Returning true because non-looping sequence is playing: 0xF99C4263
[WAR] (01:39:23) Sequence object: 0x84887E3B
eventfd: Too many open files
Protocol error: process 002d: sendmsg: Bad file descriptor
Initial process has exited.
Game is considered exited.
All monitored processes have exited.
Exit with returncode 0

It might be one of those games going out of it’s way doing things differently from all the others.

Edit: Got roughly 2 hours out of the game with the limit set to 4194304. This number is starting to get a little ridiculous… :rofl: