nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
502 stars 24 forks source link

after recent update obs-gamecapture stopped to work with a native OpenGL steam game #191

Closed somewhatfrog closed 6 months ago

somewhatfrog commented 7 months ago

obs-gamecapture works for glxgears as expected but stopped to work for the steam game

System (please complete the following information):

OBS log:

18:06:15.656: Command Line Arguments: --profile kindarecord --collection kindarecord --startreplaybuffer
18:06:15.656: Using EGL/X11
18:06:15.656: CPU Name: AMD Ryzen 7 5800X3D 8-Core Processor
18:06:15.656: CPU Speed: 3552.142MHz
18:06:15.656: Physical Cores: 8, Logical Cores: 16
18:06:15.656: Physical Memory: 64226MB Total, 57058MB Free
18:06:15.656: Kernel Version: Linux 6.6.6-zen1-1-zen
18:06:15.656: Distribution: "Arch Linux" Unknown
18:06:15.656: Session Type: tty
18:06:15.656: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
18:06:15.657: Qt Version: 6.6.1 (runtime), 6.6.0 (compiled)
18:06:15.657: Portable mode: false
18:06:15.696: OBS 30.0.0-1 (linux)
18:06:15.696: ---------------------------------
18:06:15.697: ---------------------------------
18:06:15.697: audio settings reset:
18:06:15.697:   samples per sec: 48000
18:06:15.697:   speakers:        2
18:06:15.697:   max buffering:   21 milliseconds
18:06:15.697:   buffering type:  fixed
18:06:15.698: ---------------------------------
18:06:15.698: Initializing OpenGL...
18:06:15.718: Enabling fixed audio buffering, total audio buffering is now 21 milliseconds
18:06:15.806: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
18:06:15.806: OpenGL loaded successfully, version 3.3.0 NVIDIA 545.29.06, shading language 3.30 NVIDIA via Cg compiler
18:06:15.829: ---------------------------------
18:06:15.829: video settings reset:
18:06:15.829:   base resolution:   3840x2160
18:06:15.829:   output resolution: 3840x2160
18:06:15.829:   downscale filter:  Bicubic
18:06:15.829:   fps:               30/1
18:06:15.829:   format:            NV12
18:06:15.829:   YUV mode:          Rec. 709/Partial
18:06:15.829: NV12 texture support not available
18:06:15.829: P010 texture support not available
18:06:15.874: Audio monitoring device:
18:06:15.874:   name: Monitor of Music Sink
18:06:15.874:   id: music_sink.monitor
18:06:15.874: ---------------------------------
18:06:15.881: Failed to load 'en-US' text for module: 'decklink-captions.so'
18:06:15.888: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
18:06:15.894: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
18:06:15.894: Failed to initialize module 'decklink.so'
18:06:15.994: [pipewire] No captures available
18:06:16.018: [linux-vkcapture] plugin loaded successfully (version 1.4.7)
18:06:16.057: NVENC supported
18:06:16.057: VAAPI: Failed to initialize display in vaapi_device_h264_supported
18:06:16.058: FFmpeg VAAPI H264 encoding not supported
18:06:16.058: VAAPI: Failed to initialize display in vaapi_device_hevc_supported
18:06:16.058: FFmpeg VAAPI HEVC encoding not supported
18:06:16.140: ---------------------------------
18:06:16.140:   Loaded Modules:
18:06:16.140:     libobs-linuxbrowser.so
18:06:16.140:     libimage-reaction.so
18:06:16.140:     text-freetype2.so
18:06:16.140:     rtmp-services.so
18:06:16.140:     obs-x264.so
18:06:16.140:     obs-vst.so
18:06:16.140:     obs-transitions.so
18:06:16.140:     obs-qsv11.so
18:06:16.140:     obs-outputs.so
18:06:16.140:     obs-libfdk.so
18:06:16.140:     obs-filters.so
18:06:16.140:     obs-ffmpeg.so
18:06:16.140:     linux-vkcapture.so
18:06:16.140:     linux-v4l2.so
18:06:16.140:     linux-pulseaudio.so
18:06:16.140:     linux-pipewire.so
18:06:16.140:     linux-jack.so
18:06:16.140:     linux-capture.so
18:06:16.140:     linux-alsa.so
18:06:16.140:     image-source.so
18:06:16.140:     frontend-tools.so
18:06:16.140:     decklink-output-ui.so
18:06:16.140:     decklink-captions.so
18:06:16.140: ---------------------------------
18:06:16.140: QWidget::setTabOrder: 'first' and 'second' must be in the same window
18:06:16.141: ==== Startup complete ===============================================
18:06:16.167: All scene data cleared
18:06:16.167: ------------------------------------------------
18:06:16.169: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.0) 15.0.0'
18:06:16.170: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
18:06:16.170: pulse-input: Started recording from 'alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-mono-left'
18:06:16.171: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.0) 15.0.0'
18:06:16.171: pulse-input: Audio format: float32le, 48000 Hz, 2 channels
18:06:16.171: pulse-input: Started recording from 'music_sink.monitor'
18:06:16.171: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.0) 15.0.0'
18:06:16.172: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
18:06:16.172: pulse-input: Started recording from 'alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo-output.monitor'
18:06:16.189: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.0) 15.0.0'
18:06:16.189: pulse-input: Audio format: float32le, 48000 Hz, 2 channels
18:06:16.189: pulse-input: Started recording from 'game_sink.monitor'
18:06:16.190: Switched to scene 'main'
18:06:16.191: ------------------------------------------------
18:06:16.191: Loaded scenes:
18:06:16.191: - scene 'main':
18:06:16.191:     - source: 'music_sink' (pulse_output_capture)
18:06:16.191:         - filter: 'Compressor' (compressor_filter)
18:06:16.191:         - filter: 'Limiter' (limiter_filter)
18:06:16.191:     - source: 'game_sink' (pulse_output_capture)
18:06:16.191:         - filter: 'Compressor' (compressor_filter)
18:06:16.191:         - filter: 'Limiter' (limiter_filter)
18:06:16.191:     - source: 'mic' (pulse_input_capture)
18:06:16.191:         - filter: 'Gain' (gain_filter)
18:06:16.191:         - filter: '3-Band Equalizer' (basic_eq_filter)
18:06:16.191:         - filter: 'Compressor' (compressor_filter)
18:06:16.191:         - filter: 'Limiter' (limiter_filter)
18:06:16.191:         - filter: 'Noise Suppression' (noise_suppress_filter_v2)
18:06:16.191:     - source: 'PCM' (pulse_output_capture)
18:06:16.191:     - source: 'Game Capture' (vkcapture-source)
18:06:16.191: ------------------------------------------------
18:06:16.237: ---------------------------------
18:06:16.239: [FFmpeg NVENC encoder: 'advanced_video_recording'] settings:
18:06:16.239:   encoder:      NVIDIA NVENC H.264 (FFmpeg)
18:06:16.239:   rate_control: CQP
18:06:16.239:   bitrate:      0
18:06:16.239:   cqp:          20
18:06:16.239:   keyint:       -1
18:06:16.239:   preset:       p6
18:06:16.239:   tuning:       hq
18:06:16.239:   multipass:    qres
18:06:16.239:   profile:      high
18:06:16.239:   width:        3840
18:06:16.239:   height:       2160
18:06:16.239:   b-frames:     2
18:06:16.239:   psycho-aq:    1
18:06:16.239:   GPU:          0
18:06:16.239: 
18:06:16.733: libfdk_aac encoder created
18:06:16.734: libfdk_aac bitrate: 256, channels: 2
18:06:16.734: libfdk_aac encoder created
18:06:16.734: libfdk_aac bitrate: 160, channels: 2
18:06:16.751: ==== Replay Buffer Start ===========================================
18:06:27.011: [linux-vkcapture] Client 1 connected (pid=2036)
18:06:28.270: [linux-vkcapture] Creating texture from dmabuf 1920x2160 modifier:216172782120099860
18:06:28.270: [linux-vkcapture]  [0] fd:99 stride:7680 offset:0
18:06:31.292: [linux-vkcapture] Client 1 disconnected
18:15:57.862: Source music_sink audio is lagging (over by 1.52 ms) at max audio buffering. Restarting source audio.
18:19:30.393: ==== Shutting down ==================================================
18:19:30.454: pulse-input: Stopped recording from 'music_sink.monitor'
18:19:30.454: pulse-input: Got 31767 packets with 38120400 frames
18:19:30.454: pulse-input: Stopped recording from 'game_sink.monitor'
18:19:30.454: pulse-input: Got 31768 packets with 38121600 frames
18:19:30.455: pulse-input: Stopped recording from 'alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-mono-left'
18:19:30.455: pulse-input: Got 31767 packets with 38120400 frames
18:19:30.455: pulse-input: Stopped recording from 'alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo-output.monitor'
18:19:30.455: pulse-input: Got 31770 packets with 38124000 frames
18:19:30.455: [linux-vkcapture] destroy
18:19:30.471: All scene data cleared
18:19:30.471: ------------------------------------------------
18:19:30.492: Output 'Replay Buffer': stopping
18:19:30.492: Output 'Replay Buffer': Total frames output: 23787
18:19:30.492: Output 'Replay Buffer': Total drawn frames: 23811 (23812 attempted)
18:19:30.492: Output 'Replay Buffer': Number of lagged frames due to rendering lag/stalls: 1 (0.0%)
18:19:31.065: libfdk_aac encoder destroyed
18:19:31.065: libfdk_aac encoder destroyed
18:19:31.154: [linux-vkcapture] plugin unloaded
18:19:31.158: [Scripting] Total detached callbacks: 0
18:19:31.158: Freeing OBS context data
18:19:31.177: == Profiler Results =============================
18:19:31.177: run_program_init: 665.554 ms
18:19:31.177:  ┣OBSApp::AppInit: 18.897 ms
18:19:31.177:  ┃ ┗OBSApp::InitLocale: 3.055 ms
18:19:31.177:  ┗OBSApp::OBSInit: 579.416 ms
18:19:31.177:    ┣obs_startup: 1.305 ms
18:19:31.177:    ┗OBSBasic::OBSInit: 538.436 ms
18:19:31.177:      ┣OBSBasic::InitBasicConfig: 0.119 ms
18:19:31.177:      ┣OBSBasic::ResetAudio: 0.226 ms
18:19:31.177:      ┣OBSBasic::ResetVideo: 177.308 ms
18:19:31.177:      ┃ ┗obs_init_graphics: 131.715 ms
18:19:31.177:      ┃   ┗shader compilation: 22.837 ms
18:19:31.177:      ┣OBSBasic::InitOBSCallbacks: 0.002 ms
18:19:31.177:      ┣OBSBasic::InitHotkeys: 0.011 ms
18:19:31.177:      ┣obs_load_all_modules2: 265.403 ms
18:19:31.177:      ┃ ┣obs_init_module(decklink-captions.so): 0 ms
18:19:31.177:      ┃ ┣obs_init_module(decklink-output-ui.so): 0.004 ms
18:19:31.177:      ┃ ┣obs_init_module(decklink.so): 0.09 ms
18:19:31.177:      ┃ ┣obs_init_module(frontend-tools.so): 53.42 ms
18:19:31.177:      ┃ ┣obs_init_module(image-source.so): 0.006 ms
18:19:31.177:      ┃ ┣obs_init_module(linux-alsa.so): 0.002 ms
18:19:31.177:      ┃ ┣obs_init_module(linux-capture.so): 0.313 ms
18:19:31.177:      ┃ ┣obs_init_module(linux-jack.so): 0.002 ms
18:19:31.177:      ┃ ┣obs_init_module(linux-pipewire.so): 3.569 ms
18:19:31.177:      ┃ ┣obs_init_module(linux-pulseaudio.so): 0.003 ms
18:19:31.177:      ┃ ┣obs_init_module(linux-v4l2.so): 5.582 ms
18:19:31.177:      ┃ ┣obs_init_module(linux-vkcapture.so): 0.067 ms
18:19:31.177:      ┃ ┣obs_init_module(obs-ffmpeg.so): 5.915 ms
18:19:31.177:      ┃ ┃ ┗nvenc_check: 2.161 ms
18:19:31.177:      ┃ ┣obs_init_module(obs-filters.so): 0.023 ms
18:19:31.177:      ┃ ┣obs_init_module(obs-libfdk.so): 0 ms
18:19:31.177:      ┃ ┣obs_init_module(obs-outputs.so): 0.003 ms
18:19:31.177:      ┃ ┣obs_init_module(obs-qsv11.so): 0.077 ms
18:19:31.177:      ┃ ┣obs_init_module(obs-transitions.so): 0.006 ms
18:19:31.177:      ┃ ┣obs_init_module(obs-vst.so): 0.003 ms
18:19:31.177:      ┃ ┣obs_init_module(obs-x264.so): 0.001 ms
18:19:31.177:      ┃ ┣obs_init_module(rtmp-services.so): 1.672 ms
18:19:31.177:      ┃ ┣obs_init_module(text-freetype2.so): 0.014 ms
18:19:31.177:      ┃ ┣obs_init_module(libimage-reaction.so): 0.002 ms
18:19:31.177:      ┃ ┗obs_init_module(libobs-linuxbrowser.so): 0.002 ms
18:19:31.177:      ┣OBSBasic::InitService: 1.255 ms
18:19:31.177:      ┣OBSBasic::ResetOutputs: 0.244 ms
18:19:31.177:      ┣OBSBasic::CreateHotkeys: 0.042 ms
18:19:31.177:      ┣OBSBasic::InitPrimitives: 0.125 ms
18:19:31.177:      ┗OBSBasic::Load: 52.189 ms
18:19:31.177: obs_hotkey_thread(25 ms): min=0.047 ms, median=0.089 ms, max=89.13 ms, 99th percentile=0.152 ms, 99.8795% below 25 ms
18:19:31.177: audio_thread(Audio): min=0.004 ms, median=0.124 ms, max=1.793 ms, 99th percentile=0.322 ms
18:19:31.177:  ┗receive_audio: min=0.001 ms, median=0.045 ms, max=1.744 ms, 99th percentile=0.156 ms, 1.99716 calls per parent call
18:19:31.177:    ┣buffer_audio: min=0 ms, median=0 ms, max=0.041 ms, 99th percentile=0 ms
18:19:31.177:    ┗do_encode: min=0.03 ms, median=0.044 ms, max=1.743 ms, 99th percentile=0.156 ms
18:19:31.177:      ┣encode(Track2): min=0.029 ms, median=0.037 ms, max=0.358 ms, 99th percentile=0.12 ms, 0.50002 calls per parent call
18:19:31.177:      ┣send_packet: min=0 ms, median=0.001 ms, max=1.697 ms, 99th percentile=0.01 ms
18:19:31.177:      ┗encode(Track1): min=0.033 ms, median=0.044 ms, max=0.67 ms, 99th percentile=0.127 ms, 0.49998 calls per parent call
18:19:31.177: obs_graphics_thread(33.3333 ms): min=0.1 ms, median=1.726 ms, max=94.114 ms, 99th percentile=3.413 ms, 99.8743% below 33.333 ms
18:19:31.177:  ┣tick_sources: min=0 ms, median=0.004 ms, max=6.006 ms, 99th percentile=0.008 ms
18:19:31.177:  ┣output_frame: min=0.05 ms, median=1.436 ms, max=18.777 ms, 99th percentile=2.091 ms
18:19:31.177:  ┃ ┣gs_context(video->graphics): min=0.049 ms, median=0.149 ms, max=17.619 ms, 99th percentile=0.373 ms
18:19:31.177:  ┃ ┃ ┣render_video: min=0.02 ms, median=0.105 ms, max=16.898 ms, 99th percentile=0.199 ms
18:19:31.177:  ┃ ┃ ┃ ┣render_main_texture: min=0.016 ms, median=0.029 ms, max=2.33 ms, 99th percentile=0.088 ms
18:19:31.177:  ┃ ┃ ┃ ┣render_convert_texture: min=0.031 ms, median=0.043 ms, max=1.9 ms, 99th percentile=0.1 ms
18:19:31.177:  ┃ ┃ ┃ ┗stage_output_texture: min=0.018 ms, median=0.023 ms, max=16.828 ms, 99th percentile=0.038 ms
18:19:31.177:  ┃ ┃ ┣gs_flush: min=0.002 ms, median=0.003 ms, max=1.092 ms, 99th percentile=0.006 ms
18:19:31.177:  ┃ ┃ ┗download_frame: min=0 ms, median=0.002 ms, max=0.046 ms, 99th percentile=0.003 ms
18:19:31.177:  ┃ ┗output_video_data: min=0.897 ms, median=1.274 ms, max=8.343 ms, 99th percentile=1.594 ms
18:19:31.178:  ┗render_displays: min=0.027 ms, median=0.232 ms, max=83.918 ms, 99th percentile=1.385 ms
18:19:31.178: video_thread(video): min=1.091 ms, median=1.547 ms, max=8.656 ms, 99th percentile=2.149 ms
18:19:31.178:  ┗receive_video: min=1.091 ms, median=1.546 ms, max=8.655 ms, 99th percentile=2.147 ms
18:19:31.178:    ┗do_encode: min=1.09 ms, median=1.546 ms, max=8.655 ms, 99th percentile=2.147 ms
18:19:31.178:      ┣encode(advanced_video_recording): min=1.088 ms, median=1.544 ms, max=8.653 ms, 99th percentile=2.144 ms
18:19:31.178:      ┗send_packet: min=0.001 ms, median=0.001 ms, max=0.146 ms, 99th percentile=0.002 ms
18:19:31.178: =================================================
18:19:31.178: == Profiler Time Between Calls ==================
18:19:31.178: obs_hotkey_thread(25 ms): min=25.068 ms, median=25.146 ms, max=114.192 ms, 99.2644% within ±2% of 25 ms (0% lower, 0.735551% higher)
18:19:31.178: obs_graphics_thread(33.3333 ms): min=4.704 ms, median=33.333 ms, max=94.121 ms, 99.3419% within ±2% of 33.333 ms (0.326948% lower, 0.33114% higher)
18:19:31.178: =================================================
18:19:31.188: Number of memory leaks: 0

