Xpra: Ticket #2244: AssertionError: Invalid buffer size: 26 is not a multiple of 4

Greetings,

I am running a Java application using Xpra. when I click on a menu item, a dialog box is displayed. when the dialog is shown I get a log saying

forcing grab for OR window n, matches {'DIALOG': ['sun-awt-X11']}

After the dialog is closed,
the menu doesn't work properly, its menu items are shown in the wrong position and it disappears whenever I release the mouse.

also the following message is shown:

AssertionError: Invalid buffer size: 26 is not a multiple of 4

(please check attached screenshot)

I couldn't share an example because I do not have the source code of the application.

it might help to note that the menus are heavyweight menus
Client: Microsoft Windows 7 Xpra 2.5 (r-22135)
Server: Linux 3.10.0-693.el7.x86_64 Xpra 2.5 (r-22138)



Mon, 01 Apr 2019 10:38:57 GMT - Khalidjh: attachment set


Mon, 01 Apr 2019 10:39:09 GMT - Khalidjh: attachment set


Mon, 01 Apr 2019 11:33:52 GMT - Antoine Martin: owner changed; milestone set

Try running your win32 client after setting:

set XPRA_OR_FORCE_GRAB="NOMATCH"
Xpra_cmd.exe attach ...

More details here: #1980

If that doesn't help then I am afraid that I will not be able to fix things unless I can play with the problematic application.

The "multiple of 4" issue has been fixed already, you can use one of the newer beta builds to get that fix. This should only affect the window icon. It should be harmless.


Thu, 30 May 2019 15:23:31 GMT - Antoine Martin: status changed; resolution set


Sat, 23 Jan 2021 05:46:02 GMT - migration script:

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