obs-vkcapture
obs-vkcapture copied to clipboard
Tabbing in and out of game causes VK_ERROR_OUT_OF_DEVICE_MEMORY
If this is because you have a memory leak or if the game simply claims the free memory in the meantime I cannot tell.
Here is the relevant part of the log:
Game process updated : AppID 275850 "/ssd/Steam/ubuntu12_32/reaper SteamLaunch AppId=275850 -- '/ssd/Steam/compatibilitytools.d/SteamTinkerLaunch'/steamtinkerlaunch waitforexitandrun '/ssd/SteamLibrary/steamapps/common/No Man'\''s Sky/Binaries/NMS.exe'", ProcID 12085, IP 0.0.0.0:0
Setting breakpad minidump AppID = 275850
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198092009024 [API loaded no]
[obs-vkcapture] Init Vulkan 1.1.4
[obs-vkcapture] Init Vulkan 1.1.4
[obs-vkcapture] Init Vulkan 1.1.4
[obs-vkcapture] Init Vulkan 1.1.4
[obs-vkcapture] Init Vulkan 1.1.4
[obs-vkcapture] Init Vulkan 1.1.4
ERROR: ld.so: object '/ssd/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/ssd/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Game process updated : AppID 275850 "/ssd/Steam/ubuntu12_32/reaper SteamLaunch AppId=275850 -- '/ssd/Steam/compatibilitytools.d/SteamTinkerLaunch'/steamtinkerlaunch waitforexitandrun '/ssd/SteamLibrary/steamapps/common/No Man'\''s Sky/Binaries/NMS.exe'", ProcID 12169, IP 0.0.0.0:0
Game process updated : AppID 275850 "/ssd/Steam/ubuntu12_32/reaper SteamLaunch AppId=275850 -- '/ssd/Steam/compatibilitytools.d/SteamTinkerLaunch'/steamtinkerlaunch waitforexitandrun '/ssd/SteamLibrary/steamapps/common/No Man'\''s Sky/Binaries/NMS.exe'", ProcID 12169, IP 0.0.0.0:0
Setting breakpad minidump AppID = 275850
SteamInternal_SetMinidumpSteamID: Caching Steam ID: 76561198092009024 [API loaded no]
[obs-vkcapture] Init Vulkan 1.1.4
[obs-vkcapture] Injecting VK_KHR_bind_memory2 extension
[obs-vkcapture] Injecting VK_KHR_external_memory_fd extension
[obs-vkcapture] Injecting VK_EXT_image_drm_format_modifier extension
Fossilize INFO: Overriding serialization path: "/ssd/SteamLibrary/steamapps/shadercache/275850/fozpipelinesv6/steamapprun_pipeline_cache".
Installing breakpad exception handler for appid(gameoverlayui)/version(20220607031826)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
ERROR: ld.so: object '/ssd/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/ssd/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ThreadGetProcessExitCode: no such process 12204
ThreadGetProcessExitCode: no such process 12202
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Timed out waiting for game mapping!
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] failed to AllocateMemory VK_ERROR_OUT_OF_DEVICE_MEMORY
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] vk_shtex_init failed
Though my layman's idea for a solution would be to allocate that texture once and reuse it if necessary.
Is this nvidia or amd?
Nvidia, also not using fullscreen "fixes" the problem. Though that's not really a solution.
I don't have the game, so I can't test it myself on AMD. I would like to know if it also happens on radv or is just nvidia issue.
Also, even if there was a leak, it's very unlikely it would start causing issues only after allocating two 1920x1080 textures.
Does 52687d406e222f9e9cd0a05f6517ec48aa724b62 help?
While the error still appears after some time(Which can be sped up by loading some more graphically intensive stuff), the capture continues to work.
So, technically fixed? Even though the program still says: AllocateMemory failed (DEVICE_LOCAL): VK_ERROR_OUT_OF_DEVICE_MEMORY
Steam:
[obs-vkcapture] Init Vulkan 1.2.0
[obs-vkcapture] Init Vulkan 1.2.0
[obs-vkcapture] Init Vulkan 1.2.0
[obs-vkcapture] Init Vulkan 1.2.0
[obs-vkcapture] Init Vulkan 1.2.0
[obs-vkcapture] Init Vulkan 1.2.0
[obs-vkcapture] Init Vulkan 1.2.0
[obs-vkcapture] Init Vulkan 1.2.0
[obs-vkcapture] Init Vulkan 1.2.0
[obs-vkcapture] Init Vulkan 1.2.0
ERROR: ld.so: object '/ssd/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/ssd/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Game process updated : AppID 275850 "obs-vkcapture /ssd/Steam/ubuntu12_32/reaper SteamLaunch AppId=275850 -- '/ssd/Steam/compatibilitytools.d/SteamTinkerLaunch'/steamtinkerlaunch waitforexitandrun '/ssd/SteamLibrary/steamapps/common/No Man'\''s Sky/Binaries/NMS.exe'", ProcID 38071, IP 0.0.0.0:0
Game process updated : AppID 275850 "obs-vkcapture /ssd/Steam/ubuntu12_32/reaper SteamLaunch AppId=275850 -- '/ssd/Steam/compatibilitytools.d/SteamTinkerLaunch'/steamtinkerlaunch waitforexitandrun '/ssd/SteamLibrary/steamapps/common/No Man'\''s Sky/Binaries/NMS.exe'", ProcID 38071, IP 0.0.0.0:0
Setting breakpad minidump AppID = 275850
SteamInternal_SetMinidumpSteamID: Caching Steam ID: 76561198092009024 [API loaded no]
[obs-vkcapture] Init Vulkan 1.2.0
[obs-vkcapture] Injecting VK_KHR_bind_memory2 extension
[obs-vkcapture] Injecting VK_KHR_external_memory_fd extension
[obs-vkcapture] Injecting VK_EXT_image_drm_format_modifier extension
Fossilize INFO: Overriding serialization path: "/ssd/SteamLibrary/steamapps/shadercache/275850/fozpipelinesv6/steamapprun_pipeline_cache".
Installing breakpad exception handler for appid(gameoverlayui)/version(20220820011708)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
ERROR: ld.so: object '/ssd/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/ssd/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ThreadGetProcessExitCode: no such process 38123
ThreadGetProcessExitCode: no such process 38118
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Timed out waiting for game mapping!
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] AllocateMemory failed (DEVICE_LOCAL): VK_ERROR_OUT_OF_DEVICE_MEMORY
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1920x1080
[obs-vkcapture] AllocateMemory failed (DEVICE_LOCAL): VK_ERROR_OUT_OF_DEVICE_MEMORY
[obs-vkcapture] ------------------ vulkan capture started ------------------
OBS:
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:95 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:95 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:97 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:95 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:97 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:95 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:97 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:95 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:97 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:95 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:97 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:95 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:97 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:95 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:97 stride:7680 offset:0
info: [linux-vkcapture] Creating texture from dmabuf 1920x1080 modifier:216172782120099860
info: [linux-vkcapture] [0] fd:95 stride:7680 offset:0
So, technically fixed? Even though the program still says: AllocateMemory failed (DEVICE_LOCAL): VK_ERROR_OUT_OF_DEVICE_MEMORY
This is expected, it will continue trying to allocate different memory types and if all fails write a different error message and the capture won't work. So this issue is fixed now.
Oh also what nvidia driver and gpu do you have? Because apparently capture doesn't work at all for some people with nvidia #71
nvidia-smi -q
:
==============NVSMI LOG==============
Timestamp : Mon Sep 5 22:54:54 2022
Driver Version : 515.49.05
CUDA Version : 11.7
Attached GPUs : 1
GPU 00000000:01:00.0
Product Name : NVIDIA GeForce GTX 1650
Product Brand : GeForce
Product Architecture : Turing
Display Mode : Enabled
Display Active : Enabled
Persistence Mode : Disabled
MIG Mode
Current : N/A
Pending : N/A
Accounting Mode : Disabled
Accounting Mode Buffer Size : 4000
Driver Model
Current : N/A
Pending : N/A
Serial Number : N/A
GPU UUID : GPU-9b36c24f-b9bc-1dfa-b6c7-1ea6b42c5b75
Minor Number : 0
VBIOS Version : 90.17.4B.00.1C
MultiGPU Board : No
Board ID : 0x100
GPU Part Number : N/A
Module ID : 0
Inforom Version
Image Version : G001.0000.02.04
OEM Object : 1.1
ECC Object : N/A
Power Management Object : N/A
GPU Operation Mode
Current : N/A
Pending : N/A
GSP Firmware Version : N/A
GPU Virtualization Mode
Virtualization Mode : None
Host VGPU Mode : N/A
IBMNPU
Relaxed Ordering Mode : N/A
PCI
Bus : 0x01
Device : 0x00
Domain : 0x0000
Device Id : 0x1F9910DE
Bus Id : 00000000:01:00.0
Sub System Id : 0x3FA217AA
GPU Link Info
PCIe Generation
Max : 3
Current : 1
Link Width
Max : 16x
Current : 16x
Bridge Chip
Type : N/A
Firmware : N/A
Replays Since Reset : 0
Replay Number Rollovers : 0
Tx Throughput : 911000 KB/s
Rx Throughput : 132000 KB/s
Fan Speed : N/A
Performance State : P8
Clocks Throttle Reasons
Idle : Active
Applications Clocks Setting : Not Active
SW Power Cap : Not Active
HW Slowdown : Not Active
HW Thermal Slowdown : Not Active
HW Power Brake Slowdown : Not Active
Sync Boost : Not Active
SW Thermal Slowdown : Not Active
Display Clock Setting : Not Active
FB Memory Usage
Total : 4096 MiB
Reserved : 184 MiB
Used : 463 MiB
Free : 3448 MiB
BAR1 Memory Usage
Total : 256 MiB
Used : 10 MiB
Free : 246 MiB
Compute Mode : Default
Utilization
Gpu : 4 %
Memory : 5 %
Encoder : 0 %
Decoder : 0 %
Encoder Stats
Active Sessions : 0
Average FPS : 0
Average Latency : 0
FBC Stats
Active Sessions : 0
Average FPS : 0
Average Latency : 0
Ecc Mode
Current : N/A
Pending : N/A
ECC Errors
Volatile
SRAM Correctable : N/A
SRAM Uncorrectable : N/A
DRAM Correctable : N/A
DRAM Uncorrectable : N/A
Aggregate
SRAM Correctable : N/A
SRAM Uncorrectable : N/A
DRAM Correctable : N/A
DRAM Uncorrectable : N/A
Retired Pages
Single Bit ECC : N/A
Double Bit ECC : N/A
Pending Page Blacklist : N/A
Remapped Rows : N/A
Temperature
GPU Current Temp : 49 C
GPU Shutdown Temp : 99 C
GPU Slowdown Temp : 94 C
GPU Max Operating Temp : 87 C
GPU Target Temperature : N/A
Memory Current Temp : N/A
Memory Max Operating Temp : N/A
Power Readings
Power Management : N/A
Power Draw : 6.30 W
Power Limit : N/A
Default Power Limit : N/A
Enforced Power Limit : N/A
Min Power Limit : N/A
Max Power Limit : N/A
Clocks
Graphics : 300 MHz
SM : 300 MHz
Memory : 405 MHz
Video : 540 MHz
Applications Clocks
Graphics : N/A
Memory : N/A
Default Applications Clocks
Graphics : N/A
Memory : N/A
Max Clocks
Graphics : 1785 MHz
SM : 1785 MHz
Memory : 6001 MHz
Video : 1650 MHz
Max Customer Boost Clocks
Graphics : 1785 MHz
Clock Policy
Auto Boost : N/A
Auto Boost Default : N/A
Voltage
Graphics : N/A
Processes
GPU instance ID : N/A
Compute instance ID : N/A
Process ID : 6687
Type : G
Name : /usr/lib/Xorg
Used GPU Memory : 279 MiB
GPU instance ID : N/A
Compute instance ID : N/A
Process ID : 7012
Type : G
Name : /usr/bin/kwin_x11
Used GPU Memory : 12 MiB
GPU instance ID : N/A
Compute instance ID : N/A
Process ID : 7046
Type : G
Name : /usr/bin/plasmashell
Used GPU Memory : 52 MiB
GPU instance ID : N/A
Compute instance ID : N/A
Process ID : 7246
Type : G
Name : /opt/freedownloadmanager/fdm
Used GPU Memory : 1 MiB
GPU instance ID : N/A
Compute instance ID : N/A
Process ID : 7929
Type : G
Name : /tmp/.mount_Home-An87zFd/homeassistant-desktop --type=gpu-process --field-trial-handle=15887479427247306665,6422300201056338336,131072 --disable-features=PlzServiceWorker,SpareRendererForSitePerProcess --enable-crashpad --enable-crash-reporter=40569d8d-842e-4e8b-8770-6693a9139bc8,no_channel --user-data-dir=/home/athrunen/.config/homeassistant-desktop --gpu-preferences=UAAAAAAAAAAgAAAIAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAABgAAAAAAAAAGAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --shared-files
Used GPU Memory : 5 MiB
GPU instance ID : N/A
Compute instance ID : N/A
Process ID : 8337
Type : G
Name : /tmp/.mount_obsidiwypwDD/obsidian --type=gpu-process --enable-crashpad --enable-crash-reporter=a2d254f3-90fc-4e92-bd36-88fb6c5a7ec5,no_channel --user-data-dir=/home/athrunen/.config/obsidian --gpu-preferences=WAAAAAAAAAAgAAAIAAAAAAAAAAAAAAAAAABgAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAIAAAAAAAAAABAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --shared-files --field-trial-handle=0,i,1769591446670545757,14993951997209339617,131072 --enable-features=SharedArrayBuffer --disable-features=SpareRendererForSitePerProcess
Used GPU Memory : 56 MiB
GPU instance ID : N/A
Compute instance ID : N/A
Process ID : 39777
Type : G
Name : /usr/lib/brave-bin/brave --type=gpu-process --enable-crashpad --crashpad-handler-pid=39743 --enable-crash-reporter=, --change-stack-guard-on-fork=enable --gpu-preferences=WAAAAAAAAAAgAAAIAAAAAAAAAAAAAAAAAABgAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAIAAAAAAAAAABAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --shared-files --field-trial-handle=0,i,9039176440351163086,15361229441969157846,131072 --enable-features=FileSystemAccessAPI
Used GPU Memory : 43 MiB
GPU instance ID : N/A
Compute instance ID : N/A
Process ID : 62710
Type : G
Name : /usr/bin/nvidia-settings
Used GPU Memory : 1 MiB