Skip to content

OBS Studio Crashes on Arch Linux after selecting screen (pipewire) #9617

Closed

Description

@mylinuxforwork

Operating System Info

Other

Other OS

Arch Linux

OBS Studio Version

29.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/WKUljs7PfSQdNJ9W

OBS Studio Crash Log URL

No response

Expected Behavior

Full screen recording on selected monitor.

Current Behavior

Crashes immediately after selecting a screen with pipewire on Hyprland/Wayland.

Steps to Reproduce

  1. Open OBS Studio
  2. Add pipewire as a source
  3. Select a screen
  4. Crash
    ...

Anything else we should know?

Worked everything before the current full Arch Linux update. Maybe something in combination of OBS Studio and pipewire?
Using Hyprland on Wayland with pipewire 0.3.80

Activity

  1. kkartaltepe commented on Sep 21, 2023

    @kkartaltepe
    Collaborator

    Please provide a backtrace from gdb

  2. added
    platform/linux
    on Sep 21, 2023
  3. mylinuxforwork commented on Sep 21, 2023

    @mylinuxforwork
    Author

    Sorry, but how to get this backtrace?

  4. kkartaltepe commented on Sep 21, 2023

    @kkartaltepe
    Collaborator

    To make a backtrace with gdb. Open a terminal and run gdb obs, if it asks Enable debuginfod for this session? you can enter y if you have good internet and want to provide more info. Then you will be at a prompt where you can start obs by entering run.

    Trigger the crash in obs and then then go back to the terminal and you should have the prompt again. You can now get the backtrace by entering bt at the prompt. Copy the entire output here.

  5. kkartaltepe commented on Sep 21, 2023

    @kkartaltepe
    Collaborator

    This one should be fixed in #8993 try using the beta via the ppa or flatpak.

  6. jonhoo commented on Oct 19, 2023

    @jonhoo

    I'm using a build of Git HEAD (also on Arch), and am seeing what appears to be nearly the same crash:

    (lldb) bt
    * thread #28, name = 'PipeWire thread', stop reason = signal SIGSEGV: invalid address (fault address: 0x30)
      * frame #0: 0x00007fffc7e3e8ec linux-pipewire.so`renegotiate_format(data=0x0000555557a102e0, expirations=<unavailable>) at pipewire.c:631:2
        frame #1: 0x00007fffbffe4cc9 libspa-support.so`source_event_func(source=0x00005555574dcc60) at loop.c:663:2
        frame #2: 0x00007fffbffe6666 libspa-support.so`loop_iterate(object=0x00005555574af308, timeout=<unavailable>) at loop.c:496:4
        frame #3: 0x00007fff88cda14d libpipewire-0.3.so.0`do_loop(user_data=0x0000555557315260) at thread-loop.c:295:14
        frame #4: 0x00007ffff3eaa9eb libc.so.6`start_thread(arg=<unavailable>) at pthread_create.c:444:8
        frame #5: 0x00007ffff3f2e7cc libc.so.6`__clone3 at clone3.S:78
    

    The crash happens after the second time I select the screen (I'm not sure why, but OBS always asks me twice for which screen to use on start-up).

    I'm running:

    • obs-studio @ b29a44a
    • pipewire: 0.3.82
    • hyprland: 0.30.0
    • xdg-desktop-portal-hyprland: 1.2.2

    on Arch Linux. The logs just prior to the crash are:

    09:01:45.260: [pipewire] Asking for desktop
    09:01:46.292: [pipewire] Asking for desktop
    09:01:46.293: [pipewire] desktop selected, setting up screencast
    09:01:46.294: [pipewire] desktop selected, setting up screencast
    09:01:46.565: [pipewire] Server version: 0.3.82
    09:01:46.565: [pipewire] Library version: 0.3.82
    09:01:46.565: [pipewire] Header version: 0.3.82
    09:01:46.565: [pipewire] Created stream 0x5555574dccd0
    09:01:46.565: [pipewire] Stream 0x5555574dccd0 state: "connecting" (error: none)
    09:01:46.566: [pipewire] Playing stream 0x5555574dccd0
    09:01:46.602: [pipewire] Stream 0x5555574dccd0 state: "paused" (error: none)
    09:01:46.603: [pipewire] Server version: 0.3.82
    09:01:46.603: [pipewire] Library version: 0.3.82
    09:01:46.603: [pipewire] Header version: 0.3.82
    09:01:46.603: [pipewire] Negotiated format:
    09:01:46.603: [pipewire]     Format: 8 (Spa:Enum:VideoFormat:BGRx)
    09:01:46.603: [pipewire]     Modifier: 0x0
    09:01:46.603: [pipewire]     Size: 3840x2160
    09:01:46.603: [pipewire]     Framerate: 0/1
    09:01:46.603: [pipewire] Created stream 0x555557511cf0
    09:01:46.603: [pipewire] Stream 0x555557511cf0 state: "connecting" (error: none)
    09:01:46.603: [pipewire] Playing stream 0x555557511cf0
    09:01:46.603: [pipewire] Stream 0x555557511cf0 state: "paused" (error: none)
    09:01:46.603: [pipewire] Negotiated format:
    09:01:46.603: [pipewire]     Format: 8 (Spa:Enum:VideoFormat:BGRx)
    09:01:46.603: [pipewire]     Modifier: 0x200000028a37f04
    09:01:46.603: [pipewire]     Size: 3840x2160
    09:01:46.603: [pipewire]     Framerate: 0/1
    09:01:46.604: [pipewire] Stream 0x5555574dccd0 state: "streaming" (error: none)
    09:01:46.605: [pipewire] Negotiated format:
    09:01:46.605: [pipewire]     Format: 8 (Spa:Enum:VideoFormat:BGRx)
    09:01:46.605: [pipewire]     Modifier: 0x0
    09:01:46.605: [pipewire]     Size: 3840x2160
    09:01:46.605: [pipewire]     Framerate: 0/1
    09:01:46.606: [pipewire] Negotiated format:
    09:01:46.606: [pipewire]     Format: 8 (Spa:Enum:VideoFormat:BGRx)
    09:01:46.606: [pipewire]     Modifier: 0x200000028a37f04
    09:01:46.606: [pipewire]     Size: 3840x2160
    09:01:46.606: [pipewire]     Framerate: 0/1
    09:01:46.623: Cannot create EGLImage: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a valid surface).
    09:01:46.623: [pipewire] Renegotiating stream
    

    If I remove all the pipewire inputs from my scene JSON config, then OBS starts just fine (and doesn't prompt me to select a screen). If I then try to add a window capture via Pipewire, it crashes again (after I select the screen).

  7. kkartaltepe commented on Oct 19, 2023

    @kkartaltepe
    Collaborator

    This looks like a different crash, please open a new issue with this content.

  8. jonhoo commented on Oct 19, 2023

    @jonhoo

    Filed #9733

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform/linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions