hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
273 stars 47 forks source link

OBS 29.1.3 crashing on screen/window sharing #112

Closed 31JSON closed 11 months ago

31JSON commented 11 months ago

On arch, there were recent updates to OBS, xdg-desktop-portal-hyprland, and pipewire. Now OBS is again crashing when trying to screen or window share.

Versions: obs-studio-tytan652 29.1.3-5 xdg-desktop-portal-hyprland 1.2.1-1 pipewire 1:0.3.81-1

GPUs: Intel and AMD

Tail of the OBS log:

info: PipeWire initialized
info: [pipewire] Screencast session created
info: [pipewire] Asking for desktop
info: [pipewire] desktop selected, setting up screencast
error: bmalloc: Allocating 0 bytes is broken behavior, please fix your code! This will crash in future versions of OBS.
error: bmalloc: Allocating 0 bytes is broken behavior, please fix your code! This will crash in future versions of OBS.
error: bmalloc: Allocating 0 bytes is broken behavior, please fix your code! This will crash in future versions of OBS.
error: bmalloc: Allocating 0 bytes is broken behavior, please fix your code! This will crash in future versions of OBS.
info: [pipewire] Server version: 0.3.81
info: [pipewire] Library version: 0.3.81
info: [pipewire] Header version: 0.3.81
info: [pipewire] Created stream 0x5588ea5f4ab0
info: [pipewire] Stream 0x5588ea5f4ab0 state: "connecting" (error: none)
info: [pipewire] Playing stream 0x5588ea5f4ab0
info: [pipewire] Stream 0x5588ea5f4ab0 state: "paused" (error: none)
info: [pipewire] Negotiated format:
info: [pipewire]     Format: 7 (Spa:Enum:VideoFormat:RGBx)
info: [pipewire]     Size: 1912x1157
info: [pipewire]     Framerate: 0/1
info: [pipewire] Stream 0x5588ea5f4ab0 state: "streaming" (error: none)
[1]    17111 segmentation fault (core dumped)  obs
vaxerski commented 11 months ago

do you have mbedtls2 installed?

31JSON commented 11 months ago

No, it is not installed. Does it need to be?

vaxerski commented 11 months ago

for wl_shm, yes

31JSON commented 11 months ago

wl_shm isn't installed either. Or rather, what is it? It's not called as a dependency for any installed package.

31JSON commented 11 months ago

Installing mbedtls2 and restarting did not fix the issue.

Let me know if there is any other information I can provide that would be helpful.

vaxerski commented 11 months ago

well the issue seems to be on your side if anything. Works just fine for me. Does it also happen with xdpw?

31JSON commented 11 months ago

I did a clean install on another computer and it seems to work normally. The install on my streaming computer is an older one from the kernel version 5 days, but is always kept up to date. On the new install, mbedtls2 was pulled in. What I don't understand is that looking at the output of pacman -Sii mbedtls2 shows 必要パッケージ : godot haxe julia neko retroarch. Are any of these related to xdph?

vaxerski commented 11 months ago

nope, shouldnt be. mbedtls2 is an obs dep anyways, not xdph.

Likely its an obs issue here.

jonhoo commented 11 months ago

I've reported this upstream at https://github.com/obsproject/obs-studio/issues/9733

jonhoo commented 11 months ago

Fixed upstream in https://github.com/obsproject/obs-studio/pull/9774 (which will be included in OBS 30).