Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBS Studio crashes with SIGBUS when recording or streaming Linux native games #125

Open
PaddyMac opened this issue Nov 25, 2024 · 2 comments

Comments

@PaddyMac
Copy link

I am running Gentoo Linux with Plasma 6.2.3 on Wayland, and I have an Intel Arc A380 graphics card. Mesa 24.3.0, intel-vaapi-driver 2.4.1, Intel media driver 24.4.3, libva 2.22.0, vpl-gpu-rt 24.4.2, libvpl 2.13.0, gmmlib 22.5.4.

Whether I'm running OBS Studio 30.2.3 or the current 31.0.0-rc1 (I haven't tested other versions since I ran into this issue), OBS Studio will crash with a SIGBUS error within a very few minutes of beginning to record or stream a Linux native game. I've only tested a few games which have both Linux native and Windows versions available. I can run the Windows version of a game with Proton in Steam and either record or stream the game with very rare crashes but then switch to the Linux version of the same game and experience repeated crashes often within 1 or 2 minutes of beginning to stream or record.

I used coredumpctl debug to get some basic debug output which I will attach to the report. The problem does seem to be in gmmlib or one of the other Intel driver's.

gmmlib-coredump.txt

@johnmach
Copy link
Contributor

johnmach commented Dec 1, 2024

Hi @PaddyMac,
Thank you for raising this and providing some info. We will look into this.

I would need some more info about the issue:

  1. On which Platform do you see this?
  2. Can you provide some info on the build environment? Ex: compiler version and the flags used? Or the repro environment?
  3. Do you have some Isolation? On which gmmlib tag version you found this passing last time? This is important to streamline the debug.
  4. Could you please share more debug logs with symbol enabled for gmmlib and media-driver as well.
  5. Or any other logs which can speed up tis debug.

@PaddyMac
Copy link
Author

I apologize for not responding sooner. I filed a bug on the Github page for Intel Media driver as well because I later began to think that may be where the problem is. The other bug I filed is intel/media-driver#1885

  1. I'm encountering this on Gentoo with KDE Plasma 6.2.4 running on a Dell Optiplex 7010 with an i7-3770s and Intel Arc A380.
  2. The compiler flags I was using were "-march=native -O2 -pipe -flto -g", though I began to suspect that maybe LTO might have been causing a problem, so I recompiled OBS and all the libraries without -flto enabled. The problem persisted. The only change was that the backtrace seemed to indicate the error occurring in media-driver instead of gmmlib after recompiling without LTO. I used GCC with Gentoo version number 14.2.1_p20241116. Binutils is 2.43.
  3. I encountered this bug on gmmlib 22.5.4, but I also tried downgrading to 22.5.2 with no change.
  4. I'm not sure what other debug info is available, but if there is anything specific you are looking for I will get it for you.

Also, it's probably redundant to have two open bugs for this problem. Does one of them need to be closed so there isn't confusion or wasted effort?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants