Bug 32063

Summary: MCC - GLib-GObject-CRITICAL warnings
Product: Mageia Reporter: psyca <linux>
Component: RPM PackagesAssignee: Jani Välimaa <jani.valimaa>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: fri, jani.valimaa
Version: 9   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: perl-Pango-1.227.0-15.mga9 CVE:
Status comment:
Attachments: perl-Pango patch to fix GLib-GObject-CRITICALs

Description psyca 2023-07-02 09:18:08 CEST
Description of problem:
Not yet a problem but maybe in future there should be a look on the following messages of GLib and GTK for MCC and diskdrake.

---
Too late to run INIT block at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 257.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/share/perl5/vendor_perl/Gtk3.pm line 539.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
Oops, secure memory pool already initialized
Oops, secure memory pool already initialized
Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
Too late to run INIT block at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 257.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/share/perl5/vendor_perl/Gtk3.pm line 539.

---

Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/share/perl5/vendor_perl/Gtk3.pm line 539.

(diskdrake:3332): Gtk-WARNING **: 09:09:25.354: Theme parsing error: diskdrake.css:86:25: The style property GtkPaned:handle-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(diskdrake:3332): Gtk-WARNING **: 09:09:25.364: Theme parsing error: diskdrake.css:86:25: The style property GtkPaned:handle-size is deprecated and shouldn't be used anymore. It will be removed in a future version
Comment 2 Lewis Smith 2023-07-03 20:40:51 CEST
Thank you psyca for the report.
Please do report whether the problem gets fixed in the near future.

And Jani for proposing the fix. Can you say what SRPM/package is involved? Will this come through as a regular update?

CC: (none) => lewyssmith

Jani Välimaa 2023-07-04 16:04:51 CEST

Source RPM: (none) => drakxtools-18.64-1.mga9

Comment 3 Jani Välimaa 2023-07-04 16:08:38 CEST
(In reply to Lewis Smith from comment #2)
> Will this come through as a regular update?

Gtk-WARNINGs will be fixed when the next version is released. IMO there's no reason for pushing update just for this.
Comment 4 Jani Välimaa 2023-07-04 19:44:34 CEST
GLib-GObject-CRITICALs are coming from perl-Pango. G_DEFINE_BOXED_TYPE() should be used instead of g_boxed_type_register_static()

GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 223.
 at /usr/lib64/perl5/DynaLoader.pm line 223.
	DynaLoader::bootstrap("Pango", 1.227) called at /usr/lib64/perl5/vendor_perl/Pango.pm line 39
	require Pango.pm called at /usr/libexec/drakconf line 51
	main::BEGIN() called at /usr/libexec/drakconf line 51
	eval {...} called at /usr/libexec/drakconf line 51

I'll check if I can fix perl-Pango.

CC: (none) => jani.valimaa

Comment 5 Morgan Leijström 2023-07-04 19:58:10 CEST
Thank you for working on it.
All these warnings were embarrasing for our tools...

CC: (none) => fri

Comment 6 Thomas Backlund 2023-07-04 20:27:03 CEST
(In reply to Jani Välimaa from comment #1)
> Should be fixed in git.
> 
> https://gitweb.mageia.org/software/drakx/commit/
> ?id=c34b790ccb4b52b8f78128fff3f2221ef831e2da

did you check  that diskdrake still works after that removal ?
Comment 7 Jani Välimaa 2023-07-04 20:30:54 CEST
Created attachment 13903 [details]
perl-Pango patch to fix GLib-GObject-CRITICALs

Here's the patch for perl-Pango. It passes quick local tests for launching drakconf, but the question is do we want to include it into mga9 at this stage?
Comment 8 Jani Välimaa 2023-07-04 20:36:28 CEST
(In reply to Thomas Backlund from comment #6)
> (In reply to Jani Välimaa from comment #1)
> > Should be fixed in git.
> > 
> > https://gitweb.mageia.org/software/drakx/commit/
> > ?id=c34b790ccb4b52b8f78128fff3f2221ef831e2da
> 
> did you check  that diskdrake still works after that removal ?

Of course. Didn't see any visual impacts.
Comment 9 Thomas Backlund 2023-07-04 20:37:53 CEST
(In reply to Jani Välimaa from comment #8)
> (In reply to Thomas Backlund from comment #6)
> > (In reply to Jani Välimaa from comment #1)
> > > Should be fixed in git.
> > > 
> > > https://gitweb.mageia.org/software/drakx/commit/
> > > ?id=c34b790ccb4b52b8f78128fff3f2221ef831e2da
> > 
> > did you check  that diskdrake still works after that removal ?
> 
> Of course. Didn't see any visual impacts.

ok, thanks for confirming.
Comment 10 Thomas Backlund 2023-07-04 20:39:10 CEST
(In reply to Jani Välimaa from comment #7)
> Created attachment 13903 [details]
> perl-Pango patch to fix GLib-GObject-CRITICALs
> 
> Here's the patch for perl-Pango. It passes quick local tests for launching
> drakconf, but the question is do we want to include it into mga9 at this
> stage?

No, better get mga9 out, push this when Cauldron reopens, and when it has been cooking for a while it and confirmed it does not break stuff it can be pushed as an update...

drakx code tends to be sensitive to changes and we have had subtle breakages before too... better safe than sorry...
Comment 11 Lewis Smith 2023-07-04 20:43:35 CEST
Thanks especially to Jani for working on this (wins you the bug!); and Thomas for his comments.

CC: lewyssmith => (none)
Assignee: bugsquad => jani.valimaa

Jani Välimaa 2023-07-04 20:51:34 CEST

Source RPM: drakxtools-18.64-1.mga9 => drakxtools-18.64-1.mga9, perl-Pango-1.227.0-15.mga9

Jani Välimaa 2023-07-18 18:25:08 CEST

Whiteboard: (none) => MGA9TOO

Comment 12 Jani Välimaa 2023-09-24 09:13:36 CEST
Fixed in cauldron with drakxtools-18.65-1.mga9 and perl-Pango-1.227.0-16.mga10.

Version: Cauldron => 9
Whiteboard: MGA9TOO => (none)

Comment 13 Jani Välimaa 2023-09-24 09:16:21 CEST
Diskdrake's Gtk-WARNINGs are aready fixed in Mageia 9 with drakxtools-18.65-1.mga9.

Source RPM: drakxtools-18.64-1.mga9, perl-Pango-1.227.0-15.mga9 => perl-Pango-1.227.0-15.mga9
Summary: Diskdrake / MCC - Glib-GOpject-Critical and GtkPaned:handle-size is deprecated and shouldn't be used anymore => MCC - GLib-GObject-CRITICAL warnings