~scoopta/wlrobs#3:
OBS crashes when external monitor is hooked up

The plugin is working great when only my laptop screen is enabled. However, when hooking up my external monitor (DisplayPort, 3440x1440), OBS won't start anymore.

Here's the output:

Using Wayland-EGL Attempted path: share/obs/obs-studio/locale/en-US.ini Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini Attempted path: share/obs/obs-studio/locale.ini Attempted path: /usr/share/obs/obs-studio/locale.ini Attempted path: share/obs/obs-studio/themes/Dark.qss Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss info: CPU Name: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz info: CPU Speed: 3533.761MHz info: Physical Cores: 4, Logical Cores: 8 info: Physical Memory: 7720MB Total, 6379MB Free info: Kernel Version: Linux 5.0.9-arch1-1-ARCH info: Distribution: Arch Linux Unknown info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.4 info: Portable mode: false QMetaObject::connectSlotsByName: No matching signal for onadvAudioPropsclicked() QMetaObject::connectSlotsByName: No matching signal for onadvAudioPropsdestroyed() QMetaObject::connectSlotsByName: No matching signal for onprogramcustomContextMenuRequested(QPoint) info: OBS 23.1.0-1 (linux) info: --------------------------------- info: --------------------------------- info: audio settings reset: samples per sec: 44100 speakers: 2 info: --------------------------------- info: Initializing OpenGL... info: Loading up OpenGL on adapter Intel Open Source Technology Center Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2) info: OpenGL loaded successfully, version 4.5 (Core Profile) Mesa 19.0.3, shading language 4.50 info: --------------------------------- info: video settings reset: base resolution: 2560x1440 output resolution: 1280x720 downscale filter: Bicubic fps: 60/1 format: NV12 YUV mode: 601/Partial info: NV12 texture support not available info: Audio monitoring device: name: Default id: default info: --------------------------------- warning: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so' libDeckLinkAPI.so: cannot open shared object file: No such file or directory info: No blackmagic support error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory

info: FFMPEG VAAPI supported error: os_dlopen(/usr//lib/obs-plugins/obs-libfdk.so->/usr//lib/obs-plugins/obs-libfdk.so): libfdk-aac.so.2: cannot open shared object file: No such file or directory

warning: Module '/usr//lib/obs-plugins/obs-libfdk.so' not loaded error: os_dlopen(libvlc.so.5->libvlc.so.5): libvlc.so.5: cannot open shared object file: No such file or directory

info: Couldn't find VLC installation, VLC video source disabled info: --------------------------------- info: Loaded Modules: info: libwlrobs.so info: vlc-video.so info: text-freetype2.so info: rtmp-services.so info: obs-x264.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-jack.so info: linux-decklink.so info: linux-capture.so info: linux-alsa.so info: image-source.so info: frontend-tools.so info: decklink-ouput-ui.so info: --------------------------------- info: ==== Startup complete =============================================== error: Service '' not found info: All scene data cleared info: ------------------------------------------------ info: pulse-input: Server name: 'pulseaudio 12.2' info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels info: pulse-input: Started recording from 'alsaoutput.pci-0000001f.3.hdmi-stereo-extra1.monitor' info: pulse-input: Server name: 'pulseaudio 12.2' info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels info: pulse-input: Started recording from 'alsaoutput.pci-0000001f.3.hdmi-stereo-extra1.monitor' info: Switched to scene 'Scene' info: ------------------------------------------------ info: Loaded scenes: info: - scene 'Scene': info: - source: 'Wayland output' (wlrobs) info: ------------------------------------------------ dup failed: Bad file descriptor zsh: abort (core dumped) obs

Status
RESOLVED FIXED
Submitter
~adem
Assigned to
Submitted
7 months ago
Updated
a month ago
Labels
bug

~adem 7 months ago

Oh dear, didn't expect the formatting to be this messed up.

~scoopta 7 months ago

Could you possibly build and run the debug version of the plugin? It'll require you to LD_PRELOAD libasan but it'll give me a really good idea of what's going on. To do so follow the build instructions in the README but cd into wlrobs/Debug instead of wlrobs/Release. Copy libwlrobs.so to your plugins folder and then run OBS with

LD_PRELOAD=/usr/lib/libasan.so obs

If you don't set the preload it'll crash and complain telling you that you need to do it. Also the formatting isn't that big of a deal, I can sort through it but you can always use hastebin or something if you want it to be cleaner.

~adem 7 months ago

Done, hopefully this will help you: https://hastebin.com/raw/kazipikiya

~scoopta 7 months ago

I actually might have just run into this myself, can you run with WAYLAND_DEBUG=1 and send the output, if your issue is what I think it is then this should be fixed very shortly

~scoopta 7 months ago

I won't mark this as fixed till you confirm but it should be fixed by fcf58b12daf1

~adem 7 months ago

I can confirm that the the latest commit has fixed the issue, thanks for your help!

~scoopta REPORTED FIXED 7 months ago

fixed by fcf58b12daf1

Przemo Firszt referenced this from #8 a month ago

Register here or Log in to comment, or comment via email.