Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

TF2 crashes on load on Linux

Open zeflap opened this issue 9 years ago • 23 comments

Your system information

  • Steam client version: appid(steam)/version(1481912289)
  • Distribution (e.g. Ubuntu): Debian stretch/sid
  • Opted into Steam client beta?: [Yes/No] Yes
  • Have you checked for system updates?: [Yes/No]Yes

Steps for reproducing this issue:

  1. Start TF2 on my Debian unstable laptop
  2. Get https://gist.github.com/zeflap/91c8fcb145d823e157ed867027105240
  3. That's it

Any idea on what's making this happen?

zeflap avatar Dec 17 '16 02:12 zeflap

Hello @zeflap, from the log, it looks like you are running out of memory. How much system ram do you have? Does adding a swapfile / swap partition help?

kisak-valve avatar Dec 17 '16 12:12 kisak-valve

@kisak-valve 8gb, with a 16G swap. TF2 used to run fine before, which is why I'm wondering what happened

zeflap avatar Dec 18 '16 00:12 zeflap

Still happens, but now the console output contains

src/central_freelist.cc:333] tcmalloc: allocation failed 16384

instead of

src/central_freelist.cc:333] tcmalloc: allocation failed 16384 src/central_freelist.cc:333] tcmalloc: allocation failed 16384 Assert( Fatal Assertion Failed: OUT OF MEMORY ):memstd.cpp:2426 src/central_freelist.cc:333] tcmalloc: allocation failed 16384 terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc

zeflap avatar Feb 11 '17 19:02 zeflap

Hello @zeflap, are you still experiencing this issue on an up to date system?

kisak-valve avatar Oct 25 '19 12:10 kisak-valve

Hi @kisak-valve,

I've started experiencing the same issue as original poster. I didn't experience these problems a few days ago and found this thread while searching for an answer.

Logs from starting game using ~/.local/share/Steam/ubuntu12_32/steam-runtime/run.sh ./hl2.sh -game tf -steam: http://dpaste.com/0GK9DTV Dump file: crash_20191029210903_1.dmp.tar.gz

Thanks!

anders-larsson avatar Oct 29 '19 20:10 anders-larsson

For reference, the attached minidump is a SIGABRT in linux-gate.so.

kisak-valve avatar Oct 29 '19 20:10 kisak-valve

BTW. I did update my nvidia graphics card driver on 2019-10-25 and I don't believe I've attempted to place TF2 before now.

Version: nvidia-drivers-440.26

anders-larsson avatar Oct 29 '19 20:10 anders-larsson

I also had this same crash behaviour immediately after updating to Nvidia 440.26

Other games willl play, but not TF2 ( I have not tried other Source engine games ).

DaneBuson avatar Oct 31 '19 17:10 DaneBuson

Same problem here.

Dump file: crash_20191101153434_1.tar.gz

System information
Computer Information:
    Manufacturer:  Unknown
    Model:  Unknown
    Form Factor: Desktop
    No Touch Input Detected

Processor Information:
    CPU Vendor:  GenuineIntel
    CPU Brand:  Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz
    CPU Family:  0x6
    CPU Model:  0x3c
    CPU Stepping:  0x3
    CPU Type:  0x0
    Speed:  3900 Mhz
    4 logical processors
    4 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported
    AES:  Supported
    AVX:  Supported
    AVX2:  Unsupported
    AVX512F:  Unsupported
    AVX512PF:  Unsupported
    AVX512ER:  Unsupported
    AVX512CD:  Unsupported
    AVX512VNNI:  Unsupported
    SHA:  Unsupported
    CMPXCHG16B:  Supported
    LAHF/SAHF:  Supported
    PrefetchW:  Unsupported

