zsh: unmatched / seg fault trying to launch obs with nv-sglrun.

Hello.

I'm trying to launch obs with nv-sglrun,but It fails (I'm using Wayland / Wayfire with the GTX 1060 gpu).

Code:
start-obs :

zsh << EOF
env LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`" obs
EOF

[marietto@marietto /compat]==> ./start-obs

shim init
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/locale/it-IT.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/it-IT.ini
info: Using preferred locale 'it-IT'
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/local/share/obs/obs-studio/themes/Yami.qss
warning: [Safe Mode] Unclean shutdown detected!
warning: [Safe Mode] User elected to launch normally.
info: Using EGL/X11
info: CPU Name: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
info: CPU Speed: 3600.00MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 31734MB Total, 22742MB Free
info: Kernel Version: FreeBSD 14.0-RELEASE-p5
info: Distribution: FreeBSD "14.0"
info: Session Type: wayland
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 6.6.2 (runtime), 6.6.1 (compiled)
info: Portable mode: false
info: OBS 30.0.2 (freebsd)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
    max buffering:   960 milliseconds
    buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter Mesa zink Vulkan 1.3(NVIDIA GeForce GTX 1060 3GB (NVIDIA_PROPRIETARY))
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 24.0.2, shading language 4.60
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1280x720
    downscale filter:  Bicubic
    fps:               30/1
    format:            NV12
    YUV mode:          Rec. 709/Partial
info: NV12 texture support not available
info: P010 texture support not available
info: Audio monitoring device:
    name: Predefinito
    id: default
info: ---------------------------------
info: [pipewire] No captures available
warning: v4l2loopback not installed, virtual camera disabled
info: NVENC supported
zsh: command not found: ld-linux-x86-64.so.2
zsh: command not found: libc.so.6
zsh: command not found: libdl.so.2
zsh: command not found: libm.so.6
zsh: command not found: libpthread.so.0
zsh: command not found: librt.so.1
zsh: command not found: bsd-librt.so.1
zsh: command not found: libcuda.so
zsh: command not found: libcuda.so.1
zsh: command not found: libcuda.so.535.146.02.pkgsave
zsh: command not found: libcuda.so.550.54.14
zsh: command not found: libnvcuvid.so
zsh: command not found: libnvcuvid.so.1
zsh: command not found: libnvcuvid.so.535.146.02.pkgsave
zsh: command not found: libnvcuvid.so.550.54.14
zsh: command not found: libnvidia-allocator.so
zsh: command not found: libnvidia-allocator.so.1
zsh: command not found: libnvidia-allocator.so.535.146.02.pkgsave
zsh: command not found: libnvidia-allocator.so.550.54.14
zsh: command not found: libnvidia-api.so.1
zsh: command not found: libnvidia-cfg.so
zsh: command not found: libnvidia-cfg.so.1
zsh: command not found: libnvidia-cfg.so.535.146.02.pkgsave
zsh: command not found: libnvidia-cfg.so.550.54.14
zsh: command not found: libnvidia-egl-gbm.so
zsh: command not found: libnvidia-egl-gbm.so.1
zsh: command not found: libnvidia-egl-gbm.so.1.1.1
zsh: command not found: libnvidia-egl-wayland.so.1
zsh: command not found: libnvidia-egl-wayland.so.1.1.13
zsh: command not found: libnvidia-eglcore.so.535.146.02.pkgsave
zsh: command not found: libnvidia-eglcore.so.550.54.14
zsh: command not found: libnvidia-encode.so
zsh: command not found: libnvidia-encode.so.1
zsh: command not found: libnvidia-encode.so.535.146.02.pkgsave
zsh: command not found: libnvidia-encode.so.550.54.14
zsh: command not found: libnvidia-fbc.so
zsh: command not found: libnvidia-fbc.so.1
zsh: command not found: libnvidia-fbc.so.535.146.02.pkgsave
zsh: command not found: libnvidia-fbc.so.550.54.14
zsh: command not found: libnvidia-glcore.so.535.146.02.pkgsave
zsh: command not found: libnvidia-glcore.so.550.54.14
zsh: command not found: libnvidia-glsi.so.535.146.02.pkgsave
zsh: command not found: libnvidia-glsi.so.550.54.14
zsh: command not found: libnvidia-glvkspirv.so.535.146.02.pkgsave
zsh: command not found: libnvidia-glvkspirv.so.550.54.14
zsh: command not found: libnvidia-gpucomp.so.550.54.14
zsh: command not found: libnvidia-gtk2.so.535.146.02.pkgsave
zsh: command not found: libnvidia-gtk2.so.550.54.14
zsh: command not found: libnvidia-gtk3.so.535.146.02.pkgsave
zsh: command not found: libnvidia-gtk3.so.550.54.14
zsh: command not found: libnvidia-ml.so
zsh: command not found: libnvidia-ml.so.1
zsh: command not found: libnvidia-ml.so.535.146.02.pkgsave
zsh: command not found: libnvidia-ml.so.550.54.14
zsh: command not found: libnvidia-ngx.so.1
zsh: command not found: libnvidia-ngx.so.535.146.02.pkgsave
zsh: command not found: libnvidia-ngx.so.550.54.14
zsh: command not found: libnvidia-nvvm.so
zsh: command not found: libnvidia-nvvm.so.4
zsh: command not found: libnvidia-nvvm.so.535.146.02.pkgsave
zsh: command not found: libnvidia-nvvm.so.550.54.14
zsh: command not found: libnvidia-opencl.so.1
zsh: command not found: libnvidia-opencl.so.535.146.02.pkgsave
zsh: command not found: libnvidia-opencl.so.550.54.14
zsh: command not found: libnvidia-opticalflow.so
zsh: command not found: libnvidia-opticalflow.so.1
zsh: command not found: libnvidia-opticalflow.so.535.146.02.pkgsave
zsh: command not found: libnvidia-opticalflow.so.550.54.14
zsh: command not found: libnvidia-pkcs11-openssl3.so.535.146.02
zsh: command not found: libnvidia-pkcs11.so.535.146.02
zsh: command not found: libnvidia-ptxjitcompiler.so
zsh: command not found: libnvidia-ptxjitcompiler.so.1
zsh: command not found: libnvidia-ptxjitcompiler.so.535.146.02.pkgsave
zsh: command not found: libnvidia-ptxjitcompiler.so.550.54.14
zsh: command not found: libnvidia-rtcore.so.535.146.02.pkgsave
zsh: command not found: libnvidia-rtcore.so.550.54.14
zsh: command not found: libnvidia-tls.so.535.146.02.pkgsave
zsh: command not found: libnvidia-tls.so.550.54.14
zsh: command not found: libnvidia-vulkan-producer.so
zsh: command not found: libnvidia-vulkan-producer.so.535.146.02
zsh: unmatched "

or :

marietto@marietto:/compat $ env LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`" obs
shim init
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/locale/it-IT.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/it-IT.ini
info: Using preferred locale 'it-IT'
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/local/share/obs/obs-studio/themes/Yami.qss
warning: [Safe Mode] Unclean shutdown detected!
warning: [Safe Mode] User elected to launch normally.
info: Using EGL/X11
info: CPU Name: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
info: CPU Speed: 3600.00MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 31734MB Total, 22405MB Free
info: Kernel Version: FreeBSD 14.0-RELEASE-p5
info: Distribution: FreeBSD "14.0"
info: Session Type: wayland
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 6.6.2 (runtime), 6.6.1 (compiled)
info: Portable mode: false
info: OBS 30.0.2 (freebsd)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
    max buffering:   960 milliseconds
    buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter Mesa zink Vulkan 1.3(NVIDIA GeForce GTX 1060 3GB (NVIDIA_PROPRIETARY))
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 24.0.2, shading language 4.60
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1280x720
    downscale filter:  Bicubic
    fps:               30/1
    format:            NV12
    YUV mode:          Rec. 709/Partial
