-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shadow desktop ceases to update when using --desktop-scaling
< 100%
#4323
Comments
That's odd, is there anything in your client output at all? I did hit some major painting issues with opengl, but none without. |
i downgraded only the client, then tested several client versions against 6.1.1-r0: (freezes = stops updating the client windows a couple of seconds after launching)
the screen freezes exactly before the "xpra shadow server ready" notification is shown in the server. (note that client mouse and keyboard events continue to be forwarded to the sever normally.) |
6.0.x are not supported versions: https://github.com/Xpra-org/xpra/wiki/Versions
Partial workaround: #4319 (comment) |
well i just wanted to do a gross bisection regarding this freezing issue. it was introduced between 6.0 and 6.0.2. |
Thanks, I'm not seeing any freezing here - but I'll try again. |
try linux mint 22 cinnamon, default session. im using that on both sides. |
Oh, and BTW, I don't see how that's possible unless your client display is also using some quite odd scaling settings. |
yes, technically it's actually called bilinear, given that it acts on a 2D surface and has to interpolate linearly in 2 axes, but we are talking about the same thing. |
What is surprising here is that you're saying that the non-opengl client uses linear and the opengl client does not. |
Found a major issue with opengl scaling, which I still don't fully understand but is finally fixed: 775d435 I believe that this is the same issue that you reported here as it requires desktop-scaling to trigger. Feel free to re-open if 6.1.2 doesn't fix things for you. |
that is correct. i hope you don't need to see this with your own eyes, i have tested it repeatedly. i also saw that opengl mode was more power efficient on the client so i wanted to use that, but i couldn't because scaled down text is poorly readable without proper filtering. keep in mind that this is a 5.x client talking to a 6.x server, so it's probably a setup you don't care much to debug.
how does the 6.x server do the downscaling? this is an operation that would benefit from GPU usage. even if today's CPUs can do it, it'd be much more efficient to do it in the GPU. this also applies to image/video encoding of course. does the server use the GPU? can i tell the server NOT to use the GPU? from the client? are you sure |
i can't reopen if a team member closed the issue; only you can. (i could reopen it if i had closed it myself though.)
according to your description, it is not the same bug. unfortunately, as stated in the OP, this issue happens during downscaling even if opengl is disabled in the client. so you can go ahead and reopen this, sorry... |
Typically via xpra/xpra/codecs/libyuv/converter.pyx Line 623 in 4a5f14e
Very much so.
Not always. The pixel data usually resides in CPU memory.
Yes, if available.
Sure:
No.
Yes. Anyway, that turned out to be interesting, as I found lots of small issues along the way:
And the bilinear vs nearest sampling issue is now tracked here: #4326 The bad news is that apart from these issues, I left my connection to the shadow server open for hours and did not experience any other glitches. |
you didn't need to. this bug is extremely reliable, happening 100% of the time and before the "xpra shadow server ready" notification (so, about 2 seconds after starting showing the remote display). EDIT: disregard all that comes next, i got mixed up :(
so the difference between your case and mine seems to be that my server is using the integrated intel GPU and yours is not. which points to they issue probably being worked-around by turning off GPU use in the server.
|
I have no idea where you got this from.
How so?
No, it is not.
Start your server independently via an ssh session and use the |
sorry my bad, in my head i mixed the the bug report regarding start-desktop and this one regarding shadow desktop. so please disregard the previous message. anyway... on both client and server running v6.1.1-r0 on mint 22, as per the OP, trying this command fails because the screen stops refreshing, as described in the OP:
however if i do this, the screen keeps on refreshing! the bug never shows up... weird:
so... there seems to be a race condition. take this command:
in my case, if N >= 5 then the connection works fine. but if N is smaller it tends to stop refreshing the display. the stopping happens exactly as the "xpra shadow server ready" notification is shown in the server, as said earlier. so it's just a question of not connecting before the notification happens. furthermore, if you don't wait and the connection freezes, simply disconnecting and attaching again fixes the issue. (of course this doesn't work with the
so if you add
no delay is needed which means the race condition is gone. maybe consider adding something like |
So the problem is very likely to be related to gstreamer or some other hardware accelerated encoder.
Most command line options are already forwarded to the server automatically, without the need for a Line 786 in 80a3ba3
The problem with encoding options (like |
hi, tested on v6.2.0-r0:
in all, the original bug report is fixed when thanks! |
Describe the bug
shadow desktop ceases to update a couple of seconds after starting when using
--desktop-scaling
< 100%. this happens regardless of whether OpenGL is used. mouse actions in the client to server direction keep on working. no text is displayed in the client console when the image ceases to update.To Reproduce
Steps to reproduce the behavior:
xpra shadow ssh:XXX:0 --desktop-scaling=70%
xpra shadow ssh:XXX:0 --desktop-scaling=70% --opengl=off
System Information (please complete the following information):
Additional context
on both sides:
Desktop: Cinnamon v: 6.2.9 tk: GTK v: 3.24.41 wm: Muffin vt: 7 dm: LightDM v: 1.30.0
standard X11 session
The text was updated successfully, but these errors were encountered: