-
Notifications
You must be signed in to change notification settings - Fork 1
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
Random disconnects from RDP session on M1 macmini #20
Comments
I followed the instructions here to debug. Here is the log from It ended with Segmentation fault. Relevant lines before crash: exerpt from xrdp log
|
I compiled and run as x86_64 on M1 macmini using Rosetta. Note that this is probably a separate issue though |
I have created a branch that adds more logging. Specifically, I added few lines of LOG() in ssl_tls_write(): https://github.com/laggykiller/xrdp-tumod/blob/c086bb8270a70a392e9c4f2a460780a53c168ea5/common/ssl_calls.c#L1353 It seems like using guacamole is faster, but more easy to cause the crash (Just by opening youtube). Using Windows remote desktop connection can also cause crash if you scroll up and down youtube many times quickly. Interestingly, sometimes xrdp closs connection but does not cause crash (No segmentation error and no crash log seen in console) if I use Windows remote desktop connection instead of guacamole. xrdp crashes under different conditions produce different stdout and crash report. Condition 1 (SSL_write: Failure in SSL library (protocol error?))
Condition 2 (SSL_write: I/O error [Error code 5])
Condition 3 (malloc: Heap corruption)
Condition 4 (segmentation fault)
Seems like condition 1 can be avoided by changing xrdp.ini:
to
Note that SSL error code 5 corresponds to SSL_ERROR_SYSCALL (https://github.com/openssl/openssl/blob/7b8e27bc2e02238986d89ef0ece067ec1b48e165/include/openssl/ssl.h.in#L1209C10-L1209C27) |
(machine translated) Sorry for the late reply. To solve this problem, it may be necessary to optimize Ulalaca's screen update logic. However, the following measures are currently available:
|
RDP session disconnects randomly. I cannot find specific actions that can trigger the disconnect, but seems like:
I installed following this guide: https://teamunstablers.notion.site/xrdp-Ulalaca-Getting-started-f82b0c55f0b540a6ac277cc5902361b1
Here is the settings for guacamole:
Settings for Guacamole
Note that I am using arm64 Ventura, not sure if this is related.
Here is xrdp log from one of the crashes, copied from console:
xrdp log
The text was updated successfully, but these errors were encountered: