[PyQt] Too long text in qlabel crashes my gdm
Vincent Vande Vyvre
vincent.vande.vyvre at telenet.be
Thu Sep 29 13:50:12 BST 2016
Le 29/09/2016 à 14:34, Jan Kotanski a écrit :
> 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
>
>
> PS: I resend my email on request of Florian Bruhin.
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
No problem with Ubuntu Mate (gnome-2) Qt-4.8.1 and PyQt4-4.9.1
Vincent
--
Vincent V.V.
Oqapy <http://www.oqapy.eu> . python3-exiv2
<http://www.py3exiv2.tuxfamily.org/> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
More information about the PyQt
mailing list