Game log:

/bin/sh\0-c\0obs-gamecapture mangohud --dlsym taskset -c 0-11 /home/hello/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=108600 -- /home/hello/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/hello/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/hello/.local/share/Steam/steamapps/common/SteamLinuxRuntime'/scout-on-soldier-entry-point-v2 --  '/home/hello/.local/share/Steam/steamapps/common/ProjectZomboid/projectzomboid.sh' -Xmx24g\0
chdir "/home/hello/.local/share/Steam/steamapps/common/ProjectZomboid"
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/usr/$LIB/mangohud/libMangoHud_dlsym.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/$LIB/mangohud/libMangoHud_opengl.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.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.06 not fou
nd, ignoring: Missing dependencies: Could not find "libcrypto.so.1.1" in LD_LIBRARY_PATH "/usr/lib/libfakeroot:/opt/intel/oneapi/compiler/latest/linux/lib:/opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64_lin:/opt/intel/oneapi/tbb/latest/lib/intel64/gcc4.8:/usr/lib32:/usr/lib/opencollada:/usr/lib:/home/hello/.local/share/Steam/steamapps/common/ProjectZomboid:/usr/$LIB", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot b
e preloaded (cannot open shared object file): ignored.
pid 3858 != 3854, skipping destruction (fork without exec?)
pid 3863 != 3854, skipping destruction (fork without exec?)
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
pid 3885 != 3854, skipping destruction (fork without exec?)
64-bit java detected
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
[S_API] SteamAPI_Init(): Loaded '/home/hello/.local/share/Steam/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 108600
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198044148998 [API loaded no]
[2023-12-12 18:13:02.923] [MANGOHUD] [info] [gl_renderer.cpp:422] GL version: 4.6 
Game 108600 created interface STEAMUGC_INTERFACE_VERSION016 / 
Game 108600 created interface SteamController008 / 
Game 108600 created interface SteamInput006 / 
Game 108600 created interface SteamMatchMakingServers002 / 
Game 108600 created interface SteamUser021 / 
Game 108600 created interface SteamUser021 / User
Game 108600 created interface SteamUtils010 / 
Game 108600 method call count for IClientUGC::GetItemInstallInfo : 211
Game 108600 method call count for IClientUGC::GetItemState : 211
Game 108600 method call count for IClientUGC::GetSubscribedItems : 1
Game 108600 method call count for IClientUGC::GetNumSubscribedItems : 1
Game 108600 method call count for IClientUtils::RecordSteamInterfaceCreation : 9
Game 108600 method call count for IClientUtils::SetOverlayNotificationPosition : 1
Game 108600 method call count for IClientUtils::GetAppID : 11
Game 108600 method call count for IClientUser::GetSteamID : 1
Game 108600 method call count for IClientUser::BLoggedOn : 1
Uploaded AppInterfaceStats to Steam
nowrep commented 7 months ago

