You are not logged in.

#1 2019-12-24 14:42:51

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,976
Website

[SOLVED] Multiple games crashing. Graphics driver issue?

Hi all.

I am currently trying to get "Cities Skylines" started via Steam Native.
The game itself is a native Linux binary.
The game loads the main menu, but when I try to start a new game, it crashes at some point while loading.
I found this excerpt in dmesg:

[  178.787298] [TTM] Failed to find memory space for buffer 0x00000000203f18b8 eviction
[  178.787304] [TTM]  No space for 00000000203f18b8 (512 pages, 2048K, 2M)
[  178.787306] [TTM]    placement[0]=0x00060002 (1)
[  178.787307] [TTM]      has_type: 1
[  178.787308] [TTM]      use_type: 1
[  178.787309] [TTM]      flags: 0x0000000A
[  178.787310] [TTM]      gpu_offset: 0x00000000
[  178.787310] [TTM]      size: 786432
[  178.787311] [TTM]      available_caching: 0x00070000
[  178.787312] [TTM]      default_caching: 0x00010000
[  178.787314] [TTM]  0x0000000000000400-0x0000000000000401: 1: used
[  178.787315] [TTM]  0x0000000000000401-0x0000000000000443: 66: used
[  178.787316] [TTM]  0x0000000000000443-0x0000000000000445: 2: used
[  178.787318] [TTM]  0x0000000000000445-0x0000000000000447: 2: used
[  178.787319] [TTM]  0x0000000000000447-0x0000000000000449: 2: used
[  178.787320] [TTM]  0x0000000000000449-0x000000000000044b: 2: used
[  178.787320] [TTM]  0x000000000000044b-0x000000000000044d: 2: used
[  178.787321] [TTM]  0x000000000000044d-0x000000000000044f: 2: used
[  178.787322] [TTM]  0x000000000000044f-0x0000000000000451: 2: used
[  178.787323] [TTM]  0x0000000000000451-0x0000000000000453: 2: used
[  178.787324] [TTM]  0x0000000000000453-0x0000000000000455: 2: used
[  178.787325] [TTM]  0x0000000000000455-0x0000000000000456: 1: used
[  178.787326] [TTM]  0x0000000000000456-0x0000000000000556: 256: used
[  178.787327] [TTM]  0x0000000000000556-0x0000000000000557: 1: used
[  178.787328] [TTM]  0x0000000000000557-0x0000000000000558: 1: used
[  178.787329] [TTM]  0x0000000000000558-0x0000000000000559: 1: used
[  178.787330] [TTM]  0x0000000000000559-0x000000000000055a: 1: used
[  178.787331] [TTM]  0x000000000000055a-0x000000000000055b: 1: used
[  178.787332] [TTM]  0x000000000000055b-0x000000000000055c: 1: used
[  178.787333] [TTM]  0x000000000000055c-0x000000000000055d: 1: used
[  178.787334] [TTM]  0x000000000000055d-0x000000000000055e: 1: used
[  178.787335] [TTM]  0x000000000000055e-0x0000000000000560: 2: used
[  178.787335] [TTM]  0x0000000000000560-0x0000000000000561: 1: used
[  178.787336] [TTM]  0x0000000000000561-0x0000000000000562: 1: used
[  178.787337] [TTM]  0x0000000000000562-0x0000000000000563: 1: used
[  178.787338] [TTM]  0x0000000000000563-0x0000000000000565: 2: used
[  178.787339] [TTM]  0x0000000000000565-0x0000000000000665: 256: used
[  178.787340] [TTM]  0x0000000000000665-0x000000000000075c: 247: used
[  178.787341] [TTM]  0x000000000000075c-0x0000000000000800: 164: free
[  178.787342] [TTM]  0x0000000000000800-0x0000000000000900: 256: used
[  178.787342] [TTM]  0x0000000000000900-0x0000000000000cca: 970: used
[  178.787343] [TTM]  0x0000000000000cca-0x0000000000040000: 258870: free
[  178.787345] [TTM]  total: 261120, used 2086 free 259034
[  178.787346] [TTM]  man size:786432 pages, gtt available:68 pages, usage:3071MB
[  178.787412] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* amdgpu_vm_validate_pt_bos() failed.
[  178.787472] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for command submission!

I googled for the error messages and some people on the bug tracker suggested that the system is running out of memory.
However the system has
* AMD Ryzen 5 2500U
* AMD Radeon Vega 8 Graphics
* 16 GB of RAM

The issue also occurs on other games like "Surviving Mars". But not on Minecraft (with a resource-heavy resource pack and shaders) or the Borderlands series games.
What can I do to fix this issue? What information do you need to help me do it?

PS: I'm running Gnome 3 as DE. The issue occurs under both Wayland and X11 as well as under Steam Native and the integrated runtime.
PPS: Some more graphics memory info:

