canonical / steam-snap

Steam as a snap
https://snapcraft.io/steam
76 stars 10 forks source link

Warning pop-up when launching Team Fortress 2: "Please install 'en_US.UTF-8' locale" #236

Open XoloitzcuintiI opened 1 year ago

XoloitzcuintiI commented 1 year ago

Description Upon launching the game Team Fortress 2, a very long warning message pops up every time that reads:

SetLocale('en_US.UTF-8') failed. Using 'LC_CTYPE=C;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LCMONETARY=en_US.UTF-8;LC_MESSAGES=C;LC_PAPER=C;LCNAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C'.
You may have limited glyph support.
Please install 'en_US.UTF-8' locale.

The warning message keeps the game from loading into the main menu until I press 'OK'. After pressing 'OK', the game immediately loads into the menu with no delay.

To Reproduce

  1. Boot PC
  2. Open Steam
  3. Click on Team Fortress 2 from library
  4. Click Play
  5. Game boots to loading screen
  6. Warning message appears

Expected behavior For the game to boot normally into the main menu with no warnings, nor error messages popping up.

Screenshots image

Environment

os_release: 
    name:               "Ubuntu"
    version:            "23.04 (Lunar Lobster)"
snap_info: 
    steam_revision:     136
    snapd_revision:     19122
lspci: 
    0c:00.0:            Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] (rev c1)
glxinfo: 
    gpu:                NAVI23 (navi23, LLVM 15.0.7, DRM 3.49, 6.2.0-20-generic)
    gpu_version:        4.6 (Core Profile) Mesa 23.0.3 - kisak-mesa PPA
lscpu: 
    model_name:         AMD Ryzen 9 5950X 16-Core Processor
xdg_current_desktop:    ubuntu:GNOME
desktop_session:        ubuntu

Logs (From the terminal, there is only one error that mentions 'en_US.UTF-8')

WARNING: setlocale('en_US.UTF-8') failed, using locale:'C'. International characters may not work.

ashuntu commented 1 year ago

This used to be a problem with (most) Source-based games, but doesn't seem to be anymore. Can you verify if this is still an issue?

Blazing-Blast commented 1 year ago

I can verify that I still face this issue, with launch options LD_PRELOAD=libtcmalloc.so %command% -steam -game tf --verbose -novid -nojoy

ashuntu commented 1 year ago

I can verify that I still face this issue, with launch options LD_PRELOAD=libtcmalloc.so %command% -steam -game tf --verbose -novid -nojoy

Can you provide Steam's logs when running the game?

And to confirm, this is specifically with Team Fortress 2?

Blazing-Blast commented 1 year ago

I get these logs

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 supports the OpenGL extension GLX_EXT_swap_control_tear.
OpenGL: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 18.0.0, DRM 3.54, 6.6.0-rc4-00284-gb9ddbb0cde2a) 4.6 (Compatibility Profile) Mesa 24.0.0-devel (git-fd80140723) (4.6.0)
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_ARB_buffer_storage: NOT AVAILABLE
GL_EXT_texture_sRGB_decode: AVAILABLE
GL_NVX_gpu_memory_info: AVAILABLE
GL_ATI_meminfo: AVAILABLE
GL_NVX_gpu_memory_info: Total Dedicated: 25165824, Total Avail: 41556060, Current Avail: 23973356
GL_MAX_SAMPLES_EXT: 8
CShaderDeviceMgrBase::GetRecommendedConfigurationInfo: CPU speed: 5000 MHz, Processor: GenuineIntel
GlobalMemoryStatus: 4294967295
CShaderDeviceMgrBase::GetRecommendedConfigurationInfo: CPU speed: 5000 MHz, Processor: GenuineIntel
GlobalMemoryStatus: 4294967295
IDirect3DDevice9::Create: BackBufWidth: 1920, BackBufHeight: 1080, D3DFMT: 3, BackBufCount: 1, MultisampleType: 8, MultisampleQuality: 0
GL sampler object usage: DISABLED

 ##### swap interval = 0     swap limit = 1 #####
Unable to remove /home/<USER>/.local/share/Steam/steamapps/common/Team Fortress 2/tf/textwindow_temp.html!
ashuntu commented 3 months ago

If not already, this may work now with 2.64 snapd. You can try by refreshing snapd with snap refresh snapd --edge (and restarting). Make sure to go back to stable after testing with snap refresh snapd --stable.