Re: [Development] Too long text in qlabel crashes my gdm

2016-09-29 Thread Jan Kotanski
Thanks. > From the conversation in the linked thread, it looks like Qt tried to create > a > dialog that is too wide, so COGL failed to create the OpenGL texture. Then it > crashed. That's my suspicious. > > Workaround: limit the width of your dialog. Yes. I did it before my posts in the ori

Re: [Development] Too long text in qlabel crashes my gdm

2016-09-29 Thread Thiago Macieira
On quinta-feira, 29 de setembro de 2016 23:15:18 PDT André Pönitz wrote: > That's something to ask the gdm folks. 2000 bytes in a QLabel might be > unusual, but no reason to crash. Here (fvwm 2.6.5 on Ubuntu 16.04) it > displays fine. >From the conversation in the linked thread, it looks like Qt t

Re: [Development] Too long text in qlabel crashes my gdm

2016-09-29 Thread André Pönitz
On Thu, Sep 29, 2016 at 10:08:05PM +0200, Kotanski, Jan wrote: > Hi, > > I've noticed that too long test in qlabel e.g. > >void retranslateUi(QDialog *Dialog) > { > Dialog->setWindowTitle(QApplication::translate("Dialog", "Dialog", 0, > QApplication::UnicodeUTF8)); > char

Re: [Development] Too long text in qlabel crashes my gdm

2016-09-29 Thread Kotanski, Jan
rom: "Alexander Nassian" To: "Kotanski, Jan" Cc: "development" Sent: Thursday, 29 September, 2016 22:17:01 Subject: Re: [Development] Too long text in qlabel crashes my gdm FTR on my macOS machine with Qt 5.7.0 it doesn’t crash. What Qt version do you use? QApplicatio

Re: [Development] Too long text in qlabel crashes my gdm

2016-09-29 Thread Thiago Macieira
On quinta-feira, 29 de setembro de 2016 22:08:05 PDT Kotanski, Jan wrote: > crashed my gdm (for gnome 3). > > Is it a known problem? How to fix it? if gdm crashes, it's a gdm bug. Please talk to GNOME people for the fix. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect -

Re: [Development] Too long text in qlabel crashes my gdm

2016-09-29 Thread Alexander Nassian
FTR on my macOS machine with Qt 5.7.0 it doesn’t crash. What Qt version do you use? QApplication::UnicodeUTF8 is unknown as well as the translate() overload that your code uses. Beste Grüße / Best regards, Alexander Nassian, bitshift dynamics GmbH > Am 29.09.2016 um 22:08 schrieb Kotanski, Jan :

Re: [Development] Too long text in qlabel crashes my gdm

2016-09-29 Thread Alexander Nassian
Hi, Does this also happen if you use QString instead of char[]? Beste Grüße / Best regards, Alexander Nassian, bitshift dynamics GmbH > Am 29.09.2016 um 22:08 schrieb Kotanski, Jan : > > Hi, > > I've noticed that too long test in qlabel e.g. > > void retranslateUi(QDialog *Dialog) >{ >

[Development] Too long text in qlabel crashes my gdm

2016-09-29 Thread Kotanski, Jan
Hi, I've noticed that too long test in qlabel e.g. void retranslateUi(QDialog *Dialog) { Dialog->setWindowTitle(QApplication::translate("Dialog", "Dialog", 0, QApplication::UnicodeUTF8)); char str[2000]; for(int i=0; i<1999;i++) str[i] = 'a'; str[