On Dec 21, 2024, at 5:59 PM, Andrea Farina <andreaf...@gmail.com> wrote:
Dear DRC,
--
You received this message because you are subscribed to the Google Groups "TurboVNC User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbovnc-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/c38c9db9-c7d7-44e4-a9c2-0fd418275033n%40googlegroups.com.
On Dec 22, 2024, at 3:27 AM, Andrea Farina <andreaf...@gmail.com> wrote:
Dear DRC, sorry I'm not so expert in those things!
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/fbb360c7-7778-4844-84cf-d9790b47c926n%40googlegroups.com.
Il giorno 22 dic 2024, alle ore 17:35, 'DRC' via TurboVNC User Discussion/Support <turbovn...@googlegroups.com> ha scritto:
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/125177A4-46A9-4C50-9F35-5FCD5A1A75A1%40virtualgl.org.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/FDC0649F-3191-4E32-883B-8EF9D14A1E96%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/DBDA2518-C456-4C6C-8B42-E02E4190D3A1%40virtualgl.org.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/A6ECA3FF-63B7-456A-A940-F31FC3BA9F67%40gmail.com.
<log_without_geometry_working.log>
--
You received this message because you are subscribed to the Google Groups "TurboVNC User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbovnc-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/A6ECA3FF-63B7-456A-A940-F31FC3BA9F67%40gmail.com.
<log_with_geometry_not_working.log>
--
You received this message because you are subscribed to the Google Groups "TurboVNC User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbovnc-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/A6ECA3FF-63B7-456A-A940-F31FC3BA9F67%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/C7663621-67D6-4D52-AEDD-8C94812E7C30%40virtualgl.org.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/208507FE-4B86-4B4E-8665-85A6C09FAF73%40gmail.com.
Reproduced. In my case, specifying -geometry (or $geometry in turbovncserver.conf) never works. It fails with the "Oh No! Something has gone wrong!" screen if I specify 1440x900, but it fails with a black screen otherwise. The same happens with TigerVNC, and TigerVNC's startup mechanism is so different from TurboVNC's that that strongly suggests a GNOME bug. Other window managers, such as MATE or Xfce, work fine. As a workaround, you can start the TurboVNC Server with no arguments and then pass '-desktopsize 1440x900' to the TurboVNC Viewer when connecting (or enter 1440x900 into the "Remote desktop size" field of the Connection tab in the TurboVNC Viewer Options dialog.)
I am investigating whether a more
automatic workaround might be possible.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/208507FE-4B86-4B4E-8665-85A6C09FAF73%40gmail.com.
Disregard my previous remark about a black
screen. That was user error. I can now reproduce exactly the
issue you report. In fact, specifying any resolution that is in
the default list of resolutions reported by X RandR causes the
failure. If I remove 1440x900 and 1920x1080 from that list,
then those resolutions can then be selected with
-geometry/$geometry. Same goes for the TigerVNC Server. I am
still investigating.
Unfortunately I am clueless at this
point. Given that the issue also occurs with TigerVNC and
doesn't occur with any other WM or any other O/S distribution,
there isn't much I can do to isolate it. I googled around and
didn't find any other reports of it. There unfortunately isn't
anything else I can do barring further information.
It does in fact appear that I can work around this by changing our X RandR logic. Stand by. I will look into it more early next week.
Never mind. The workaround was a red herring. I discovered that I could work around the immediate problem, whereby GNOME crashes if one of the default X RandR resolutions is initially specified in the TurboVNC session (by using -geometry/$geometry), but then if I change the resolution with 'xrandr -s', the crash still occurs. Both the O/S-provided TigerVNC 1.13.1 package and the project-provided TigerVNC 1.14.1 package demonstrate some variation of the same issue. The O/S-provided package behaves similarly to TurboVNC. The project-provided package behaves similarly to the workaround I tried, in that it allows a default X RandR resolution to be initially selected with -geometry/$geometry but subsequently fails if a default X RandR resolution is selected with 'xrandr -s'. (If a default X RandR resolution was initially selected, then attempting to select another default resolution with 'xrandr -s' causes the resolution to briefly change but immediately revert to the previous resolution. If a non-default X RandR resolution was initially selected, then attempting to select a default resolution with 'xrandr -s' causes GNOME to stop displaying the desktop or responding to input, so it has effectively crashed.)
Note that I can also reproduce the failure with recent versions of GNOME on Fedora. Based on the fact that GNOME 44 in Fedora 38 fails but GNOME 42 in Ubuntu 22.04 doesn't, the issue must have been introduced in GNOME 43 or 44.
I could unfortunately write a book about how GNOME has become increasingly hostile to remote display environments. I could write another book about how Wayland has complicated the remote display picture to the point that Linux remote display developers basically can't figure out where to go from here. For me personally, I'm trying to maintain TurboVNC as best I can, but with no R&D budget or staff or salary, I have no ability to be proactive or forward-looking. That's why, when I observe issues like this with a recent platform, I look at TigerVNC to see if they have fixed or worked around it. (Development of TigerVNC is primarily funded through sales of a commercial/semi-proprietary product built around it, so they have a lot more flexibility than I do.) If they have fixed or worked around it, then I can adopt their fix. Otherwise, however, I unfortunately can't devote the weeks of labor that would likely be required to track this down, since no one is paying for that labor. My standard rant on this is that Linux graphics stack developers are acting as if remote display has no relevance, when I would argue that the potential relevance of Linux as a remote display platform is much higher than the potential relevance of Linux as a desktop platform.
tl;dr: Use the workaround I mentioned
earlier, i.e. changing the resolution remotely, or use another
window manager.