info: NV12 texture support not available
info: P010 texture support not available
info: Audio monitoring device:
    name: Predefinito
    id: default
info: ---------------------------------
info: [pipewire] No captures available
warning: v4l2loopback not installed, virtual camera disabled
info: NVENC supported
Segmentation fault
 
~/.local/share/applications/com.obsproject.Studio.desktop

Code:
[Desktop Entry]
Version=1.0
Name=OBS
GenericName=Streaming/Recording Software
Comment=Free and Open Source Streaming/Recording Software
Exec=sh -c 'LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`" obs'
Icon=com.obsproject.Studio
Terminal=false
Type=Application
Categories=AudioVideo;Recorder;
StartupNotify=true
StartupWMClass=obs


in your ~/.zshenv do you have

Code:
export QT_QPA_PLATFORM=wayland

if you do comment it out

Code:
#export QT_QPA_PLATFORM=wayland
 
marietto@marietto:~ $ sh -c 'LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`" obs'

shim init
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/locale/it-IT.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/it-IT.ini
info: Using preferred locale 'it-IT'
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/local/share/obs/obs-studio/themes/Yami.qss
warning: [Safe Mode] Unclean shutdown detected!
warning: [Safe Mode] User elected to launch normally.
info: Using EGL/X11
info: CPU Name: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
info: CPU Speed: 3600.00MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 31734MB Total, 14455MB Free
info: Kernel Version: FreeBSD 14.0-RELEASE-p5
info: Distribution: FreeBSD "14.0"
info: Session Type: wayland
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 6.6.2 (runtime), 6.6.1 (compiled)
info: Portable mode: false
info: OBS 30.0.2 (freebsd)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 48000
speakers: 2
max buffering: 960 milliseconds
buffering type: dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter Mesa zink Vulkan 1.3(NVIDIA GeForce GTX 1060 3GB (NVIDIA_PROPRIETARY))
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 24.0.2, shading language 4.60
info: ---------------------------------
info: video settings reset:
base resolution: 1920x1080
output resolution: 1280x720
downscale filter: Bicubic
fps: 30/1
format: NV12
YUV mode: Rec. 709/Partial
info: NV12 texture support not available
info: P010 texture support not available
info: Audio monitoring device:
name: Predefinito
id: default
info: ---------------------------------
info: [pipewire] No captures available
warning: v4l2loopback not installed, virtual camera disabled
info: NVENC supported
Segmentation fault (core dumped)
 