Operating System Version:
    "openSUSE Tumbleweed" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  5.3.7-1-default
    X Server Vendor:  The X.Org Foundation
    X Server Release:  12005000
    X Window Manager:  KWin
    Steam Runtime Version:  steam-runtime_0.20191007.0

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 980/PCIe/SSE2
    Driver Version:  4.6.0 NVIDIA 440.26
    OpenGL Version: 4.6
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 144 Hz
    VendorID:  0x10de
    DeviceID:  0x13c0
    Revision Not Detected
    Number of Monitors:  1
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 1920 x 1080
    Primary Display Size: 20.91" x 11.77" (23.98" diag)
                                            53.1cm x 29.9cm (60.9cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 4096 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC892

Memory:
    RAM:  23981 Mb

Miscellaneous:
    UI Language:  English
    LANG:  de_DE.UTF-8
    Total Hard Disk Space Available:  226887 Mb
    Largest Free Hard Disk Block:  78480 Mb
    VR Headset: None detected

Steam Linux Runtime Information:
{
  "can-write-uinput" : true,
  "steam-installation" : {
    "path" : "/home/niklas/.local/share/Steam",
    "data_path" : "/home/niklas/.local/share/Steam",
    "issues" : [
    ]
  },
  "runtime" : {
    "path" : "/home/niklas/.local/share/Steam/ubuntu12_32/steam-runtime",
    "version" : "0.20191007.0",
    "issues" : [
    ]
  },
  "os-release" : {
    "id" : "opensuse-tumbleweed",
    "id_like" : [
      "opensuse",
      "suse"
    ],
    "name" : "openSUSE Tumbleweed",
    "pretty_name" : "openSUSE Tumbleweed",
    "version_id" : "20191028"
  },
  "architectures" : {
    "i386-linux-gnu" : {
      "can-run" : true,
      "library-issues-summary" : [
      ],
      "graphics-details" : {
        "x11/vulkan" : {
          "messages" : "ERROR: [Loader Message] Code 0 : /home/niklas/.local/share/Steam/ubuntu12_64/libVkLayer_steam_fossilize.so: wrong ELF class: ELFCLASS64\n",
          "renderer" : "GeForce GTX 980",
          "version" : "1.1.119 (device 10de:13c0) (driver 440.104.0)"
        },
        "glx/gl" : {
          "renderer" : "GeForce GTX 980/PCIe/SSE2",
          "version" : "4.6.0 NVIDIA 440.26"
        },
        "egl_x11/gl" : {
          "renderer" : "GeForce GTX 980/PCIe/SSE2",
          "version" : "4.6.0 NVIDIA 440.26"
        },
        "egl_x11/glesv2" : {
          "renderer" : "GeForce GTX 980/PCIe/SSE2",
          "version" : "OpenGL ES 3.2 NVIDIA 440.26"
        }
      }
    },
    "x86_64-linux-gnu" : {
      "can-run" : true,
      "library-issues-summary" : [
        "cannot-load"
      ],
      "library-details" : {
        "libcurl.so.4" : {
          "messages" : "Unable to find the library: /home/niklas/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_64/libcurl.so.4: undefined symbol: SSL_CTX_set_srp_password, version OPENSSL_1.0.1\n",
          "path" : null,
          "issues" : [
            "cannot-load"
          ]
        }
      },
      "graphics-details" : {
        "x11/vulkan" : {
          "messages" : "ERROR: [Loader Message] Code 0 : /home/niklas/.local/share/Steam/ubuntu12_32/libVkLayer_steam_fossilize.so: wrong ELF class: ELFCLASS32\n",
          "renderer" : "GeForce GTX 980",
          "version" : "1.1.119 (device 10de:13c0) (driver 440.104.0)"
        },
        "glx/gl" : {
          "renderer" : "GeForce GTX 980/PCIe/SSE2",
          "version" : "4.6.0 NVIDIA 440.26"
        },
        "egl_x11/gl" : {
          "renderer" : "GeForce GTX 980/PCIe/SSE2",
          "version" : "4.6.0 NVIDIA 440.26"
        },
        "egl_x11/glesv2" : {
          "renderer" : "GeForce GTX 980/PCIe/SSE2",
          "version" : "OpenGL ES 3.2 NVIDIA 440.26"
        }
      }
    }
  },
  "locale-issues" : [
    "i18n-supported-missing",
    "i18n-locales-en-us-missing"
  ],
  "locales" : {
    "<default>" : {
      "resulting-name" : "de_DE.UTF-8",
      "charset" : "UTF-8",
      "is_utf8" : true
    },
    "C" : {
      "resulting-name" : "C",
      "charset" : "ANSI_X3.4-1968",
      "is_utf8" : false
    },
    "C.UTF-8" : {
      "resulting-name" : "C.UTF-8",
      "charset" : "UTF-8",
      "is_utf8" : true
    },
    "en_US.UTF-8" : {
      "resulting-name" : "en_US.UTF-8",
      "charset" : "UTF-8",
      "is_utf8" : true
    }
  },
  "egl" : {
    "icds" : [
      {
        "json_path" : "/usr/share/glvnd/egl_vendor.d/10_nvidia.json",
        "library_path" : "libEGL_nvidia.so.0"
      },
      {
        "json_path" : "/usr/share/glvnd/egl_vendor.d/50_mesa.json",
        "library_path" : "libEGL_mesa.so.0"
      }
    ]
  },
  "vulkan" : {
    "icds" : [
      {
        "json_path" : "/etc/vulkan/icd.d/nvidia_icd.json",
        "library_path" : "libGLX_nvidia.so.0",
        "api_version" : "1.1.119"
      }
    ]
  }
}

The Steam Linux Runtime container tool is not installed.

Also, this issue seems to be a duplicate of #2866

Wuerstchen avatar Nov 01 '19 14:11 Wuerstchen

Updated from 440.26 -> 440.31 - still seems to crash with same msg

crash_20191104173627_1.dmp.tar.gz

DaneBuson avatar Nov 05 '19 01:11 DaneBuson

I wasn't experiencing this issue before but right after updating to 440.26 I've started crashing as well.

kiroma avatar Nov 07 '19 21:11 kiroma

I've made a post on nvidia's Unix drivers forum, here

kiroma avatar Nov 07 '19 21:11 kiroma

Can confirm this issue with 440.26/31 on gentoo stable.

Nvidia, the giant master of regressions..

Possible fix: throw broken Nvidia crap out of your window and buy an AMD card :(

ghost avatar Nov 07 '19 21:11 ghost

I'm also seeing this issue after updating my arch install today Linux ronan-archbox 5.3.10-arch1-1 #1 SMP PREEMPT Sun, 10 Nov 2019 11:29:38 +0000 x86_64 GNU/Linux I also have the meta-package "steam-runtime-native" installed, and this issue is present both using steam-native and steam-runtime. nvidia driver version is 440.31, card is 1050ti.

I've never had problems with this game before on this machine, for now I'm just downgrading to an older version of the nvidia driver.

Ronan-Kelley avatar Nov 12 '19 22:11 Ronan-Kelley

This does not happen with Wayland, so it might be a problem with the Nvidia xorg driver.

mastercoms avatar Nov 13 '19 03:11 mastercoms

Seems to be a bug with OpenGL shader linking. If you create a folder in tf/custom called noshaderlinking and then create two empty files in that folder called glbaseshaders.cfg and glshaders.cfg, TF2 does not crash. Then, you can remove the folder once launching successfully.

mastercoms avatar Nov 14 '19 06:11 mastercoms

Seems to be a bug with OpenGL shader linking. If you create a folder in tf/custom called noshaderlinking and then create two empty files in that folder called glbaseshaders.cfg and glshaders.cfg, TF2 does not crash. Then, you can remove the folder once launching successfully.

Bravo. No idea how you figured that out but this is the solution for me :clap:

tunanachos avatar Nov 15 '19 14:11 tunanachos

I have no clue how you managed to figure that out but it works.

kiroma avatar Nov 15 '19 17:11 kiroma

This error prints quite a few times when this bug happens.

m_pHardwareShaders was null
CGLMShaderPair::SetProgramPair: Centroid masks differ at link time of vertex shader vertexlit_and_unlit_generic_bump_vs20 and pixel shader shadow_ps20b!
CGLMShaderPair::SetProgramPair: Centroid masks differ at link time of vertex shader vertexlit_and_unlit_generic_bump_vs20 and pixel shader lightmappedgeneric_ps20b!

mastercoms avatar Nov 15 '19 22:11 mastercoms

I still get a crash when loading into a map around 1/10 times. Mesa drivers, not nvidia.

ChildishGiant avatar Mar 01 '22 23:03 ChildishGiant