From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 64836@debbugs.gnu.org
Cc: Tobias Geerinckx-Rice <me@tobias.gr>
Subject: bug#64836: pygobject GTK modules lookup fails following CUPS graft
Date: Mon, 24 Jul 2023 13:30:20 -0400 [thread overview]
Message-ID: <87zg3lfc9f.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 575 bytes --]
Hi,
I'm still quite puzzled by this, but I'm relatively confident that
commit 2986ba899f5ee374008c501e26fb653147ed7891 ("gnu: cups: Replace
with 2.4.6 [fixes CVE-2023-34241].") caused the following wxPython /
pygobject script to fail:
--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=2986ba899f5ee374008c501e26fb653147ed7891 \
-- shell --rebuild-cache --pure python python-pygobject python-wxpython gtk+ \
-- ./hang-repro.py
--8<---------------cut here---------------end--------------->8---
Where hang-repro.py contains:
[-- Attachment #2: hang-repro.py --]
[-- Type: application/octet-stream, Size: 513 bytes --]
#!/usr/bin/env python3
import sys
import wx
class DummyApp(wx.App):
"""The application class."""
def OnInit(self):
"""Main initialization routine."""
super().OnInit()
import gi
gi.require_version('Gtk', '3.0')
# Hangs here ->
from gi.repository import Gtk, Gdk, Gio
sys.exit(0) # never reached
return True
def main():
# Spin up the GUI.
app = DummyApp()
app.MainLoop()
if __name__ == "__main__":
main()
[-- Attachment #3: Type: text/plain, Size: 2173 bytes --]
The output produced is:
--8<---------------cut here---------------start------------->8---
/gnu/store/88r0c82k32zq8nmx5abn1fxvf7wxyw0j-profile/lib/python3.10/site-packages/gi/module.py:163: Warning: cannot register existing type 'GtkWidget'
g_type = info.get_g_type()
/gnu/store/88r0c82k32zq8nmx5abn1fxvf7wxyw0j-profile/lib/python3.10/site-packages/gi/module.py:163: Warning: cannot add class private field to invalid type '<invalid>'
g_type = info.get_g_type()
/gnu/store/88r0c82k32zq8nmx5abn1fxvf7wxyw0j-profile/lib/python3.10/site-packages/gi/module.py:163: Warning: cannot add private field to invalid (non-instantiatable) type '<invalid>'
g_type = info.get_g_type()
/gnu/store/88r0c82k32zq8nmx5abn1fxvf7wxyw0j-profile/lib/python3.10/site-packages/gi/module.py:163: Warning: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
g_type = info.get_g_type()
/gnu/store/88r0c82k32zq8nmx5abn1fxvf7wxyw0j-profile/lib/python3.10/site-packages/gi/module.py:163: Warning: cannot register existing type 'GtkBuildable'
g_type = info.get_g_type()
/gnu/store/88r0c82k32zq8nmx5abn1fxvf7wxyw0j-profile/lib/python3.10/site-packages/gi/module.py:163: Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
g_type = info.get_g_type()
/gnu/store/88r0c82k32zq8nmx5abn1fxvf7wxyw0j-profile/lib/python3.10/site-packages/gi/module.py:163: Warning: g_once_init_leave: assertion 'result != 0' failed
g_type = info.get_g_type()
--8<---------------cut here---------------end--------------->8---
and execution hangs (!)
The parent commit doesn't exhibit the problem:
--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=88d107b2b9bf72a628065a1475ecce7b49852c35 \
-- shell --rebuild-cache --pure python python-pygobject python-wxpython gtk+ \
-- ./hang-repro.py
$ echo $?
0
--8<---------------cut here---------------end--------------->8---
I've run the above using Guix at commit 21b718f, but since I'm using
time-machine, it shouldn't matter.
I've very puzzled as to why grafting CUPS could create such a problem
:-). Help wanted!
--
Thanks,
Maxim
next reply other threads:[~2023-07-24 17:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-24 17:30 Maxim Cournoyer [this message]
2023-07-25 14:18 ` bug#64836: pygobject GTK modules lookup fails following CUPS graft Maxim Cournoyer
2023-07-25 15:35 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zg3lfc9f.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=64836@debbugs.gnu.org \
--cc=me@tobias.gr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.