obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
57.78k stars 7.74k forks source link

Flatpak and git (29.1.3) hang with mask applied to source #9247

Open Lucretia opened 1 year ago

Lucretia commented 1 year ago

Operating System Info

Other

Other OS

Gentoo fx-8350

OBS Studio Version

29.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/ev2Bh60W8KayyQQS

OBS Studio Crash Log URL

No response

Expected Behavior

Expect the source to have the image mask applied

Current Behavior

no image shown in window, no source to image mask shown in path, buttons in window unresponsive, if webcam is used as source, this still updates. No mask applied.

Steps to Reproduce

  1. Add image source
  2. Add mask filter
  3. Select mask image
  4. press ok or equivalent.
  5. Window hangs ...

Anything else we should know?

This is both on flatpak and the version I compiled from git yesterday which just happens to be the same version.

kkartaltepe commented 1 year ago

I cannot replicate this, provide a backtrace from gdb of the hung thread with symbols.

Lucretia commented 1 year ago

No.

  1. I had to build with the following command because of the removal of the ifdef's yesterday stopped me from building today's HEAD:
    EGIT_COMMIT=a44d1b2dce3a566e201329ed963965e0743ac406 ebuild  /usr/portage/media-video/obs-studio/obs-studio-9999.ebuild  merge

and

  1. It works within gdb. It does not outside of gdb.

In fact it seems to not work when run from the menu, but from command line it does. The one from the menu seems to be the flatpak one I installed, so it's overwritten the icon for the system one. But I guarantee you, both the flatpak and the one i installed earlier had the same issue. Thing is, the flatpak one has the integration tools. And, I don't know how to debug the flatpak one.

tytan652 commented 1 year ago

For using gdb in the Flatpak (src):

$ flatpak install org.freedesktop.Sdk.Debug com.obsproject.Studio.Debug # Optional: Install OBS Studio debug symbols
$ flatpak run --command=sh --devel com.obsproject.Studio
$ gdb /app/bin/obs

Once gdb ready, run by entering the command r and reproduce the crash. Once done, you should be able to enter the command bt. Message the output of this command. You can quit by entering the command q.

gxalpha commented 1 year ago

Additionally, please remove the obs-backgroundremoval (com.obsproject.Studio.Plugin.BackgroundRemoval) plugin when performing the above steps.