[PyQt] To long text in qlabel crashes my gdm

Jan Kotanski jan.kotanski at desy.de
Thu Sep 29 12:42:37 BST 2016


Hi,

I've just noticed that the following script

    from PyQt4.QtGui import QDialog, QVBoxLayout, QApplication, QLabel

    import sys

    class DateDialog(QDialog):
        def __init__(self, parent = None):
            super(DateDialog, self).__init__(parent)

            layout = QVBoxLayout(self)
            self.mlabel = QLabel(self)
            self.mlabel.setText("a"*2000)
            layout.addWidget(self.mlabel)


    def main():
        app = QApplication(sys.argv)
        w = DateDialog()
        w.show()
        sys.exit(app.exec_())


    if __name__ == '__main__':
        main()


crashes my gdm with the following error:

Sep 29 13:30:59 haso228k gnome-session[31562]: (gnome-shell:32058):
Cogl-ERROR **: Failed to create texture 2d due to size/format constraints
Sep 29 13:30:59 haso228k kernel: [168262.187211] traps:
gnome-shell[32058] trap int3 ip:7f7bc98edd30 sp:7ffd0e393f10 error:0
Sep 29 13:30:59 haso228k gnome-session[31562]: gnome-session[31562]:
WARNING: Application 'gnome-shell.desktop' killed by signal 5
Sep 29 13:30:59 haso228k gnome-session[31562]: gnome-session[31562]:
WARNING: App 'gnome-shell.desktop' respawning too quickly
Sep 29 13:31:00 haso228k gnome-session[31562]:
(gnome-settings-daemon:31662): GLib-GIO-CRITICAL **:
g_dbus_proxy_call_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed
Sep 29 13:31:07 haso228k org.freedesktop.Notifications[31577]:
xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X
server :0.
Sep 29 13:31:07 haso228k gnome-session[31562]:
(gnome-settings-daemon:31662): Gdk-WARNING **: gnome-settings-daemon:
Fatal IO error 11 (Resource temporarily unavailable) on X server :0.


I use debian jessie with gnome 3 and python-qt4 (4.11.2+dfsg-1)

Is it a known problem? How to fix it?


Best regards,
Jan




More information about the PyQt mailing list