Skip to content

[BUG] Crash due to conflict between libcef and gtk using the glib event loop on linux #219

@Gol-D-Ace

Description

@Gol-D-Ace

Platform

Operating system and version: Any Linux distro using a desktop environment that makes use of GTK like for example the standard flavor of Ubuntu
OBS Studio version: 25.0.4 (any that include the browser source and therefore libcef)

Expected Behavior

Not have the file dialog / OBS hang or crash when using a file dialog to choose a file for example an image on the image source.

Current Behavior

The file dialog will hang or crash including OBS and makes it impossible to select a file.

Steps to Reproduce

  1. Compile OBS Studio with the browser source or install a binary package that includes the browser source.
  2. Be on a distro that uses GTK for the desktop environment (file dialog) like for example the standard Ubuntu flavor.
  3. Open a file choose dialog. Add for example an image source and click browse.
  4. Try to select a file. It may work on the first try. Try a second or third time in that case or leave the dialog open for a bit.
  5. The dialog and OBS will freeze and eventually crash.

Additional information

Followup issue for obsproject/obs-studio#2644 to get more exposure

This issue seems to get caused by GTK and libcef both using the glib event loop and causing a conflict. Using for example the QT dialogs (none native) will work around the issue.

Unfortunately this work around reduces functionality on GTK and might even break OBS installs entirely on distros where the qt5 configuration tool isn't available because the deb package will depend on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions