Description of problem: Trying to launch any GTK4 app (from something that isn't a flatpak), like: $ gtk4-widget-factory or: $ rhythmbox Seems to hang. Here's the output of running gtk4-widget-factory: ``` $ gtk4-widget-factory (gst-plugin-scanner:253066): GLib-GObject-WARNING **: 16:51:12.083: type name '-a-png-encoder-pred' contains invalid characters (gst-plugin-scanner:253066): GLib-GObject-CRITICAL **: 16:51:12.083: g_type_set_qdata: assertion 'node != NULL' failed (gst-plugin-scanner:253066): GLib-GObject-CRITICAL **: 16:51:12.083: g_type_set_qdata: assertion 'node != NULL' failed (gst-plugin-scanner:253066): GLib-GObject-WARNING **: 16:51:12.108: type name '-a-png-encoder-pred' contains invalid characters (gst-plugin-scanner:253066): GLib-GObject-CRITICAL **: 16:51:12.108: g_type_set_qdata: assertion 'node != NULL' failed (gst-plugin-scanner:253066): GLib-GObject-CRITICAL **: 16:51:12.108: g_type_set_qdata: assertion 'node != NULL' failed ``` ps shows that there's a process like this: /usr/libexec/gstreamer-1.0/gst-plugin-scanner -l /usr/bin/gtk4-widget-factory Running as a child of gtk4-widget-factory. Version-Release number of selected component (if applicable): gstreamer1-1.20.0-1.fc36.x86_64 How reproducible: Always Steps to Reproduce: 1. Launch gtk4 app Actual results: Hang Expected results: No hang
Created attachment 1871988 [details] Stack of the scanner process Seems dead-locked.
Created attachment 1871989 [details] Stack of gtk4-widget-factory. For reference.
check_user_and_group() fails and leaves the mutex locked, so if another module tries to load later it deadlocks.
https://github.com/opencryptoki/opencryptoki/commit/3fea29baa97be9c132a8189eb00c7a782900d472 is the fix, apparently, took a bit to track down. It'd be nice to get that into the Fedora 36 release. Of course locally I can just add myself to the right group.
sudo usermod -a -G pkcs11 $(whoami) fixed it, as expected. Kinda nasty, I had to fix my debugger to diagnose it (https://github.com/rr-debugger/rr/pull/3140) :-) Presumably doesn't affect all gtk4 apps, only those that use gstreamer.
FEDORA-2022-158ea10931 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-158ea10931
FEDORA-2022-158ea10931 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-158ea10931` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-158ea10931 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-158ea10931 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.