Xpra: Ticket #2080: ValueError forwarding non-transparent system tray icons to win32 clients

Unknown failure when running gnome-terminal+pidgin.

Server: Ubuntu Xenial 16.04 / xpra v2.5-r21174
Client: Win 10 / xpra 64bit
revision 21159
built on Win7Pro64-PC by Win7 Pro 64
2018-11-29 18:36
using Cython 0.29.1
gcc (Rev3, Built by MSYS2 project) 8.2.0

It could be related to a "user X has signed in" notification from Pidgin (visual+audio+tray icon).

It happen(s) constantly on the session that has pidgin running, regardless of how many times attached + detached

2018-12-13 14:16:17,364  (press Control-C to detach)
Traceback (most recent call last):
  File "./xpra/client/client_tray.py", line 172, in set_tray_icon
  File "./xpra/platform/win32/win32_tray.py", line 89, in set_icon_from_data
  File "./xpra/platform/win32/win32_NotifyIcon.py", line 341, in set_icon_from_data
  File "./xpra/platform/win32/win32_NotifyIcon.py", line 148, in image_to_ICONINFO
  File "C:/msys64/mingw64/lib/python2.7/site-packages/PIL/Image.py", line 738, in tobytes
  File "C:/msys64/mingw64/lib/python2.7/site-packages/PIL/Image.py", line 467, in _getencoder
ValueError: No packer found from RGBX to BGRA
Traceback (most recent call last):
  File "./xpra/client/client_tray.py", line 172, in set_tray_icon
  File "./xpra/platform/win32/win32_tray.py", line 89, in set_icon_from_data
  File "./xpra/platform/win32/win32_NotifyIcon.py", line 341, in set_icon_from_data
  File "./xpra/platform/win32/win32_NotifyIcon.py", line 148, in image_to_ICONINFO
  File "C:/msys64/mingw64/lib/python2.7/site-packages/PIL/Image.py", line 738, in tobytes
  File "C:/msys64/mingw64/lib/python2.7/site-packages/PIL/Image.py", line 467, in _getencoder
ValueError: No packer found from RGBX to BGRA
2018-12-13 14:16:18,933 sound output using 'opus' audio codec

(you may rename the ticket after figuring out the issue)

This issue might be related to connection quality / timeout issues, but I am not sure.

Download
67 Mbps
Latency
Unloaded
79 ms
Loaded
133 ms
 Upload
Speed
27 Mbps


Thu, 13 Dec 2018 19:00:41 GMT - Antoine Martin: status, summary changed

That's odd. We should have been handling non-transparent system tray icons on win32, r21224 fixes that.

But I cannot seem to get any application to send non-transparent icons - which is why I have never hit this bug, so I will have to test on an Ubuntu 16.04 VM to see if the problem comes from there somehow.


Sat, 19 Jan 2019 13:24:42 GMT - Antoine Martin: owner, status changed

@stdedos: can you reproduce this with any of the windows builds from https://xpra.org/beta?


Thu, 31 Jan 2019 13:21:32 GMT - Antoine Martin: status changed; resolution set


Thu, 31 Jan 2019 14:49:17 GMT - stdedos:

I have ran a small verification, no issues. I will try harder in some days' time


Sat, 23 Jan 2021 05:41:41 GMT - migration script:

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