Wine crashing due to ESYNC

Hi, I’ve got games working great but they always eventually crash due to ESYNC. I’ve set the limit to maximum (-1) in /etc/security/limits.conf. When checking the limits with ulimit -Hn I get 1048576. But wine will crash eventually even with this high limit. I’m not exactly sure how this feature works, but something to do with threads, but why is it running out? Is it supposed to release some as it goes along? Seems strange it’s reaching its limit.

When running the game without ESYNC it will never crash. With ESYNCS enabled it will eventually crash around the 30-40 minute mark. I didn’t save the log but I saw the error and was how I searched for what was causing the crash.

Is there some setting I am forgetting to use? Thanks.

Here’s the error I received, from the wine log:

info:    Format:       VK_FORMAT_B8G8R8A8_UNORM
info:    Present mode: VK_PRESENT_MODE_FIFO_KHR
info:    Buffer size:  2259x1270
info:    Image count:  3
info:    Exclusive FS: 1
warn:  winevulkan detected, disabling exclusive fullscreen support
info:  Presenter: Actual swap chain properties:
info:    Format:       VK_FORMAT_B8G8R8A8_UNORM
info:    Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
info:    Buffer size:  2259x1270
info:    Image count:  3
info:    Exclusive FS: 1
info:  Presenter: Actual swap chain properties:
info:    Format:       VK_FORMAT_B8G8R8A8_UNORM
info:    Present mode: VK_PRESENT_MODE_FIFO_KHR
info:    Buffer size:  2259x1270
info:    Image count:  3
info:    Exclusive FS: 1
eventfd: Too many open files
Protocol error: process 0104: sendmsg: Bad file descriptor
Monitored process exited.
Initial process has exited (return code: 256)
Exit with return code 256

Googling this error, it comes up with the ESYNC issue. Why is it opening so many files that it’s reaching the maximum limit? Is it supposed to be closing them as it’s doing this? I confirmed the game doesn’t crash after 5 hours of playing with ESYNC turned off, so it is definitely the issue.

Anyone have any ideas how to resolve this and be able to use ESYNC without it crashing?

Well I’ll just turn it off for now, I don’t even notice a difference with it on or off.