Code:
marietto@marietto:~ $ env QT_QPA_PLATFORM=wayland

QT_QPA_PLATFORM=wayland
LOGNAME=marietto
MPD_HOST=/home/marietto/.config/mpd/socket
LANG=it_IT.UTF-8
PAGER=less
MAIL=/var/mail/marietto
PATH=/home/marietto/bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
EDITOR=vi
XDG_SESSION_TYPE=wayland
XDG_RUNTIME_DIR=/var/run/user/1001
ENV=/home/marietto/.shrc
LESSHISTFILE=/home/marietto/.config/less/history
_JAVA_AWT_WM_NONREPARENTING=1
DISPLAY=:0
OLDPWD=/home/marietto
SSH_AUTH_SOCK=/var/run/user/1001_/ssh-agent.socket
PWD=/home/marietto
_=LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`" obs
TERM=xterm
XDG_CACHE_HOME=/home/marietto/.cache
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-Oa50qb,guid=5285533b2a9b65ed9624
USER=marietto
HOME=/home/marietto
WLR_NO_HARDWARE_CURSORS=1
LC_COLLATE=C
GIO_LAUNCHED_DESKTOP_FILE=/usr/local/share/applications/lxterminal.desktop
XCURSOR_SIZE=24
MOZ_ENABLE_WAYLAND=1
WAYLAND_DISPLAY=wayland-1
MOZ_DISABLE_WAYLAND_PROXY=1
XDG_CONFIG_HOME=/home/marietto/.config
KEYTIMEOUT=1
SHELL=/bin/sh
WAYFIRE_CONFIG_FILE=/home/marietto/.config/wayfire.ini
QT_QPA_PLATFORMTHEME=qt5ct
MM_CHARSET=UTF-8
XDG_SESSION_COOKIE=marietto-1710233081
LESSKEY=/home/marietto/.config/less/keys
BLOCKSIZE=K
XDG_DATA_HOME=/home/marietto/.local/share
GIO_LAUNCHED_DESKTOP_FILE_PID=8533
SHLVL=1

marietto@marietto:~ $ sh -c 'LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`" obs'
shim init
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
 
you have qt5ct in the printenv

have you installed the following

Code:
sudo pkg install qt5ct qt5-wayland qt6-wayland adwaita-qt5 adwaita-qt6

then open qt5ct and select Adwaita as the theme
 
Bingo. I hadn't installed those packages. Now I did it and the error is disappeared. Unfortunately it crashes anyway.

Code:
marietto@marietto:~ sh -c 'LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`" obs'

shim init
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/locale/it-IT.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/it-IT.ini
info: Using preferred locale 'it-IT'
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/local/share/obs/obs-studio/themes/Yami.qss
warning: [Safe Mode] Unclean shutdown detected!
warning: [Safe Mode] User elected to launch normally.
info: Platform: Wayland
info: CPU Name: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
info: CPU Speed: 3600.00MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 31734MB Total, 14400MB Free
info: Kernel Version: FreeBSD 14.0-RELEASE-p5
info: Distribution: FreeBSD "14.0"
info: Session Type: wayland
info: Qt Version: 6.6.2 (runtime), 6.6.1 (compiled)
info: Portable mode: false
info: OBS 30.0.2 (freebsd)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
    max buffering:   960 milliseconds
    buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Using EGL/Wayland
info: Initialized EGL 1.5
info: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 550.54.14, shading language 3.30 NVIDIA via Cg compiler
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1280x720
    downscale filter:  Bicubic
    fps:               30/1
    format:            NV12
    YUV mode:          Rec. 709/Partial
info: NV12 texture support not available
info: P010 texture support not available
info: Audio monitoring device:
    name: Predefinito
    id: default
info: ---------------------------------
info: [pipewire] No captures available
warning: v4l2loopback not installed, virtual camera disabled
info: NVENC supported
Segmentation fault (core dumped)
 
did you reboot that might be needed
those package might also get vlc to work

i noticed [pipewire] No captures available
i also have that message in the log but obs still works
 
I'm trying to launch obs from Linux.

root@marietto:/home/marietto/Files# ./start-obs

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

do you know what are the packages that I should install in Linux ?
 
just use the freebsd version of obs and save yourself a lot of hassle
its the latest version, you have everything set up now

Code:
sudo pkg install obs-studio-30.0.2

id guess you will run into lots of issues trying to run the linux version of obs on freebsd
such as accessing the mic, recording the screen and getting the audio to work

there isnt any benefit to using the linux version
you can do nvenc recoding on the freebsd version of obs

note you dont need to fix with-glibc-shim
as shown in the video the typo has been fixed since i made the video

View: https://www.youtube.com/watch?v=q32F4udxgww


 
Code:
marietto@marietto:/compat $ pulseaudio --start --daemonize
W: [(null)] caps.c: Normally all extra capabilities would be dropped now, 
but that's impossible because PulseAudio was built without capabilities support.
 
Look at what happens on my secondary FreeBSD 14 installation :

Code:
[marietto@marietto /mnt/zroot3/home/marietto]==> sh -c 'LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`" obs'

shim init
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/locale/it-IT.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/it-IT.ini
info: Using preferred locale 'it-IT'
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/local/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: CPU Name: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
info: CPU Speed: 3600.00MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 31735MB Total, 2800MB Free
info: Kernel Version: FreeBSD 14.0-RELEASE-p5
info: Distribution: FreeBSD "14.0"
info: Session Type: wayland
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 6.6.2 (runtime), 6.6.2 (compiled)
info: Portable mode: false
info: OBS 30.0.2 (freebsd)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
    max buffering:   960 milliseconds
    buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter Mesa zink Vulkan 1.3(NVIDIA GeForce GTX 1060 3GB (NVIDIA_PROPRIETARY))
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 23.3.4, shading language 4.60
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Bicubic
    fps:               60/1
    format:            NV12
    YUV mode:          Rec. 709/Partial
info: NV12 texture support not available
info: P010 texture support not available
info: Audio monitoring device:
    name: Predefinito
    id: default
info: ---------------------------------
info: [pipewire] No captures available
warning: v4l2loopback not installed, virtual camera disabled
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): Shared object "libnvidia-encode.so.1" not found, required by "obs"

error: VAAPI: Failed to initialize display in vaapi_device_h264_supported
info: FFmpeg VAAPI H264 encoding not supported
error: VAAPI: Failed to initialize display in vaapi_device_hevc_supported
info: FFmpeg VAAPI HEVC encoding not supported
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.0.1 | RPC Version: 1)
info: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.6.2 | Qt version (run-time): 6.6.2
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 101201
info: [obs-websocket] [obs_module_load] Module loaded.
info: [vlc-video]: VLC 3.0.20 Vetinari found, VLC video source enabled
info: ---------------------------------
info:   Loaded Modules:
info:     vlc-video.so
info:     text-freetype2.so
info:     sndio.so
info:     rtmp-services.so
info:     oss-audio.so
info:     obs-x264.so
info:     obs-websocket.so
info:     obs-webrtc.so
info:     obs-transitions.so
info:     obs-outputs.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-pipewire.so
info:     linux-jack.so
info:     linux-capture.so
info:     libwlrobs.so
info:     image-source.so
info:     frontend-tools.so
info: ---------------------------------
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
error: pulse-input: Unable to get server info !
info: [Loaded global audio device]: 'Audio del desktop'
error: pulse-input: Unable to get server info !
info: [Loaded global audio device]: 'Microfono/disp. ausiliario'
info: Switched to scene 'Scena'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scena':
info: ------------------------------------------------
info: [rtmp-services plugin] Successfully updated file 'services.json' (version 247)
info: [rtmp-services plugin] Successfully updated package (version 247)
MESA: error: CreateSwapchainKHR failed with VK_ERROR_OUT_OF_DEVICE_MEMORY
MESA: error: zink: could not create swapchain
[1]    4689 segmentation fault (core dumped)  sh -c 'LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`" obs'

I suspect that even on the system 1,the problem that I have is related to MESA :

Code:
MESA: error: CreateSwapchainKHR failed with VK_ERROR_OUT_OF_DEVICE_MEMORY
MESA: error: zink: could not create swapchain
 
Failed to create wl_display (No such file or directory)

error at the top seems to suggests wayland isnt set up

Could not load the Qt platform plugin "wayland" in ""

looks like you are missing the packages for wayland you installed on the other machine

Shared object "libnvidia-encode.so.1" not found, required by "obs"

maybe missing an nvidia package

why not compare the packages you have installed on both machines and see whats missing

you can export a list of the packages you have installed on both machines with pkg prime-list

Code:
pkg prime-list > pkg-prime-list.txt

export a prime list on both machines and then diff the files
and that should narrowed down if you are missing any packages
 
not sure this will work but might be worth a shot

to get Davinci Resolve working on Linux i always have to use some settings for Nvidia
in my ~/.zshenv

i wonder if they might fix your issue

edit your ~/.zshenv

Code:
~/.zshenv

then add the following code to your ~/.zshenv

Code:
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia

source your ~/.zshenc

Code:
source ~/.zshenv

then try opening obs in the same terminal that your used to source the ~/.zshenv file

Code:
obs

only other thing i can think of

from this page

 
Can you make the list of the packages on your system,please ? and send it to me. In this way I'm sure what I should install.
 
Here I am.

After two days of work trying to launch obs,I've been able to reach the goal only on my secondary FreeBSD 14 system. Really I don't know what I did. I tried to repeat the steps also on the system n. 1,but I failed. It means that there are different reasons why obs is not able to run. Actually the error that it gives is

Code:
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): Shared object "libc.so.6" not found, required by "libnvidia-encode.so.1"

and then it stops like this :

Code:
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/locale/it-IT.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/it-IT.ini
info: Using preferred locale 'it-IT'
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/local/share/obs/obs-studio/themes/Yami.qss
warning: [Safe Mode] Unclean shutdown detected!
warning: [Safe Mode] User elected to launch normally.
info: Platform: Wayland
info: CPU Name: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
info: CPU Speed: 3600.00MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 31734MB Total, 30600MB Free
info: Kernel Version: FreeBSD 14.0-RELEASE-p5
info: Distribution: FreeBSD "14.0"
info: Session Type: wayland
info: Qt Version: 6.6.2 (runtime), 6.6.2 (compiled)
info: Portable mode: false
info: OBS 30.0.2 (freebsd)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
    max buffering:   960 milliseconds
    buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Using EGL/Wayland
info: Initialized EGL 1.5
info: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 550.54.14, shading language 3.30 NVIDIA via Cg compiler
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1280x720
    downscale filter:  Bicubic
    fps:               30/1
    format:            NV12
    YUV mode:          Rec. 709/Partial
info: NV12 texture support not available
info: P010 texture support not available
info: Audio monitoring device:
    name: Predefinito
    id: default
info: ---------------------------------
info: [pipewire] No captures available
warning: v4l2loopback not installed, virtual camera disabled
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): Shared object "libc.so.6" not found, required by "libnvidia-encode.so.1"

[1]    5059 segmentation fault (core dumped)  obs

my idea to understand what's missing is : since I have the system n. 2 (on ufs fs) where it works,can I make some tests there to understand what works there but does not work on the system n. 1 (zfs) ? which kind of tests can I do ? or maybe can I swap some relevant files and folders from the system 2 to the system 1 ? I need to fix the error on the system 1,because is the most important for me. And I want to understand.
 
On the broken system :

Code:
[marietto@marietto /compat]==> nv-sglrun printenv LD_LIBMAP | grep -v libGL

ld-linux.so.2                            /usr/local/lib/libc6-shim/libc6.so
ld-linux-x86-64.so.2                     /usr/local/lib/libc6-shim/libc6.so
libc.so.6                                /usr/local/lib/libc6-shim/libc6.so
libdl.so.2                               /usr/local/lib/libc6-shim/libc6.so
libm.so.6                                /usr/local/lib/libc6-shim/libc6.so
libpthread.so.0                          /usr/local/lib/libc6-shim/libc6.so
librt.so.1                               /usr/local/lib/libc6-shim/libc6.so
bsd-librt.so.1                           /lib/librt.so.1
libcuda.so                               /compat/linux/usr/lib64/libcuda.so
libcuda.so.1                             /compat/linux/usr/lib64/libcuda.so.1
libcuda.so.550.54.14                     /compat/linux/usr/lib64/libcuda.so.550.54.14
libnvcuvid.so                            /compat/linux/usr/lib64/libnvcuvid.so
libnvcuvid.so.1                          /compat/linux/usr/lib64/libnvcuvid.so.1
libnvcuvid.so.550.54.14                  /compat/linux/usr/lib64/libnvcuvid.so.550.54.14
libnvidia-allocator.so                   /compat/linux/usr/lib64/libnvidia-allocator.so
libnvidia-allocator.so.1                 /compat/linux/usr/lib64/libnvidia-allocator.so.1
libnvidia-allocator.so.550.54.14         /compat/linux/usr/lib64/libnvidia-allocator.so.550.54.14
libnvidia-api.so.1                       /compat/linux/usr/lib64/libnvidia-api.so.1
libnvidia-cfg.so                         /compat/linux/usr/lib64/libnvidia-cfg.so
libnvidia-cfg.so.1                       /compat/linux/usr/lib64/libnvidia-cfg.so.1
libnvidia-cfg.so.550.54.14               /compat/linux/usr/lib64/libnvidia-cfg.so.550.54.14
libnvidia-egl-gbm.so                     /compat/linux/usr/lib64/libnvidia-egl-gbm.so
libnvidia-egl-gbm.so.1                   /compat/linux/usr/lib64/libnvidia-egl-gbm.so.1
libnvidia-egl-gbm.so.1.1.1               /compat/linux/usr/lib64/libnvidia-egl-gbm.so.1.1.1
libnvidia-egl-wayland.so.1               /compat/linux/usr/lib64/libnvidia-egl-wayland.so.1
libnvidia-egl-wayland.so.1.1.13          /compat/linux/usr/lib64/libnvidia-egl-wayland.so.1.1.13
libnvidia-eglcore.so.550.54.14           /compat/linux/usr/lib64/libnvidia-eglcore.so.550.54.14
libnvidia-encode.so                      /compat/linux/usr/lib64/libnvidia-encode.so
libnvidia-encode.so.1                    /compat/linux/usr/lib64/libnvidia-encode.so.1
libnvidia-encode.so.550.54.14            /compat/linux/usr/lib64/libnvidia-encode.so.550.54.14
libnvidia-fbc.so                         /compat/linux/usr/lib64/libnvidia-fbc.so
libnvidia-fbc.so.1                       /compat/linux/usr/lib64/libnvidia-fbc.so.1
libnvidia-fbc.so.550.54.14               /compat/linux/usr/lib64/libnvidia-fbc.so.550.54.14
libnvidia-glcore.so.550.54.14            /compat/linux/usr/lib64/libnvidia-glcore.so.550.54.14
libnvidia-glsi.so.550.54.14              /compat/linux/usr/lib64/libnvidia-glsi.so.550.54.14
libnvidia-glvkspirv.so.550.54.14         /compat/linux/usr/lib64/libnvidia-glvkspirv.so.550.54.14
libnvidia-gpucomp.so.550.54.14           /compat/linux/usr/lib64/libnvidia-gpucomp.so.550.54.14
libnvidia-gtk2.so.550.54.14              /compat/linux/usr/lib64/libnvidia-gtk2.so.550.54.14
libnvidia-gtk3.so.550.54.14              /compat/linux/usr/lib64/libnvidia-gtk3.so.550.54.14
libnvidia-ml.so                          /compat/linux/usr/lib64/libnvidia-ml.so
libnvidia-ml.so.1                        /compat/linux/usr/lib64/libnvidia-ml.so.1
libnvidia-ml.so.550.54.14                /compat/linux/usr/lib64/libnvidia-ml.so.550.54.14
libnvidia-ngx.so.1                       /compat/linux/usr/lib64/libnvidia-ngx.so.1
libnvidia-ngx.so.550.54.14               /compat/linux/usr/lib64/libnvidia-ngx.so.550.54.14
libnvidia-nvvm.so                        /compat/linux/usr/lib64/libnvidia-nvvm.so
libnvidia-nvvm.so.4                      /compat/linux/usr/lib64/libnvidia-nvvm.so.4
libnvidia-nvvm.so.550.54.14              /compat/linux/usr/lib64/libnvidia-nvvm.so.550.54.14
libnvidia-opencl.so.1                    /compat/linux/usr/lib64/libnvidia-opencl.so.1
libnvidia-opencl.so.550.54.14            /compat/linux/usr/lib64/libnvidia-opencl.so.550.54.14
libnvidia-opticalflow.so                 /compat/linux/usr/lib64/libnvidia-opticalflow.so
libnvidia-opticalflow.so.1               /compat/linux/usr/lib64/libnvidia-opticalflow.so.1
libnvidia-opticalflow.so.550.54.14       /compat/linux/usr/lib64/libnvidia-opticalflow.so.550.54.14
libnvidia-pkcs11-openssl3.so.535.146.02  /compat/linux/usr/lib64/libnvidia-pkcs11-openssl3.so.535.146.02
libnvidia-pkcs11.so.535.146.02           /compat/linux/usr/lib64/libnvidia-pkcs11.so.535.146.02
libnvidia-ptxjitcompiler.so              /compat/linux/usr/lib64/libnvidia-ptxjitcompiler.so
libnvidia-ptxjitcompiler.so.1            /compat/linux/usr/lib64/libnvidia-ptxjitcompiler.so.1
libnvidia-ptxjitcompiler.so.550.54.14    /compat/linux/usr/lib64/libnvidia-ptxjitcompiler.so.550.54.14
libnvidia-rtcore.so.550.54.14            /compat/linux/usr/lib64/libnvidia-rtcore.so.550.54.14
libnvidia-tls.so.550.54.14               /compat/linux/usr/lib64/libnvidia-tls.so.550.54.14
libnvidia-vulkan-producer.so             /compat/linux/usr/lib64/libnvidia-vulkan-producer.so
libnvidia-vulkan-producer.so.535.146.02  /compat/linux/usr/lib64/libnvidia-vulkan-producer.so.535.146.02
libnvidia-wayland-client.so.535.146.02   /compat/linux/usr/lib64/libnvidia-wayland-client.so.535.146.02
 
i have these nvidia packages installed

Code:
ffnvcodec-headers-12.0.16.1    FFmpeg version of Nvidia Codec SDK headers
libva-nvidia-driver-0.0.11     NVDEC-based backend for VAAPI
nvidia-driver-535.146.02       NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-drm-515-kmod-535.146.02_2 NVIDIA DRM Kernel Module
nvidia-settings-535.146.02     Display Control Panel for X NVidia driver
linux-nvidia-libs-535.146.02   NVidia graphics libraries and programs (Linux version)
 
Back
Top