ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
642 stars 74 forks source link

TF2 SegFault on launch with NVIDIA 545.29.02 driver #5312

Closed Fried-Squid closed 11 months ago

Fried-Squid commented 11 months ago

System info

                 +I+                 user@vm100
                 +777+                   OS: EndeavourOS rolling rolling
            +77777++         Kernel: x86_64 Linux 6.5.9-arch2-1
           +7777777++        Uptime: 39m
          +7777777777++      Packages: 999
        ++7777777777777++        Shell: bash 5.2.15
       ++777777777777777+++          Resolution: 3000x1920
     ++77777777777777777++++         WM: i3
    ++7777777777777777777++++        GTK Theme: Arc-Darker [GTK3]
      +++777777777777777777777++++   Disk: 83G / 738G (12%)
    ++++7777777777777777777777+++++      CPU: AMD Ryzen 5 2600 Six-Core @ 6x 3.394GHz
   ++++77777777777777777777777+++++      GPU: NVIDIA GeForce RTX 3060
  +++++777777777777777777777777+++++     RAM: 3671MiB / 12551MiB
       +++++++7777777777777777++++++    
      +++++++++++++++++++++++++++++     
     +++++++++++++++++++++++++++        

GPU / driver info

[user@vm100 ~]$ nvidia-smi
Fri Nov 10 14:54:13 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.02              Driver Version: 545.29.02    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060        Off | 00000000:01:00.0  On |                  N/A |
|  0%   56C    P5              29W / 170W |    591MiB / 12288MiB |     10%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

TF2 Launch Log (running steam from terminal):

/bin/sh\0-c\0LD_PRELOAD=/usr/lib32/libtcmalloc.so:$LD_PRELOAD SDL_VIDEODRIVER=x11 /home/user/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=440 -- /home/user/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/user/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/user/.local/share/Steam/steamapps/common/SteamLinuxRuntime'/scout-on-soldier-entry-point-v2 --  '/home/user/.local/share/Steam/steamapps/common/Team Fortress 2/hl2.sh' -game tf -steam -novid -nojoy -nosteamcontroller\0
chdir "/home/user/.local/share/Steam/steamapps/common/Team Fortress 2"
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/usr/lib32/libtcmalloc.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libtcmalloc.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libtcmalloc.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
x86_64-linux-gnu-capsule-capture-libs: warning: Dependencies of libnvidia-pkcs11.so.545.29.02 not found, ignoring: Missing dependencies: Could not find "libcrypto.so.1.1" in LD_LIBRARY_PATH "/usr/lib/libfakeroot:/usr/lib32:/usr/lib:/home/user/.local/share/Steam/steamapps/common/Team Fortress 2", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
ERROR: ld.so: object '/run/host/usr/lib32/libtcmalloc.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/run/host/usr/lib32/libtcmalloc.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 62937 != 62933, skipping destruction (fork without exec?)
pid 62942 != 62933, skipping destruction (fork without exec?)
ERROR: ld.so: object '/run/host/usr/lib32/libtcmalloc.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/run/host/usr/lib32/libtcmalloc.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 62962 != 62933, skipping destruction (fork without exec?)
ERROR: ld.so: object '/run/host/usr/lib32/libtcmalloc.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
SDL video target is 'x11'
SDL video target is 'x11'
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system supports the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system supports the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system supports the OpenGL extension GL_NVX_gpu_memory_info.
This system supports the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system supports the OpenGL extension GL_ARB_buffer_storage.
This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear.
OpenGL: llvmpipe (LLVM 16.0.6, 256 bits) 4.5 (Compatibility Profile) Mesa 23.2.1-arch1.2 (4.5.0)
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_ARB_buffer_storage: AVAILABLE
GL_EXT_texture_sRGB_decode: AVAILABLE
11/10 14:55:46 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(20231031020847)/tid(63003)
11/10 14:55:46 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)/tid(63003)
Using Breakpad minidump system. Version: 8453904 AppID: 440
Setting breakpad minidump AppID = 440
Using breakpad crash handler
/home/user/.local/share/Steam/steamapps/common/Team Fortress 2/hl2.sh: line 72: 62964 Segmentation fault      (core dumped) ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
Uploaded AppInterfaceStats to Steam

Launch options are: LD_PRELOAD=/usr/lib32/libtcmalloc.so:$LD_PRELOAD %command%

Attempted fixes:

Possible duplicates / related (though I think these issues pertain to NVIDIA:525)

kisak-valve commented 11 months ago

Hello @Fried-Squid, avoiding #5043 shouldn't be needed with the NVIDIA proprietary driver and OpenGL: llvmpipe (LLVM 16.0.6, 256 bits) 4.5 (Compatibility Profile) Mesa 23.2.1-arch1.2 (4.5.0) in your log reads like the game is being forced to fallback to llvmpipe instead of using your NVIDIA GPU.

Please copy the contents of Steam Runtime Diagnostics from Steam (Steam -> Help -> Steam Runtime Diagnostics) and put it in a gist, then include a link to the gist in this issue report. We want to focus on the health of the 32 bit OpenGL render path and if you're missing the 32 bit userspace libraries for the NVIDIA driver install.

Fried-Squid commented 11 months ago

Marking as closed, my mistake the LD_PRELOAD launch option was causing the error. I was experiencing the same error as in #5043 caused by an issue with my own package installation.

Was also missing lib32-nvidia-utils.

Thanks @kisak-valve , sorry for wasting your time mate.