Skip to content

TF2 & TC2 leaks memory when connected to any server on wine & proton. #660

@ghost

Description

Description

When running tf2 or tc2 inside wine (wine-stable, wine-staging, proton, etc..) and being connected to any server tf2 will allocate memory every second (or frame, tick, etc) until OOM. This issue is not present when running on windows. This issue is not present when unconnected.

Checklist

  • None of the open or closed issues document this problem.
  • This is a bug, not a new idea.
  • This is objectively a bug, and not something that people commonly disagree on.
  • This issue occurs on the latest Team Comtress release, or the master branch.
  • This issue occurs on the latest vanilla TF2 update.
  • This bug is in the code of the game, not in the textures, sounds, or other resources.
  • This issue is listed on the Source 1 official bugtracker.
  • This issue occurs with DirectX level 100.
  • This issue occurs when using no custom content.
  • This issue occurs when using start_tf2.bat (or start_server.bat) with no custom launch options.
  • This issue occurs when using a listen server (using the map command ingame).
  • This issue occurs when using a dedicated server.
  • This bug is in the internal procedures or tooling (e.g. the build process).

Reproduction

  1. Install steam (with chromium fix) & tf2 inside wine or use native steam client & proton tf2
  2. Start tf2
  3. Connect to any server, for example local itemtest
  4. Check how memory usage increases through either wine's taskmgr or in-game console command "memory" (check Heap Used:)

Screenshots

Example memory usage in tc2 after 30 minutes of afk
Screenshot_20230822_122742

Setup Details

Client Settings

  • Server or client: client
  • Operating system: arch linux 6.4.11-zen2-1-zen
  • Team Comtress version: 2.0.2
  • Custom content: mastercomfig low preset
  • Launch options:

Driver Version

  • Graphics driver: mesa 1:23.1.6-1, lib32-mesa 1:23.1.6-1, vulkan-radeon 1:23.1.6-1, lib32-vulkan-radeon 1:23.1.6-1
  • DirectX level: dxlevel 80-100. tested on galliumnine, dxvk

Hardware Specs

  • CPU model: Intel Core i5-12400F
  • GPU model: AMD Radeon RX 6600 (nvidia has this issue too)
  • RAM amount: 64 GB
  • TF2 install location: C:\Steam\steamapps\common\Team Fortress 2
  • TC2 install location: C:\Steam\steamapps\common\Team Fortress 2
  • TC2 installation method: Basic

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageNeeds to be organizedtf2Related to the TF2 live version and TC2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions