Xpra: Ticket #571: Can't start Qt 4.8.4 applications

Qt 4.8.4 applications crash on startup with:

ASSERT: "uint(i) < uint(size())" in file ../../include/QtCore/../../src/corelib/tools/qstring.h, line 677

I had this crash for many Xpra versions, but looked into it a bit further now. It is related to Qt getting window properties by calling XGetWindowProperty. The properties have an additional '\n', which causes the crash. I guess Qt is at fault here, but I can't update Qt for these apps and fixed it by removing the additional new line from xpra's server.py.

Wed, 14 May 2014 09:44:56 GMT - rikky: attachment set

Wed, 14 May 2014 10:04:33 GMT - Antoine Martin: priority, status, description changed; resolution set

Well, that's a major problem, I can't believe no one has reported until now.

Thanks for the patch, applied to trunk in r6458 and v0.12.x in r6459.

Sat, 23 Jan 2021 04:59:42 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/571