Try without mangohud,

Also make sure you have 32bit obs-vkcapture installed.

somewhatfrog commented 7 months ago

installed lib32-obs-vkcapture 1.4.7-1 tried without mangohud, same result same stuff in log

nowrep commented 7 months ago

This would suggest you're missing 32bit lib, or for some reason it can't find it.

ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

Does env LD_PRELOAD=/usr/lib32/libobs_glcapture.so work?

somewhatfrog commented 7 months ago
/bin/sh\0-c\0env LD_PRELOAD=/usr/lib32/libobs_glcapture.so obs-gamecapture taskset -c 0-11 /home/hello/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=108600 -- /home/hello/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/hello/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/hello/.local/share/Steam/steamapps/common/SteamLinuxRuntime'/scout-on-soldier-entry-point-v2 --  '/home/hello/.local/share/Steam/steamapps/common/ProjectZomboid/projectzomboid.sh' -Xmx24g\0
chdir "/home/hello/.local/share/Steam/steamapps/common/ProjectZomboid"
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libobs_glcapture.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.06 not found, ignoring: Missing dependencies: Could not find "libcrypto.so.1.1" in LD_LIBRARY_PATH "/usr/lib/libfakeroot:/opt/intel/oneapi/compiler/latest/linux/lib:/opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64_lin:/opt/intel/oneapi/tbb/latest/lib/intel64/gcc4.8:/usr/lib32:/usr/lib/opencollada:/usr/lib:/home/hello/.local/share/Steam/steamapps/common/ProjectZomboid:/usr/$LIB", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
ERROR: ld.so: object '/run/host/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/run/host/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/run/host/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/run/host/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/run/host/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/run/host/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
64-bit java detected
ERROR: ld.so: object '/run/host/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/run/host/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/run/host/usr/lib32/libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
[S_API] SteamAPI_Init(): Loaded '/home/hello/.local/share/Steam/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 108600
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198044148998 [API loaded no]

