Xpra: Ticket #2310: Invalid huge packet received by client when trying to connect

"Received invalid packet: packet size requested is 4609517 but maximum allowed is 4194304"

Server is 2.5.1 (r22431), Xubuntu 16.04.6 Clients are 3.0 HEAD (20190524, r22778), Xubuntu 18.04.2.

Problem manifests from one machine when connected over wifi using python2, but not python3. Similarly, connecting over ethernet seems to be fine.

For some reason, "xpra stop :0" locally on the server also seems to trigger it.

Ordinary client connects didn't see to show much of use in the way of logging, but the xpra stop command showed a huge blob of icon data in the hello packet.



Mon, 27 May 2019 12:19:52 GMT - tc424: attachment set


Wed, 29 May 2019 11:45:46 GMT - Antoine Martin: status changed

This is going to be a multi-part thing:

Still TODO:


Wed, 29 May 2019 12:39:35 GMT - Antoine Martin:

r22806 watches for changes to the applications menu list and sends the updated definitions to the clients that support the new xdg-menu-update capability.

Tested by moving the xterm definition away and back again:

sudo mv /usr/share/applications/xterm.desktop $HOME/;
sleep 20;
sudo mv $HOME/xterm.desktop  /usr/share/applications/;

(note: there is a slight delay between the time we get notified of changes and the time we actually send the updated menus - that's to prevent the update storms that are common when applying system updates)

Still TODO:


Wed, 29 May 2019 14:50:20 GMT - tc424:

Is it worth making separate settings for enabling "start new commands (with a command line)" and the new menu? I use the former a lot but doubt I will ever use the latter...


Thu, 30 May 2019 09:21:26 GMT - Antoine Martin: owner, status changed

Is it worth making separate settings for enabling "start new commands (with a command line)" and the new menu? I use the former a lot but doubt I will ever use the latter...

I don't have time for this, sorry.

I think we can close this ticket:

@tc424: please let me know if this fix works for you (packages will be pushed soon)


Mon, 03 Jun 2019 12:57:27 GMT - Antoine Martin:

Same "xdg-data" update code added to the html5 client in r22848..


Tue, 04 Jun 2019 08:41:21 GMT - Antoine Martin:

Caused a bug: #2314, added python3-inotify to recommends in specfile: r22850.


Tue, 11 Jun 2019 16:49:50 GMT - Antoine Martin: status changed; resolution set

Feel free to re-open if you still have problems. The 2.5.2 stable update includes a workaround for this bug.


Mon, 17 Jun 2019 04:12:27 GMT - Antoine Martin:

See also #2335


Sat, 22 Jun 2019 12:35:05 GMT - tc424:

The fixes seem to solve my problem, thank you! Though #2340 is probably a knock-on..


Sat, 23 Jan 2021 05:47:53 GMT - migration script:

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