Bug 33584 - wxGlade fails to start
Summary: wxGlade fails to start
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-09-24 00:02 CEST by Aurelian R
Modified: 2024-09-27 03:31 CEST (History)
3 users (show)

See Also:
Source RPM: wxglade-1.0.4-2.src.rpm
CVE:
Status comment:


Attachments

Description Aurelian R 2024-09-24 00:02:51 CEST
Description of problem:
On Mageia 9 and Cauldron, wxglade fails to start.
On Mageia 9, the latest stable version, 1.0.5, seems to work fine, but on Cauldron that's not the case; it segfaults.
The latest beta release of wxglade, 1.1.0b1, is the one that works for both Cauldron and Mageia 9.

Steps to Reproduce:
1. run wxglade version 1.0.4
$ wxglade
ERROR: wxglade.py not found!
2. run wxglade.py directly as there is a bug in the wxglade executable script
$ python $(find /usr/lib/python3.* -name '*wxglade.py')
...
Segmentation fault (core dumped)
Comment 1 David GEIGER 2024-09-24 06:33:19 CEST
Fixed both mga9 and Cauldron!

CC: (none) => geiger.david68210

Comment 2 David GEIGER 2024-09-24 06:34:33 CEST
Assigning to QA,

Package in 9/Core/Updates_testing:
======================
wxglade-1.0.5-1.mga9.noarch.rpm

From SRPMS
wxglade-1.0.5-1.mga9.src.rpm

Assignee: bugsquad => qa-bugs

