Your message dated Fri, 31 May 2024 11:22:50 +0000
with message-id <[email protected]>
and subject line Bug#1072244: fixed in wxglade 1.1.0a3+repack-1
has caused the Debian Bug report #1072244,
regarding Segmentation fault on startup
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1072244: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072244
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: wxglade
Version: 1.0.5+repack-2
Severity: grave
Tags: patch
Wxglade crashes with a segmentation fault on startup. See below for the
output. This is fixed upstream by this commit:
https://github.com/wxGlade/wxGlade/commit/05943a8374a24b862e76f03643a775c09582703f
I also attached this as a patch to this bug report.
Regards
Gaudenz
$ wxglade
INFO : Starting wxGlade version "1.0.5+repack" on Python 3.11.9
INFO : Using wxPython 4.2.1
INFO : Loading "wconfig" modules from /usr/share/wxglade/widgets/widgets.txt:
INFO : Load code generators:
INFO : C++ generator loaded
INFO : lisp generator loaded
INFO : XRC generator loaded
INFO : perl generator loaded
INFO : python generator loaded
INFO : Loading widgets from /usr/share/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
22:45:39: Debug: Adding duplicate image handler for 'Windows bitmap file'
22:45:39: Debug: Adding duplicate animation handler for '1' type
22:45:39: 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 C++
INFO : for lisp
INFO : for XRC
INFO : for perl
INFO : for python
Segmentation fault
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.7.12-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages wxglade depends on:
ii python3 3.11.8-1
ii python3-wxgtk4.0 4.2.1+dfsg-3+b2
wxglade recommends no packages.
wxglade suggests no packages.
-- no debconf information
>From 05943a8374a24b862e76f03643a775c09582703f Mon Sep 17 00:00:00 2001
From: DietmarSchwertberger <[email protected]>
Date: Sat, 11 May 2024 19:27:49 +0200
Subject: [PATCH] destroy dummy panel later, to work around issue #547
---
main.py | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/main.py b/main.py
index a0a410c8..a68d8c9b 100644
--- a/main.py
+++ b/main.py
@@ -89,10 +89,11 @@ def __init__(self, parent):
sizer.Add(self.notebook, 1, wx.EXPAND, 0)
# for GTK3: add a panel to determine page size
- p = wx.Panel(self.notebook)
+ self._dummy_page = p = wx.Panel(self.notebook)
self.notebook.AddPage(p, "panel")
self._notebook_decoration_size = None
p.Bind(wx.EVT_SIZE, self.on_panel_size)
+ self._edit_triggered = False # for MSW to avoid multiple calls to
set_widget
self.SetSizer(sizer)
self.Layout()
@@ -153,8 +154,12 @@ def create_editor(self, edit_widget):
self.notebook.Hide()
# remember the notebook page to be selected
- selection = self.notebook.GetSelection()
- select_page = self.pagenames[selection] if selection!=-1 else None
+ if self._dummy_page or not self.pagenames:
+ self._dummy_page = None
+ select_page = None
+ else:
+ selection = self.notebook.GetSelection()
+ select_page = self.pagenames[selection] if selection!=-1 else
None
# clear notebook pages
#self.notebook.DeleteAllPages() # deletes also the windows on the
pages
@@ -231,6 +236,7 @@ def end_page(self, panel, sizer, header, select=False):
def _set_page_size(self, scrolled):
# set ScrolledWindow and Panel to available size; enable scrolling, if
required
# gets available size for notebook pages
+ if not self.pagenames: return # in initialization
ws, hs = self.notebook.GetSize()
ws -= self._notebook_decoration_size[0]
hs -= self._notebook_decoration_size[1]
@@ -257,13 +263,16 @@ def on_notebook_size(self, event):
def on_panel_size(self, event):
# when the dummy panel receives a size event, we know that things are
ready to calculate the notebook pages size
# calculate decoration size from the dummy panel that was added
initially
+ # this might be called several times during initialization
+ # on Windows the sizes change, it's fine to take the last value;
actually the correct value is required for GTK
if event.GetSize() != (0,0):
dummy_panel = self.notebook.GetPage(0)
wp, hp = dummy_panel.GetSize() # page/panel size
wn, hn = self.notebook.GetSize() # notebook size
self._notebook_decoration_size = (wn-wp, hn-hp)
- self.notebook.RemovePage(0)
- compat.DestroyLater(dummy_panel)
+ if wx.Platform == '__WXMSW__' and not self._edit_triggered:
+ # as the dummy is not deleted any more due to GTK, we need to
display something
+ wx.CallLater(150, self.set_widget, common.root)
else:
# Mac OS: inital event on creation
event.Skip()
--- End Message ---
--- Begin Message ---
Source: wxglade
Source-Version: 1.1.0a3+repack-1
Done: Georges Khaznadar <[email protected]>
We believe that the bug you reported is fixed in the latest version of
wxglade, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Georges Khaznadar <[email protected]> (supplier of updated wxglade package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Fri, 31 May 2024 12:44:16 +0200
Source: wxglade
Architecture: source
Version: 1.1.0a3+repack-1
Distribution: unstable
Urgency: medium
Maintainer: Georges Khaznadar <[email protected]>
Changed-By: Georges Khaznadar <[email protected]>
Closes: 1072244
Changes:
wxglade (1.1.0a3+repack-1) unstable; urgency=medium
.
* fixed debian/watch
* new upstream version 1.1.0a3... really git snapshot taken today
* this upstream version includes a fix, which Closes: #1072244
Checksums-Sha1:
7d3d4b6589989516ac825b51072aa4ae183a5b13 1866 wxglade_1.1.0a3+repack-1.dsc
bce6dc98e2ebabce10a060593d1552d5bfa34574 1555364
wxglade_1.1.0a3+repack.orig.tar.gz
ead3eb52f99eb148532ce3b4210d93e76cff5b97 8128
wxglade_1.1.0a3+repack-1.debian.tar.xz
c64c568e01518adb4e0780e5729da8d61d91fc52 6456
wxglade_1.1.0a3+repack-1_amd64.buildinfo
Checksums-Sha256:
79b5e7ce04a138c4029476277de0a505b8d2dbd0d6b8a6de20dce07c2e5629f9 1866
wxglade_1.1.0a3+repack-1.dsc
1d6e0535bf038c768717089c2ec4fda8e7042dee545306deb457a5a9ea0f4daa 1555364
wxglade_1.1.0a3+repack.orig.tar.gz
63fd09ab31d1417f35ca9da19473eb16cae384005fdc72a537934479ed05f2d7 8128
wxglade_1.1.0a3+repack-1.debian.tar.xz
224e968c63619a27c98924a60c111299ea39b79969c3c1fcc7903259d3b1ca8a 6456
wxglade_1.1.0a3+repack-1_amd64.buildinfo
Files:
76a8179eaa66a3679ff20633b14a60f8 1866 devel optional
wxglade_1.1.0a3+repack-1.dsc
123683fb6133614e8bdaf6b40b82aecf 1555364 devel optional
wxglade_1.1.0a3+repack.orig.tar.gz
d6d53458457e4acece84085a575e3642 8128 devel optional
wxglade_1.1.0a3+repack-1.debian.tar.xz
45a0b603cc4926554721007cb91b4a26 6456 devel optional
wxglade_1.1.0a3+repack-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEM0CzZP9nFT+3zK6FHCgWkHE2rjkFAmZZq9kACgkQHCgWkHE2
rjkhNQ/+MmXeO3Z7UdIUgIdbVVwCuXFVwoXPO7ZPf/RWq11S5XRKo9r2ad5vAMxo
Plt9hRP/8Gxmd1UtfngnyoZd1D6eyChRJRlhFpXXbjDcsuTlwvxwCSACpt5IqhOA
cST7yi/uQtoYa7PE2pWd21smVgCmwWwavxs904zSnPP/7rP132d1vLR/LFtUqfEw
lo7fJKNP4s3hS4NbXSkx/WbJj7UJSmLxyO4MtlAmYDTWTlYCPQ+buJfdAi0tgeU3
5HS3/OJ7NdL+MdCT1kfXiBgTjTft5n0KLlgJpnJgjvDtoY/F0zRs5q4uIApiF02+
fVu0ZDvr3xwu1NOxw22lc3m0WH+GpodeSNcyIqY5Za/AsDPW+yvJIBCrQWgoHban
h9HRtQcQsCePWSwubzsF36MG59W1KCKV9ygva+xZKMwLFh5p9jyRyQXCtDZG87wc
jkTd6jkJ7U3IlbErmBsSMfvR/4EFZR7BKPgYVGHa8BwdW3EjiCOqi50CeMimYuJt
Rut1+Co+mOejndMCk1RO+H5Ae0p7JjW1Yd1nC+KHpMHuaeHiKLCn1O/BCqoUiIvv
bcs4+43K4C2NG80PSQ7FYPvkXYsG1Dh70l3RTH/l9pQ5ROsIDdLY4TTlhOm0vbeI
dph94uA7pHn1Ab5P8OAcrTWCkPSbGMhBng/xeaADEHsVYrkBcic=
=dvLG
-----END PGP SIGNATURE-----
pgpPxWU2tkK1x.pgp
Description: PGP signature
--- End Message ---