$ glxinfo | egrep -i 'device|memory'
    Device: AMD RAVEN (DRM 3.35.0, 5.4.6-arch1-1, LLVM 9.0.0) (0x15dd)
    Video memory: 1024MB
    Unified memory: no
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 558 MB, largest block: 558 MB
    VBO free aux. memory - total: 2950 MB, largest block: 2950 MB
    Texture free memory - total: 558 MB, largest block: 558 MB
    Texture free aux. memory - total: 2950 MB, largest block: 2950 MB
    Renderbuffer free memory - total: 558 MB, largest block: 558 MB
    Renderbuffer free aux. memory - total: 2950 MB, largest block: 2950 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 1024 MB
    Total available memory: 4096 MB
    Currently available dedicated video memory: 558 MB
    GL_AMD_performance_monitor, GL_AMD_pinned_memory, 
    GL_EXT_framebuffer_object, GL_EXT_framebuffer_sRGB, GL_EXT_memory_object, 
    GL_EXT_memory_object_fd, GL_EXT_packed_depth_stencil, GL_EXT_packed_float, 
    GL_MESA_texture_signed_rgba, GL_NVX_gpu_memory_info, 
    GL_AMD_pinned_memory, GL_AMD_query_buffer_object, 
    GL_EXT_gpu_program_parameters, GL_EXT_gpu_shader4, GL_EXT_memory_object, 
    GL_EXT_memory_object_fd, GL_EXT_multi_draw_arrays, 
    GL_MESA_texture_signed_rgba, GL_MESA_window_pos, GL_NVX_gpu_memory_info, 
    GL_EXT_memory_object, GL_EXT_memory_object_fd, GL_EXT_multi_draw_arrays, 
$ sudo lspci -v -s 04:00.0 
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev c4) (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]
	Flags: bus master, fast devsel, latency 0, IRQ 50
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=2M]
	I/O ports at e000 [size=256]
	Memory at fcc00000 (32-bit, non-prefetchable) [size=512K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
	Capabilities: [64] Express Legacy Endpoint, MSI 00
	Capabilities: [a0] MSI: Enable+ Count=1/4 Maskable- 64bit+
	Capabilities: [c0] MSI-X: Enable- Count=3 Masked-
	Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [200] Resizable BAR <?>
	Capabilities: [270] Secondary PCI Express <?>
	Capabilities: [2a0] Access Control Services
	Capabilities: [2b0] Address Translation Service (ATS)
	Capabilities: [2c0] Page Request Interface (PRI)
	Capabilities: [2d0] Process Address Space ID (PASID)
	Capabilities: [320] Latency Tolerance Reporting
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

Solution:
Turns out, that the system probably really ran out of memory.
The default settings of both games are set to high defaults.
When I set "Cities Skylines" to the lowest possible graphics settings it loaded a map and i was "able" to play it at no frames per second.
Same goes for "Surviving Mars", though it runs quite smooth on low settings.
I'm sorry for the noise and wish you all a merry Christmas or whatever you're celebrating this time of year.

Last edited by schard (2019-12-24 15:06:06)


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#2 2020-02-01 15:23:46

anespo
Member
From: Europe
Registered: 2007-07-17
Posts: 39

Re: [SOLVED] Multiple games crashing. Graphics driver issue?

i have same problems.... kernel 5.4/5.5, KDE, Xserver

[alois@ryzen ~]$ glxinfo | egrep -i 'device|memory'
    Device: AMD RAVEN (DRM 3.36.0, 5.5.0-zen1-1-zen, LLVM 9.0.1) (0x15d8)
    Video memory: 2048MB
    Unified memory: no
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 1678 MB, largest block: 1678 MB
    VBO free aux. memory - total: 3018 MB, largest block: 3018 MB
    Texture free memory - total: 1678 MB, largest block: 1678 MB
    Texture free aux. memory - total: 3018 MB, largest block: 3018 MB
    Renderbuffer free memory - total: 1678 MB, largest block: 1678 MB
    Renderbuffer free aux. memory - total: 3018 MB, largest block: 3018 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 5120 MB
    Currently available dedicated video memory: 1678 MB
    GL_AMD_performance_monitor, GL_AMD_pinned_memory,
    GL_EXT_framebuffer_object, GL_EXT_framebuffer_sRGB, GL_EXT_memory_object,
    GL_EXT_memory_object_fd, GL_EXT_packed_depth_stencil, GL_EXT_packed_float,
    GL_MESA_texture_signed_rgba, GL_NVX_gpu_memory_info,
    GL_AMD_pinned_memory, GL_AMD_query_buffer_object,
    GL_EXT_gpu_program_parameters, GL_EXT_gpu_shader4, GL_EXT_memory_object,
    GL_EXT_memory_object_fd, GL_EXT_multi_draw_arrays,
    GL_MESA_texture_signed_rgba, GL_MESA_window_pos, GL_NVX_gpu_memory_info,
    GL_EXT_memory_object, GL_EXT_memory_object_fd, GL_EXT_multi_draw_arrays,

VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c8) (prog-if 00 [VGA controller])
        DeviceName: OnBoard IGD
        Subsystem: Hewlett-Packard Company Device 8643

Offline

#3 2020-02-01 17:55:19

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] Multiple games crashing. Graphics driver issue?

OP runs gnome and solved the issue for Cities Skylines & Surviving Mars by reducing the settings for those games.

If your problems are with other games, you probably don't have the same issue.
I suggest you start a new thread.

Add glxinfo -B , lspci -k and full dmesg or journalctl -b from  a boot where the issue occured.
You appear to have a HP system, which one ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB