Closed jeffmax closed 7 months ago
Please provide the log samples corresponding to the problematic screen updates using the -d compress
command line debug option.
I removed the --desktop-scaling flag when I ran this. It starts out fine, I am using the first sheet for a few seconds, the whole screen goes fuzzy/blurry, then the portion of the upper left sheet I am typing in becomes clear and the rest is fuzzy, and then finally at the end, the whole thing comes back into focus. Log attached. libreoffice-calc-html5-log.txt
Thanks for the logs.
The application is correctly detected as text
, so there should not be any lossy screen updates.
But I do see some downscaled jpeg
screen updates in there (everything else is lossless):
$ grep "scaled_size" libreoffice-calc-html5-log.txt
│ 2024-02-14 14:18:38,855 compress: 10.8ms for 2046x1050 pixels at 0,0 for wid=4 using jpeg with ratio 1.2% ( 8392KB to 97KB), sequence 366, client_options={'csc-type': 'swscale', 'scaled_size': (1022, 524), 'encoder': 'jpeg', 'flush': 0}, options={'quality': 75, 'speed': 55, 'rgb_formats': ('RGBX', 'RGBA', 'RGB'), 'lz4': True, 'content-type': 'text', 'av-delay': 0, 'cuda-device-context': None} │
│ 2024-02-14 14:18:42,342 compress: 9.2ms for 2046x1050 pixels at 0,0 for wid=4 using jpeg with ratio 2.3% ( 8392KB to 192KB), sequence 391, client_options={'csc-type': 'swscale', 'scaled_size': (1022, 524), 'encoder': 'jpeg', 'flush': 0}, options={'quality': 100, 'speed': 55, 'rgb_formats': ('RGBX', 'RGBA', 'RGB'), 'lz4': True, 'content-type': 'text', 'av-delay': 0, 'cuda-device-context': None} │
│ 2024-02-14 14:18:44,490 compress: 9.6ms for 2046x1050 pixels at 0,0 for wid=4 using jpeg with ratio 2.3% ( 8392KB to 192KB), sequence 418, client_options={'csc-type': 'swscale', 'scaled_size': (1022, 524), 'encoder': 'jpeg', 'flush': 0}, options={'quality': 100, 'speed': 55, 'rgb_formats': ('RGBX', 'RGBA', 'RGB'), 'lz4': True, 'content-type': 'text', 'av-delay': 0, 'cuda-device-context': None} │
│ 2024-02-14 14:18:45,308 compress: 9.0ms for 2046x1050 pixels at 0,0 for wid=4 using jpeg with ratio 1.1% ( 8392KB to 91KB), sequence 443, client_options={'csc-type': 'swscale', 'scaled_size': (1022, 524), 'encoder': 'jpeg', 'flush': 0}, options={'quality': 70, 'speed': 58, 'rgb_formats': ('RGBX', 'RGBA', 'RGB'), 'lz4': True, 'content-type': 'text', 'av-delay': 0, 'cuda-device-context': None}
I believe that this issue is already fixed in https://github.com/Xpra-org/xpra/commit/fc89e36c0b11bb9cc5cb7a28706787e66ee911fb and will be included in v5.0.6 @jeffmax Please try the latest beta builds or apply this change by hand.
@totaam That completely fixed it, thank you! I came very close to trying the beta yesterday before posting this, but did not.
I have been trying to run LibreOffice Calc using Xpra. When the application first starts things look good. As I continue to use it for a few seconds the areas in the sheet around where I am typing become blurry for a while, and then it eventually resolves. Scrolling will sometimes leave the whole screen blurry for a while. I've tried a number of settings and did notice that forcing it to use the
webp
encoding worked (although updates to typing in a cell became slow as if it wasn't detecting the change on screen). Reading through issues I thought that it might have to do with deskstop-scaling so I set that tooff
and1
(I was not sure which was correct), but that did not fix the issue (it does seem to take a bit longer to happen though).I started to suspect that I might not have all the encodings/codecs available to Xpra. I did follow the specific instructions for installing the server on Jammy. I am using xpra v5.0.5-r1 with the bundled HTML5 client in Chrome 121.0.6167.160 on OS X.
This is the output of
xpra encoding
I also noticed that when I connect manually via the client the
offscreen decoding
checkbox was greyed/disabled for me.This is the latest set of flags I have tried while starting, but I have been iterating over many options with no luck aside from setting --encodings=webp.
/usr/bin/xpra start :1 --html=on --mdns=no --notifications=yes --exit-with-children --speaker=off --av-sync=no --file-transfer=no --idle-timeout=1800 --socket-dir=/run/user/1000/xpra --use-display=no --daemon=no --tray=no --desktop-scaling=1 --mousewheel=on --start-child='libreoffice --calc'
I tried the same thing on Debian Bookworm, the problem was the same.
Appreciate any advice anyone may have. Thanks!