You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by 冰红糖 <12...@qq.com.INVALID> on 2025/08/21 08:25:30 UTC
[RESEND] RDP Resize Issue on Guacamole 1.5.5
Hi all,
I just subscribed to this mailing list and would like to resend my question regarding an RDP resize issue in Guacamole 1.5.5.
**Environment:**
- Guacamole server and client version: 1.5.5
- Server deployment: Virtual machine, Kylin 10 OS
- Remote target: Windows Server 2016 / 2019
**Issue:**
- On the server, `resize-method` is configured as `display-update`.
- guacd.log outputs: "Resize method: display-update"
- On the client side, `guac.sendSize(width, height);` is used.
- Despite this, the resize is not functioning as expected.
Could anyone provide guidance on whether there are additional configurations or steps required to make RDP resize work in this setup?
Thanks in advance for any help!
Best regards,
Tom
冰红糖
1256361994@qq.com
Re: [RESEND] RDP Resize Issue on Guacamole 1.5.5
Posted by Nick Couchman <vn...@apache.org>.
On Fri, Aug 22, 2025 at 5:24 AM 冰红糖 <12...@qq.com.invalid> wrote:
> *Issue description:*
> When I resize the browser window, the remote desktop screen does *not
> change size at all*. There is no scaling, resizing, or partial update —
> the display remains at the original size.
>
> *Observations:*
>
> 1.
>
> On the frontend, guac.sendSize(width, height) is being called
> correctly. For example, console logs show messages like:
>
> 4.size,4.1920,3.1080
>
>
> 2.
>
> On the guacd side, the log shows:
>
> Resize method: display-update
> Display update channel will be used for display size changes
>
> …but there are *no logs indicating that a display size change was
> received or processed*, such as:
>
> RDPDR: Display update: 1920x1080rdp_disp: Received display update request ...
>
>
> 3.
>
> Java server-side configuration:
>
> GuacamoleConfiguration configuration = new GuacamoleConfiguration();
> configuration.setParameter("resize-method", "display-update");
>
>
> 4.
>
> Frontend resize handling code (React + Guacamole client):
>
> const handleResize = _.debounce(() => {
> if (guac) {
> const display = guac.getDisplay();
> const clientWidth = window.innerWidth * (window.devicePixelRatio || 1);
> const clientHeight = window.innerHeight * (window.devicePixelRatio || 1);
> const minScale = Math.min(clientWidth / display.getWidth(), clientHeight / display.getHeight());
> const maxScale = Math.min(minScale, 3);
> const scale = display.getScale();
> if (scale <= minScale || guac.autoFit) {
> display.scale(minScale);
> } else {
> display.scale(maxScale);
> }
> display.onresize = (e) => { console.log(e); };
> }
> }, 1000);
>
>
Where is your call to "sendSize()"?
> *Additional info:*
>
> -
>
> guacd was built from source.
> -
>
> Logs are set to trace level.
> -
>
> Frontend WebSocket messages for resize are visible, but guacd does not
> log any processing of them.
>
>
Visible where? On the JavaScript console? Are you sure they're actually
being sent from the client down to the Tomcat server?
-Nick
回复: [RESEND] RDP Resize Issue on Guacamole 1.5.5
Posted by 冰红糖 <12...@qq.com.INVALID>.
Issue description:
When I resize the browser window, the remote desktop screen does not change size at all. There is no scaling, resizing, or partial update — the display remains at the original size.
Observations:
On the frontend, guac.sendSize(width, height) is being called correctly. For example, console logs show messages like:
4.size,4.1920,3.1080
On the guacd side, the log shows:
Resize method: display-update Display update channel will be used for display size changes
…but there are no logs indicating that a display size change was received or processed, such as:
RDPDR: Display update: 1920x1080 rdp_disp: Received display update request ...
Java server-side configuration:
GuacamoleConfiguration configuration = new GuacamoleConfiguration(); configuration.setParameter("resize-method", "display-update");
Frontend resize handling code (React + Guacamole client):
const handleResize = _.debounce(() => { if (guac) { const display = guac.getDisplay(); const clientWidth = window.innerWidth * (window.devicePixelRatio || 1); const clientHeight = window.innerHeight * (window.devicePixelRatio || 1); const minScale = Math.min(clientWidth / display.getWidth(), clientHeight / display.getHeight()); const maxScale = Math.min(minScale, 3); const scale = display.getScale(); if (scale <= minScale || guac.autoFit) { display.scale(minScale); } else { display.scale(maxScale); } display.onresize = (e) => { console.log(e); }; } }, 1000);
Additional info:
guacd was built from source.
Logs are set to trace level.
Frontend WebSocket messages for resize are visible, but guacd does not log any processing of them.
Request:
I would appreciate guidance on how to debug why the display-update messages are not causing any remote desktop resizing, even though both the frontend and server appear to be configured correctly. I can also provide screenshots of the guacd logs showing the messages being sent.
Thank you very much for your help!
冰红糖
1256361994@qq.com
------------------ 原始邮件 ------------------
发件人: "user" <vnick@apache.org>;
发送时间: 2025年8月21日(星期四) 晚上10:11
收件人: "user"<user@guacamole.apache.org>;
主题: Re: [RESEND] RDP Resize Issue on Guacamole 1.5.5
On Thu, Aug 21, 2025 at 9:38 AM 冰红糖 <1256361994@qq.com.invalid> wrote:
Hi all,
Following up on the resize issue, here is a summary of what I have verified and tested so far:
- Server: Guacamole 1.5.5 (guacd 1.5.5) deployed on Kylin 10 VM
- Client: Custom web client, where I use Java to configure `resize-method`
- Remote system: Windows Server 2016 / 2019
- On the server side, guacd.log shows: "Resize method: display-update"
- On the frontend side, I use a `ResizeObserver` which calls `guac.sendSize(width, height)` whenever the browser window changes size
- I have confirmed that `resize-method` is not hardcoded on the client side, but configured via Java (on the server side configuration)
So far, everything seems correctly configured, but the dynamic resize behavior is still not working as expected.
Again, what does "not working as expected" mean? You don't see a resize at all? Or it happens but something else happens - it's wrong, or delayed, etc.?
I would appreciate some guidance on the following points:
1. Regarding the **guacamole-client source code**:
- Which part of the codebase should I review to better understand how the `sendSize()` call from the frontend is handled and passed to `guacd`?
The code that handles it in the main client is here:
https://github.com/apache/guacamole-client/blob/457e3a583e0095c063833fad1e35c374ea9c5f67/guacamole/src/main/frontend/src/app/client/directives/guacClient.js#L444-L472
2. Regarding **enabling guacd debug mode**:
- What is the proper way to enable debug logging for `guacd`?
- Is there any official documentation on enabling debug and interpreting logs, particularly for checking if resize messages are being received by `guacd`?
Enabling debugging is describe in the manual:
https://guacamole.apache.org/doc/gug/configuring-guacamole.html#configuring-guacd
I don't think there's anything specific to resize messages, you'll just have to bump up the log level to either debug or trace and see what you get. On the web/front-end side there's nothing specific to Guacamole, you'll just need to use the standard tools you'd use in JavaScript - logging to the console, breakpoints and watches, etc.
-Nick
Re: [RESEND] RDP Resize Issue on Guacamole 1.5.5
Posted by Nick Couchman <vn...@apache.org>.
On Thu, Aug 21, 2025 at 9:38 AM 冰红糖 <12...@qq.com.invalid> wrote:
> Hi all,
>
> Following up on the resize issue, here is a summary of what I have
> verified and tested so far:
>
> - Server: Guacamole 1.5.5 (guacd 1.5.5) deployed on Kylin 10 VM
> - Client: Custom web client, where I use Java to configure
> `resize-method`
> - Remote system: Windows Server 2016 / 2019
> - On the server side, guacd.log shows: "Resize method: display-update"
> - On the frontend side, I use a `ResizeObserver` which calls
> `guac.sendSize(width, height)` whenever the browser window changes size
> - I have confirmed that `resize-method` is not hardcoded on the client
> side, but configured via Java (on the server side configuration)
>
> So far, everything seems correctly configured, but the dynamic resize
> behavior is still not working as expected.
>
>
Again, what does "not working as expected" mean? You don't see a resize at
all? Or it happens but something else happens - it's wrong, or delayed,
etc.?
> I would appreciate some guidance on the following points:
>
> 1. Regarding the **guacamole-client source code**:
> - Which part of the codebase should I review to better understand how
> the `sendSize()` call from the frontend is handled and passed to `guacd`?
>
>
The code that handles it in the main client is here:
https://github.com/apache/guacamole-client/blob/457e3a583e0095c063833fad1e35c374ea9c5f67/guacamole/src/main/frontend/src/app/client/directives/guacClient.js#L444-L472
> 2. Regarding **enabling guacd debug mode**:
> - What is the proper way to enable debug logging for `guacd`?
> - Is there any official documentation on enabling debug and
> interpreting logs, particularly for checking if resize messages are being
> received by `guacd`?
>
>
Enabling debugging is describe in the manual:
https://guacamole.apache.org/doc/gug/configuring-guacamole.html#configuring-guacd
I don't think there's anything specific to resize messages, you'll just
have to bump up the log level to either debug or trace and see what you
get. On the web/front-end side there's nothing specific to Guacamole,
you'll just need to use the standard tools you'd use in JavaScript -
logging to the console, breakpoints and watches, etc.
-Nick
回复: [RESEND] RDP Resize Issue on Guacamole 1.5.5
Posted by 冰红糖 <12...@qq.com.INVALID>.
Hi all,
Following up on the resize issue, here is a summary of what I have verified and tested so far:
- Server: Guacamole 1.5.5 (guacd 1.5.5) deployed on Kylin 10 VM
- Client: Custom web client, where I use Java to configure `resize-method`
- Remote system: Windows Server 2016 / 2019
- On the server side, guacd.log shows: "Resize method: display-update"
- On the frontend side, I use a `ResizeObserver` which calls `guac.sendSize(width, height)` whenever the browser window changes size
- I have confirmed that `resize-method` is not hardcoded on the client side, but configured via Java (on the server side configuration)
So far, everything seems correctly configured, but the dynamic resize behavior is still not working as expected.
I would appreciate some guidance on the following points:
1. Regarding the **guacamole-client source code**:
- Which part of the codebase should I review to better understand how the `sendSize()` call from the frontend is handled and passed to `guacd`?
2. Regarding **enabling guacd debug mode**:
- What is the proper way to enable debug logging for `guacd`?
- Is there any official documentation on enabling debug and interpreting logs, particularly for checking if resize messages are being received by `guacd`?
Any pointers, documentation, or examples would be very helpful.
冰红糖
1256361994@qq.com
------------------ 原始邮件 ------------------
发件人: "user" <vnick@apache.org>;
发送时间: 2025年8月21日(星期四) 晚上9:12
收件人: "user"<user@guacamole.apache.org>;
主题: Re: [RESEND] RDP Resize Issue on Guacamole 1.5.5
On Thu, Aug 21, 2025 at 4:25 AM 冰红糖 <1256361994@qq.com.invalid> wrote:
Hi all,
I just subscribed to this mailing list and would like to resend my question regarding an RDP resize issue in Guacamole 1.5.5.
**Environment:**
- Guacamole server and client version: 1.5.5
- Server deployment: Virtual machine, Kylin 10 OS
- Remote target: Windows Server 2016 / 2019
**Issue:**
- On the server, `resize-method` is configured as `display-update`.
- guacd.log outputs: "Resize method: display-update"
- On the client side, `guac.sendSize(width, height);` is used.
- Despite this, the resize is not functioning as expected.
A few questions:
* It sounds like you're writing your own custom client and not using the default Guacamole one?
* Could you define what you mean by "the resize is not functioning as expected?"
* What have you done to troubleshoot this? Have you done any debugging to make sure that the resize command is being sent to guacd, is being processed by guacd, is being sent on to the RDP server, etc.?
You're going to have to provide *MUCH* more detail in order for us to help you at all - the information you've provided is way too minimal.
Could anyone provide guidance on whether there are additional configurations or steps required to make RDP resize work in this setup?
Look at the code for the official Guacamole Client and follow the steps that are taken in it in order to handle the resize.
Enable debug or trace in guacd and see if you see the resize sent through.
-Nick
Re: [RESEND] RDP Resize Issue on Guacamole 1.5.5
Posted by Nick Couchman <vn...@apache.org>.
On Thu, Aug 21, 2025 at 4:25 AM 冰红糖 <12...@qq.com.invalid> wrote:
> Hi all,
>
> I just subscribed to this mailing list and would like to resend my
> question regarding an RDP resize issue in Guacamole 1.5.5.
>
> **Environment:**
> - Guacamole server and client version: 1.5.5
> - Server deployment: Virtual machine, Kylin 10 OS
> - Remote target: Windows Server 2016 / 2019
>
> **Issue:**
> - On the server, `resize-method` is configured as `display-update`.
> - guacd.log outputs: "Resize method: display-update"
> - On the client side, `guac.sendSize(width, height);` is used.
> - Despite this, the resize is not functioning as expected.
>
>
A few questions:
* It sounds like you're writing your own custom client and not using the
default Guacamole one?
* Could you define what you mean by "the resize is not functioning as
expected?"
* What have you done to troubleshoot this? Have you done any debugging to
make sure that the resize command is being sent to guacd, is being
processed by guacd, is being sent on to the RDP server, etc.?
You're going to have to provide *MUCH* more detail in order for us to help
you at all - the information you've provided is way too minimal.
> Could anyone provide guidance on whether there are additional
> configurations or steps required to make RDP resize work in this setup?
>
>
Look at the code for the official Guacamole Client and follow the steps
that are taken in it in order to handle the resize.
Enable debug or trace in guacd and see if you see the resize sent through.
-Nick