Comment 3 Aurelian R 2024-09-24 08:08:24 CEST
(In reply to David GEIGER from comment #1)
> Fixed both mga9 and Cauldron!
I've tested wxglade on both, Mageia 9 and Cauldron, and it does work for me.
Comment 4 katnatek 2024-09-24 20:37:36 CEST
RH x86_64

wxglade 
ERROR: wxglade.py not found!


LC_ALL=C urpmi --auto --auto-update 
medium "QA Testing (64-bit)" is up-to-date
medium "Core Release (distrib1)" is up-to-date
medium "Core Updates (distrib3)" is up-to-date
medium "Nonfree Release (distrib11)" is up-to-date
medium "Nonfree Updates (distrib13)" is up-to-date
medium "Tainted Release (distrib21)" is up-to-date
medium "Tainted Updates (distrib23)" is up-to-date
medium "Core 32bit Release (distrib31)" is up-to-date
medium "Core 32bit Updates (distrib32)" is up-to-date
medium "Nonfree 32bit Release (distrib36)" is up-to-date
medium "Nonfree 32bit Updates (distrib37)" is up-to-date
medium "Tainted 32bit Release (distrib41)" is up-to-date
medium "Tainted 32bit Updates (distrib42)" is up-to-date

installing wxglade-1.0.5-1.mga9.noarch.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ##################################################################################################
      1/1: wxglade               ##################################################################################################
      1/1: removing wxglade-1.0.4-1.mga9.noarch
                                 ##################################################################################################

The application starts but terminal complain about missing file
And inf you try to see the License from the gui also complain of the missing file

wxglade 
ERROR:root:License file "LICENSE.txt" not found!
INFO    : Starting wxGlade version "1.0.5" on Python 3.10.11
INFO    : Using wxPython 4.2.0
INFO    : Loading "wconfig" modules from /usr/lib/python3.10/site-packages/wxglade/widgets/widgets.txt:
INFO    : Load code generators:
INFO    :   perl generator loaded
INFO    :   XRC generator loaded
INFO    :   python generator loaded
INFO    :   lisp generator loaded
INFO    :   C++ generator loaded
INFO    : Loading widgets from /usr/lib/python3.10/site-packages/wxglade/widgets/widgets.txt:
INFO    :       frame
INFO    :       dialog
INFO    :       panel
INFO    :       notebook
INFO    :       splitter_window
INFO    :       button
INFO    :       toggle_button
INFO    :       bitmap_button
INFO    :       spin_button
INFO    :       text_ctrl
INFO    :       choice
INFO    :       combo_box
INFO    :       list_box
INFO    :       check_list_box
INFO    :       checkbox
INFO    :       radio_button
INFO    :       radio_box
INFO    :       spin_ctrl
INFO    :       spin_ctrl_double
INFO    :       slider
INFO    :       gauge
12:34:47: Debug: Adding duplicate image handler for 'Windows bitmap file'
12:34:47: Debug: Adding duplicate animation handler for '1' type
12:34:47: Debug: Adding duplicate animation handler for '2' type
INFO    :       calendar_ctrl
INFO    :       generic_calendar_ctrl
INFO    :       datepicker_ctrl
INFO    :       list_ctrl
INFO    :       tree_ctrl
INFO    :       grid
INFO    :       static_text
INFO    :       hyperlink_ctrl
INFO    :       static_line
INFO    :       static_bitmap
INFO    :       spacer
INFO    :       property_grid_manager
INFO    :       search_ctrl
INFO    :       custom_widget
INFO    :       menubar
INFO    :       toolbar
INFO    :       statusbar
INFO    : Load sizer generators:
INFO    :   for perl
INFO    :   for XRC
INFO    :   for python
INFO    :   for lisp
INFO    :   for C++

(wxglade.py:5068): Gtk-CRITICAL **: 12:34:47.552: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

(wxglade.py:5068): Gtk-WARNING **: 12:34:47.552: Negative content width -5 (allocation 2, extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar)

(wxglade.py:5068): Gtk-CRITICAL **: 12:34:47.574: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(wxglade.py:5068): Gtk-CRITICAL **: 12:34:47.580: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

Keywords: (none) => feedback

katnatek 2024-09-24 21:12:21 CEST

Keywords: (none) => advisory

Comment 5 Aurelian R 2024-09-24 22:04:26 CEST
(In reply to katnatek from comment #4)
> The application starts but terminal complain about missing file
> And inf you try to see the License from the gui also complain of the missing
> file

wxglade looks for the license file in a specific place, but the file is not there anymore. For whatever reason, in the wxglade spec file(L34), the license file has been explicitly removed from the wxglade default path.

One can either generate a link or just have the license file packaged twice.

N.B.: It looks like the path to the wxglade manual is buggy too.
Adding this sed to the %prep section in the spec file should fix it:

sed -e "s/manual_html/html/" -i setup.py
Comment 6 David GEIGER 2024-09-25 07:47:52 CEST
Latest update should fix this html docs issue!


New package in 9/Core/Updates_testing:
======================
wxglade-1.0.5-1.1.mga9.noarch.rpm

From SRPMS
wxglade-1.0.5-1.1.mga9.src.rpm
Comment 7 katnatek 2024-09-25 18:23:06 CEST
RH x86_64

The application starts
No longer complain ERROR:root:License file "LICENSE.txt" not found!

wxglade 
INFO    : Starting wxGlade version "1.0.5" on Python 3.10.11
INFO    : Using wxPython 4.2.0
INFO    : Loading "wconfig" modules from /usr/lib/python3.10/site-packages/wxglade/widgets/widgets.txt:
INFO    : Load code generators:
INFO    :   perl generator loaded
INFO    :   XRC generator loaded
INFO    :   python generator loaded
INFO    :   lisp generator loaded
INFO    :   C++ generator loaded
INFO    : Loading widgets from /usr/lib/python3.10/site-packages/wxglade/widgets/widgets.txt:
INFO    :       frame
INFO    :       dialog
INFO    :       panel
INFO    :       notebook
INFO    :       splitter_window
INFO    :       button
INFO    :       toggle_button
INFO    :       bitmap_button
INFO    :       spin_button
INFO    :       text_ctrl
INFO    :       choice
INFO    :       combo_box
INFO    :       list_box
INFO    :       check_list_box
INFO    :       checkbox
INFO    :       radio_button
INFO    :       radio_box
INFO    :       spin_ctrl
INFO    :       spin_ctrl_double
INFO    :       slider
INFO    :       gauge
10:20:42: Debug: Adding duplicate image handler for 'Windows bitmap file'
10:20:42: Debug: Adding duplicate animation handler for '1' type
10:20:42: Debug: Adding duplicate animation handler for '2' type
INFO    :       calendar_ctrl
INFO    :       generic_calendar_ctrl
INFO    :       datepicker_ctrl
INFO    :       list_ctrl
INFO    :       tree_ctrl
INFO    :       grid
INFO    :       static_text
INFO    :       hyperlink_ctrl
INFO    :       static_line
INFO    :       static_bitmap
INFO    :       spacer
INFO    :       property_grid_manager
INFO    :       search_ctrl
INFO    :       custom_widget
INFO    :       menubar
INFO    :       toolbar
INFO    :       statusbar
INFO    : Load sizer generators:
INFO    :   for perl
INFO    :   for XRC
INFO    :   for python
INFO    :   for lisp
INFO    :   for C++

(wxglade.py:5536): Gtk-CRITICAL **: 10:20:43.203: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

(wxglade.py:5536): Gtk-WARNING **: 10:20:43.203: Negative content width -5 (allocation 2, extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar)

(wxglade.py:5536): Gtk-CRITICAL **: 10:20:43.226: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(wxglade.py:5536): Gtk-CRITICAL **: 10:20:43.231: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

And you can see the license in the gui

CC: (none) => andrewsfarm
Whiteboard: (none) => MGA9-64-OK
Keywords: feedback => (none)

Comment 8 katnatek 2024-09-26 03:44:17 CEST
Advisory updated
Comment 9 Thomas Andrews 2024-09-27 02:14:25 CEST
Validating.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 10 Mageia Robot 2024-09-27 03:31:39 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0200.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.