obsproject / obsproject/obs-studio

OBS core dump when using integrated gpu on wayland

Open
#11,012 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/dependency platform/linux
Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Other

Other OS

Arch Linux

OBS Studio Version

Other

OBS Studio Version (Other)

Flatapak 30.2.0

OBS Studio Log URL

https://obsproject.com/logs/TTOMTHf2S5ROE03W

OBS Studio Crash Log URL

No response

Expected Behavior

For OBS to use the integrated GPU as default

Current Behavior

Window pops up then disappears (core dump)

Steps to Reproduce
  1. Boot system with initial GPU device as the dedicated card
  2. run DRI_PRIME=1 com.obsproject.Studio (set DRI_PRIME to non-default iGPU)
  3. A window should pop up then close immediately after
Anything else we should know?

Specs:
AMD Ryzen 7600
Sapphire Nitro+ 8G RX580
Gigabyte Technology Co., Ltd. B650 EAGLE AX

Relevant systemd logs:

Jul 20 01:36:29 radon systemd[1389]: Started app-flatpak-com.obsproject.Studio-9525.scope.
Jul 20 01:36:29 radon gnome-shell[1679]: Couldn't retrieve the supported modifiers
Jul 20 01:36:29 radon gnome-shell[1679]: Couldn't retrieve the supported modifiers
Jul 20 01:36:29 radon kernel: libobs: graphic[9589]: segfault at 0 ip 0000000000000000 sp 000073b4e39feff8 error 14 in obs[599f74254000+7a000] likely on CPU 4 (core 4, socket 0)
Jul 20 01:36:29 radon kernel: Code: Unable to access opcode bytes at 0xffffffffffffffd6.
Jul 20 01:36:29 radon systemd-coredump[9713]: Process 9556 (obs) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Jul 20 01:36:30 radon systemd[1]: Started Process Core Dump (PID 9713/UID 0).
Jul 20 01:36:30 radon systemd-coredump[9714]: [🡕] Process 9556 (obs) of user 1000 dumped core.
                                              
                                              Stack trace of thread 29:
                                              #0  0x0000000000000000 n/a (n/a + 0x0)
                                              #1  0x000073b526b8ae18 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/libEGL_mesa.so.0.0.0 + 0x2ee18)
                                              #2  0x000073b526b8b523 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/libEGL_mesa.so.0.0.0 + 0x2f523)
                                              #3  0x000073b50dcb81a5 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_dri.so + 0xb81a5)
                                              #4  0x000073b50dcb8255 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_dri.so + 0xb8255)
                                              #5  0x000073b50dcbb726 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_dri.so + 0xbb726)
                                              #6  0x000073b50dd8d705 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_dri.so + 0x18d705)
                                              #7  0x000073b50dd8e2b1 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_dri.so + 0x18e2b1)
                                              #8  0x000073b50dcbb300 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_dri.so + 0xbb300)
                                              #9  0x000073b50dcbee12 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_dri.so + 0xbee12)
                                              #10 0x000073b526b8283d n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/libEGL_mesa.so.0.0.0 + 0x2683d)
                                              #11 0x000073b526b72f23 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/libEGL_mesa.so.0.0.0 + 0x16f23)
                                              #12 0x000073b534530531 n/a (/usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0 + 0x5531)
                                              #13 0x000073b526bcc285 n/a (/app/lib/libobs-opengl.so.30.2.0 + 0x16285)
                                              #14 0x000073b53987c866 n/a (/app/lib/libobs.so.30.2.0 + 0x3f866)
                                              #15 0x000073b5398c5da8 n/a (/app/lib/libobs.so.30.2.0 + 0x88da8)
                                              #16 0x000073b5398c67d8 n/a (/app/lib/libobs.so.30.2.0 + 0x897d8)
                                              #17 0x000073b5346a1e39 n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x8ee39)
                                              #18 0x000073b5347299c4 n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x1169c4)
                                              ELF object binary architecture: AMD x86-64
Jul 20 01:36:30 radon systemd[1]: systemd-coredump@6-9713-0.service: Deactivated successfully.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash with DRI_PRIME=1 com.obsproject.Studio on the reported Arch Linux and Wayland setup, then trace the provided stack through libobs-opengl.so and libobs.so. Compare startup behavior with the default GPU; done means OBS remains open and uses the integrated GPU without a core dump.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
computer-graphics, desktop, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.