ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.26k stars 174 forks source link

Steam leaks file descriptors #3626

Open Hirato opened 9 years ago

Hirato commented 9 years ago

After running for approximately 48 hours, steam exhausts the 1024 file descriptors that distros allow a single application to open by default at a user level.

It subsequently then prints messages like the follows

[1210/203805:WARNING:ipc_channel_posix.cc(887)] Message needs unreceived descriptors channel:0xf91d6000 message-type:132748 header()->num_fds:1
[1210/223527:ERROR:renderer_main.cc(227)] Running without renderer sandbox
[1210/223530:WARNING:shared_memory_posix.cc(386)] Shared memory creation failed; out of file descriptors
[1210/223530:ERROR:host_shared_bitmap_manager.cc(122)] Cannot create shared memory buffer
[1210/223530:WARNING:shared_memory_posix.cc(386)] Shared memory creation failed; out of file descriptors
[1210/223530:ERROR:host_shared_bitmap_manager.cc(122)] Cannot create shared memory buffer
[1210/223530:WARNING:shared_memory_posix.cc(386)] Shared memory creation failed; out of file descriptors

Various functionality in steam breaks from this point on, notably web pages inside steam become highly corrupted, and steam may need to be forcefully killed to allow it to start afresh.

Processor Information:
    Vendor:  AuthenticAMD
    CPU Family:  0x10
    CPU Model:  0xa
    CPU Stepping:  0x0
    CPU Type:  0x0
    Speed:  3200 Mhz
    6 logical processors
    6 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Unsupported
    SSE4a:  Supported
    SSE41:  Unsupported
    SSE42:  Unsupported

Network Information:
    Network Speed:  

Operating System Version:
    "Arch Linux" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.17.4-1-ARCH
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11602000
    X Window Manager:  KWin
    Steam Runtime Version:  steam-runtime-release_2014-08-20

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 770/PCIe/SSE2

    Driver Version:  4.4.0 NVIDIA 343.22
    OpenGL Version: 4.4
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x10de
    DeviceID:  0x1184
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 3840 x 1080
    Primary Display Size: 20.79" x 12.20"  (24.09" diag)
                                            52.8cm x 31.0cm  (61.2cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 2048 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC892

Memory:
    RAM:  16051 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_US.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  883702 Mb
    Largest Free Hard Disk Block:  228836 Mb

Installed software:

Recent Failure Reports:
alfred-valve commented 9 years ago

This looks like an issue with the Chromium code we make use of (see https://code.google.com/p/chromium/issues/detail?id=333996).

alfred-valve commented 9 years ago

I've implemented the same work around as the Chrome folk (upping the fd limit), and we will watch for a more complete fix from upstream.