[ 
https://issues.apache.org/jira/browse/GUACAMOLE-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17361757#comment-17361757
 ] 

Jimmy commented on GUACAMOLE-1354:
----------------------------------

[~mjumper] I checked that the guacamole client sends the "ack". It always sends 
the "ack" message.

Instead, it happens that the guacd frequently doesn't receive the "ack" message.

I found the following facts.

In cases that the guacd receives the "ack" message prior to the call 
*guac_rdp_print_job_wait_for_ack()*, I never see this issue.

But, this issue happens only if the guacd doesn't receive the "ack" message 
prior to the call of *guac_rdp_print_job_wait_for_ack()*.

In *guac_rdp_print_job_wait_for_ack()*, the call of *pthread_cond_wait()* 
freezes the current guacd process.

I can't know why.

> Printing problem that freezes the guacd
> ---------------------------------------
>
>                 Key: GUACAMOLE-1354
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1354
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-client, guacamole-server
>    Affects Versions: 1.3.0
>         Environment: Windows Server 2019 Datacenter, Ubuntu 18.04, Chrome: 
> 90.0.4430.212, Windows 10 Pro 20H2
>            Reporter: Jimmy
>            Priority: Minor
>         Attachments: guacd-printing.log, image-2021-05-25-11-05-36-823.png, 
> image-2021-05-28-16-15-17-531.png
>
>
> I found the printing problem that freezes the guacd when printing quickly and 
> successively.
>   
>  *[Test environment]*
>  RDP Server: Windows Server 2019 Datacenter
>  Server: Ubuntu 18.04
>  Guacamole Client: 
> [#6644955f|https://github.com/apache/guacamole-client/commit/6644955fff07db7844f0b495b4abfabf2b700e21]
>  on master branch
>  Guacamole Server: 
> [#44145f68|https://github.com/apache/guacamole-server/commit/44145f681aa3cf08e9cf01e99a68096c77bcab39]
>  on master branch
>  Chrome: 90.0.4430.212
>  User: Windows 10 Pro, 20H2
> *[Test case]*
>  # Connect to Windows Server 2019 through Apache guacamole.
>  # Open *Notepad*.
>  # Type some text.
>  # Press Ctrl+P and select *Guacamole Printer.*
>  # Click *"Print"* button.
> !image-2021-05-25-11-05-36-823.png!
> When repeating step 4 and 5 quickly and successively, we can see this issue 
> soon.
>  I attach the guacamole server log when encountering the freeze issue.
> *[Rough Analysis]*
>  When the guacd doesn't receive *GUAC_RDP_PRINT_JOB_ACK_RECEIVED* from the 
> guacamole client due to unknown reason, *guac_rdp_print_job_wait_for_ack()* 
> function suspends execution of the *guac_rdp_print_job_output_thread()* 
> thread for ever.
>  
> Thanks.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to