what is weird though prior to last update it did work with this game even without the lib32-obs-vkcapture (not sure if matters but game is 64bit)

Edit: just tried with another native OGL game, same thing

nowrep commented 7 months ago

Well if the game is 64bit then it doesn't matter if you have 32bit installed ans it shouldn't be used. Hard to say from the log which errors are actually from the game process.

somewhatfrog commented 7 months ago
/bin/sh\0-c\0obs-gamecapture taskset -c 0-11 /home/hello/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1055540 -- /home/hello/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/hello/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/hello/.local/share/Steam/steamapps/common/SteamLinuxRuntime'/scout-on-soldier-entry-point-v2 --  '/home/hello/.local/share/Steam/steamapps/common/A Short Hike/AShortHike.x86_64'\0
chdir "/home/hello/.local/share/Steam/steamapps/common/A Short Hike"
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/hello/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[2023-12-12 19:07:27] Manifest download: finished
[2023-12-12 19:07:27] Download skipped: /steam_client_ubuntu12?t=374259371 version 1702079146, installed version 1702079146, existing pending version 0
[2023-12-12 19:07:27] Nothing to do
x86_64-linux-gnu-capsule-capture-libs: warning: Dependencies of libnvidia-pkcs11.so.545.29.06 not found, ignoring: Missing dependencies: Could not find "libcrypto.so.1.1" in LD_LIBRARY_PATH "/usr/lib/libfakeroot:/opt/intel/oneapi/compiler/latest/linux/lib:/opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64_lin:/opt/intel/oneapi/tbb/latest/lib/intel64/gcc4.8:/usr/lib32:/usr/lib/opencollada:/usr/lib:/home/hello/.local/share/Steam/steamapps/common/A Short Hike:/usr/$LIB", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
pid 6441 != 6437, skipping destruction (fork without exec?)
pid 6446 != 6437, skipping destruction (fork without exec?)
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libobs_glcapture.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
[UnityMemory] Configuration Parameters - Can be set up in boot.config
    "memorysetup-bucket-allocator-granularity=16"
    "memorysetup-bucket-allocator-bucket-count=8"
    "memorysetup-bucket-allocator-block-size=4194304"
    "memorysetup-bucket-allocator-block-count=1"
    "memorysetup-main-allocator-block-size=16777216"
    "memorysetup-thread-allocator-block-size=16777216"
    "memorysetup-gfx-main-allocator-block-size=16777216"
    "memorysetup-gfx-thread-allocator-block-size=16777216"
    "memorysetup-cache-allocator-block-size=4194304"
    "memorysetup-typetree-allocator-block-size=2097152"
    "memorysetup-profiler-bucket-allocator-granularity=16"
    "memorysetup-profiler-bucket-allocator-bucket-count=8"
    "memorysetup-profiler-bucket-allocator-block-size=4194304"
    "memorysetup-profiler-bucket-allocator-block-count=1"
    "memorysetup-profiler-allocator-block-size=16777216"
    "memorysetup-profiler-editor-allocator-block-size=1048576"
    "memorysetup-temp-allocator-size-main=4194304"
    "memorysetup-job-temp-allocator-block-size=2097152"
    "memorysetup-job-temp-allocator-block-size-background=1048576"
    "memorysetup-job-temp-allocator-reduction-small-platforms=262144"
    "memorysetup-temp-allocator-size-background-worker=32768"
    "memorysetup-temp-allocator-size-job-worker=262144"
    "memorysetup-temp-allocator-size-preload-manager=262144"
    "memorysetup-temp-allocator-size-nav-mesh-worker=65536"
    "memorysetup-temp-allocator-size-audio-worker=65536"
    "memorysetup-temp-allocator-size-cloud-worker=32768"
    "memorysetup-temp-allocator-size-gfx=262144"

here's with another game

somewhatfrog commented 7 months ago

update: it starts to work if I run the second game "A short hike" without using compatibility tool "steam linux runtime 1.0 (scout)", but without it the first game in question "Project Zomboid" will constantly reset itself to using proton, because valve decided so it seems.

somewhatfrog commented 7 months ago

Fixed by using https://github.com/Scrumplex/Steam-Play-None instead of Steam Linux Runtime 1.0 (scout)

Can be closed I guess? Though I still don't understand why it stopped working at some point. Anyway, thank you!

nowrep commented 7 months ago

Maybe the scout runtime overrides library path, try env LD_PRELOAD=/usr/lib/libobs_glcapture.so

somewhatfrog commented 7 months ago

i did it as well when you suggested to try env LD_PRELOAD=/usr/lib32/libobs_glcapture.so to no success

nowrep commented 7 months ago

Strange, but mangohud works? So it should be possible to make this work too.

somewhatfrog commented 7 months ago

yep

nowrep commented 6 months ago

It works if you do cp /usr/lib32/libobs_glcapture.so /tmp and then use env LD_PRELOAD=/tmp/libobs_glcapture.so %command%.