rncbc / qtractor

Qtractor - An Audio/MIDI multi-track sequencer
https://qtractor.org
GNU General Public License v2.0
495 stars 86 forks source link

qtractor-0.9.37 build against Qt6 on Fedora 40, run the app: `Gtk-Message: 09:45:22.251: Failed to load module "pk-gtk-module" (qtractor:16365): GLib-GObject-CRITICAL **: 09:45:22.258: cannot register existing type 'GtkWidget'` #431

Open topazus opened 6 months ago

topazus commented 6 months ago

@rncbc

❯ /usr/bin/qtractor 
Gtk-Message: 09:47:58.980: Failed to load module "pk-gtk-module"

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: cannot register existing type 'GtkWidget'

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: cannot add class private field to invalid type '<invalid>'

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: cannot add private field to invalid (non-instantiatable) type '<invalid>'

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: cannot register existing type 'GtkBuildable'

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed

(qtractor:17919): GLib-CRITICAL **: 09:47:58.987: g_once_init_leave: assertion 'result != 0' failed

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(qtractor:17919): Gtk-CRITICAL **: 09:47:58.987: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

(qtractor:17919): Gtk-CRITICAL **: 09:47:58.987: gtk_style_context_lookup_color: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed

(qtractor:17919): Gtk-CRITICAL **: 09:47:58.987: gtk_style_context_get_background_color: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: cannot register existing type 'GtkWidget'

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: cannot add class private field to invalid type '<invalid>'

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: cannot add private field to invalid (non-instantiatable) type '<invalid>'

(qtractor:17919): GLib-GObject-CRITICAL **: 09:47:58.987: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

Ref: https://koji.fedoraproject.org/koji/taskinfo?taskID=110578059 build log: https://kojipkgs.fedoraproject.org//work/tasks/8059/110578059/build.log RPM: https://kojipkgs.fedoraproject.org//work/tasks/8059/110578059/qtractor-0.9.37-1.fc40.x86_64.rpm

rncbc commented 6 months ago

prolly fc40 specific runtime issue: some gtk2 module is not installed ? if not available then try build without gtk2-devel and gtkmm2-devel installed.

topazus commented 6 months ago

some gtk2 module is not installed ?

Do you know what gtk2-related packages missing? Maybe here is the packages about gtk2 on my machine.

❯ rpm -qa | grep gtk2
libcanberra-gtk2-0.30-32.fc39.x86_64
adwaita-gtk2-theme-3.28-17.fc39.x86_64
gtk2-2.24.33-15.fc39.x86_64
ibus-gtk2-1.5.29~rc2-5.fc40.x86_64
gtk2-devel-2.24.33-15.fc39.x86_64

if not available then try build without gtk2-devel and gtkmm2-devel installed.

Ok, I will try this.

topazus commented 6 months ago

With the build of turning off the options of CONFIG_LV2_UI_GTK2 and CONFIG_LV2_UI_GTKMM2, the executable can be run, but it appeared the following error: Screenshot from 2023-12-20 19-42-46

rncbc commented 6 months ago

forgot to run real jackd(bus) or fake pipewire-jack (pw-jack) substitution?

otherwise the message box says it all.

2-www commented 4 weeks ago

i have the same error in flatpak, can this be run without rebuild?

i tried flatpak run --env=QT_QPA_PLATFORMTHEME=qt6ct, as in the last linked issue, but the error is the same