[PyQt] Too long text in qlabel crashes my gdm

Kotanski, Jan jan.kotanski at desy.de
Thu Sep 29 20:09:52 BST 2016


Hi,

I've checked my Ubuntu 14.04 with

00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)

pyqt 4.10.4 and qt4:4.8.5:

1) for GNOME 3 it crashes as well
2) for GNOME Flashback (Compiz) / (MetaCity) it does not crash but the dialog behaves strange
3) for Ubuntu Unity it works fine, i.e. the dialog is shrunk into the monitor size.

Additionally for Compiz (after clicking) I get some funny errors, i.e.

jkotan at alcest:~$ python qlabeltest2.py 
QNativeImage: Unable to attach to shared memory segment. 
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
QNativeImage: Unable to attach to shared memory segment. 
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
QNativeImage: Unable to attach to shared memory segment. 
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0

Cheers,
Jan

----- Original Message -----
From: "Jan Kotanski" <jan.kotanski at desy.de>
To: "vincent vandevyvre" <vincent.vandevyvre at oqapy.eu>, pyqt at riverbankcomputing.com
Sent: Thursday, 29 September, 2016 14:56:30
Subject: Re: [PyQt] Too long text in qlabel crashes my gdm

Hi,

for me it crashes also for

    python-pyqt5 (5.3.2+dfsg-3)

on debian/jessie.

I use

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core
Processor Family Integrated Graphics Controller (rev 09)

(I don't know if it metters).

Bests,
Jan

On 09/29/16 14:50, Vincent Vande Vyvre wrote:
> 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
>


More information about the PyQt mailing list