winapps icon indicating copy to clipboard operation
winapps copied to clipboard

Doesn't work if no external monitor plugged in.

Open eylenburg opened this issue 2 years ago • 3 comments

The window ONLY works on the external screen for me, so if I don't have an external screen I won't get the window but instead get something high CPU use. With an external screen plugged in, the app starts as expected, pops up on the external screen and I can move it to the built-in screen.

Without an external screen, the app doesn't show up at all, and interestingly it doesn't show up in the taskbar or overview either. The task manager shows the app running and using 8.3% of my CPU constantly.

This problem even persists if the app was last on the built-in screen. So it's not just remembering its old position on the external screen.

The built-in screen is set as the default display in the system settings.

I tried to run this in the terminal without the external monitor, e.g. by navigating to the winapps folder and executing ./winapps excel-o365 %F but nothing happens (as in, I can enter the next command). Next I see my fans going on and the system monitor shows me a xfreerdp process using 8.3% of my CPU. (But no "Excel" in the Applications section, I have to go to the Processes section to see this.)

Now, If I plug the monitor back in and run winapps check it suddenly opens a dozen windows which failed to open before. Without the high CPU use, too.

Apps tried: Excel, Powerpoint, Word, Windows Explorer System detail: OpenSUSE Tumbleweed, KDE Plasma 5.27.9, Wayland, freerdp 2.11.2, AMD GPU Scaling: built-in monitor has 150% scaling, external has 100% scaling. winapps.config set to RDP_SCALE=140 but it also doesn't work when the RDP_SCALE parameter is commented out.

eylenburg avatar Nov 15 '23 16:11 eylenburg

Have you checked if there's any issues on the freerdp repo about this?

oskardotglobal avatar Nov 15 '23 17:11 oskardotglobal

I didn't manage to find a fitting issue in their tracker. I'll post it there as well for visibility.

This one could be a similar bug but I think it refers to another scenario where you want to have a dual-monitor RDP session rather than just one window.

I also tried adding /monitors:0 to the winapps.conf, so that now it reads RDP_FLAGS="/kbd:0x00000452 /monitors:0" (I had the other flags for my keyboard layout). But that just results in no window appearing and the task manager showing the app running with 8.3% CPU use.

eylenburg avatar Nov 15 '23 17:11 eylenburg

Actually today I can't connect to the virtual machine at all... I don't know what changed.

user@localhost:~> virsh net-dhcp-leases default
 Expiry Time           MAC address         Protocol   IP address          Hostname     Client ID or DUID
-------------------------------------------------------------------------------------------------------------
 2023-11-16 11:50:55   52:54:00:e0:37:5c   ipv4       192.168.122.48/24   RDPWindows   01:52:54:00:e0:37:5c

user@localhost:~> xfreerdp /u:user /p:winapps /v:192.168.122.48
[10:53:25:699] [3617:3618] [WARN][com.freerdp.crypto] - Certificate verification failure 'self-signed certificate (18)' at stack position 0
[10:53:25:699] [3617:3618] [WARN][com.freerdp.crypto] - CN = RDPWindows
[10:53:26:002] [3617:3618] [INFO][com.freerdp.gdi] - Local framebuffer format  PIXEL_FORMAT_BGRX32
[10:53:26:002] [3617:3618] [INFO][com.freerdp.gdi] - Remote framebuffer format PIXEL_FORMAT_BGRA32
[10:53:26:017] [3617:3618] [INFO][com.freerdp.channels.rdpsnd.client] - [static] Loaded fake backend for rdpsnd
[10:53:26:017] [3617:3618] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel rdpgfx
[10:53:26:524] [3617:3618] [INFO][com.freerdp.client.x11] - Logon Error Info LOGON_WARNING [LOGON_MSG_SESSION_CONTINUE]
[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - Caught signal 'Terminated' [15]
[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 0: /lib64/libwinpr2.so.2(winpr_backtrace+0x4e) [0x7fb941947fee]

[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 1: /lib64/libwinpr2.so.2(winpr_log_backtrace_ex+0x30) [0x7fb941949d90]

[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 2: /lib64/libfreerdp2.so.2(+0x3150e) [0x7fb941b0d50e]

[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 3: /lib64/libc.so.6(+0x3f190) [0x7fb94163f190]

[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 4: /lib64/libc.so.6(__poll+0x51) [0x7fb941709d7f]

[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 5: /lib64/libwinpr2.so.2(+0x420b9) [0x7fb9419360b9]

[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 6: /lib64/libwinpr2.so.2(WaitForSingleObjectEx+0x227) [0x7fb941936687]

[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 7: xfreerdp(+0x83d4) [0x563ce878c3d4]

[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 8: /lib64/libc.so.6(+0x281b0) [0x7fb9416281b0]

[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 9: /lib64/libc.so.6(__libc_start_main+0x8b) [0x7fb941628279]

[10:53:52:758] [3617:3617] [ERROR][com.freerdp.utils] - 10: xfreerdp(_start+0x27) [0x563ce878c485]

Terminated

black window with FreeRDP title appears, CPU goes up to 8.3% and fans come on, nothing happens further, the window also doesn't seem to react to any keystrokes, in the end I killed it through the task manager

user@localhost:~> xfreerdp /u:user /p:winapps /v:RDPWindows
[10:54:03:294] [3687:3688] [ERROR][com.freerdp.core] - freerdp_tcp_is_hostname_resolvable:freerdp_set_last_error_ex ERRCONNECT_DNS_NAME_NOT_FOUND [0x00020005]

eylenburg avatar Nov 16 '23 10:11 eylenburg