Bug 418959 - RDP connection Crash
Summary: RDP connection Crash
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-17 12:49 UTC by olcay seker
Modified: 2024-06-28 03:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Kwin crash screen (1.04 MB, image/jpeg)
2020-03-17 12:49 UTC, olcay seker
Details
Kwin Auto generated crash report (5.26 KB, text/plain)
2020-03-17 12:51 UTC, olcay seker
Details
rdp connection screen (44.50 KB, image/png)
2020-11-09 21:39 UTC, olcay seker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description olcay seker 2020-03-17 12:49:55 UTC
Created attachment 126846 [details]
Kwin crash screen

Operating System: Kubuntu 19.10
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.4
Kernel Version: 5.3.12-050312-generic
OS Type: 64-bit

SUMMARY
KWin crash with RDP connection under some scenarios

Scenario 1
1- Login your computer as usual 
2- Start RDP connection from another computer while your session open
3- Kwin will crash with un-reportable error (ss and crash file  attached)

Scenario 2
1-Resatrt your computer and wait until you see login screen but "do not" login
2-Start RDP connection from another computer until you see your desktop
3- Close RDP connection
4- Return back to your computer and login
5- KDE will freeeze forever with load screen

Scenario 3
1-Logout your session from your computer
2-Start RDP connection from another computer until you see your desktop 
3- Close RDP connection
4- Return back to your computer and login
5- KDE will freeeze forever with load screen
Comment 1 olcay seker 2020-03-17 12:51:03 UTC
Created attachment 126847 [details]
Kwin Auto generated crash report
Comment 2 Christoph Feck 2020-04-09 20:22:07 UTC
We need a better backtrace to understand the issue. Comment 1 says:

#30 0x00007f5aa8bdd5d1 in KCrash::defaultCrashHandler(int) () at /usr/lib/x86_64-linux-gnu/libKF5Crash.so.5
#31 0x00007f5aa8fa9470 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#32 0x00007f5aa786a2ef in QThreadStorageData::get() const () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007f5aa7e4fe9c in QOpenGLContext::currentContext() () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#34 0x00007f5aa7e52f11 in QOpenGLContext::destroy() () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#35 0x00007f5aa7e531fb in QOpenGLContext::~QOpenGLContext() () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#36 0x00007f5aa7e5321d in QOpenGLContext::~QOpenGLContext() () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#37 0x00007f5aa8fad2de in __cxa_finalize (d=0x7f5aa758e650) at cxa_finalize.c:83
#38 0x00007f5aa75689e7 in  () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.12
#39 0x00007ffd7e5d6800 in  ()
#40 0x00007f5aa919b3fb in _dl_fini () at dl-fini.c:138
Comment 3 olcay seker 2020-04-09 20:26:05 UTC
(In reply to Christoph Feck from comment #2)
> We need a better backtrace to understand the issue. 

Actually thats all i have but i believe you can repro the crash every single time with steps above.
Comment 4 olcay seker 2020-11-09 21:39:18 UTC
Created attachment 133185 [details]
rdp connection screen
Comment 5 olcay seker 2020-11-09 21:40:12 UTC
Steps to create o local Virtualbox VM for reproducing RDP issues. (In related to   https://bugs.kde.org/show_bug.cgi?id=426244 )

1- Intall Virtualbox and create new viretaul machine with latest Neon image.

2- After installing VM, select installed VM and go settings -> Display > Remote Display -> select enable server and leave other options as is.

3- Login VM and run the commands below. You migth want to restart the VM just incase. 
  a) sudo apt install -y xrdp
  b) sudo systemctl start xrdp

4- On your host machine make sure you have one of the applications installed for RDP connection
  
  a) Remmina 
  b) rdesktop

5- I will use rdesktop for quick connewction fron terminal with argumnets below

   resdketop -u user_name -p password <VM ip address>
   rdesktop -u user1 -p password 172.16.1.50

You will see plasma loding screen then it will stuck with dark background forever ( screenshot attached).

With 5.19.5 , i can connect at least but with 5.20.2 i cant.


Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0
Kernel Version: 5.4.0-52-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-2670QM CPU @ 2.20GHz
Memory: 3,8 GiB of RAM
Graphics Processor: llvmpipe
Comment 6 olcay seker 2020-11-09 21:48:05 UTC
I did some terrible typos in comment 5 and cant edit the message. Next time i will let my cat write the report for our sanity. Please accept my sincere apologies.
Comment 7 David Abreu 2021-01-24 15:56:39 UTC
Blank session when connecting through rdp protocol from a Windows/Linux machine

SUMMARY
When attempting to remotely connect using rdp protocol from a Windows PC, I get logged in but after the splash screes is showed, I end with a blank (actually, black) session where I can't do nothing.

1- Login in your KDE Neon PC
2- Start RDP connection from a Windows PC (7 and 10, both were tested) or a Linux (Kubuntu 18.04) to your KDE Neon PC.
3- Login in the xrdp session manager window
4- Wait for the splash screen until it finishes
5- Now you have an empty, useless session in which you can't even logoff

Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-62-generic
OS Type: 64-bit

NOTE:
As an additional detail, the same computer, booting the Kubuntu 18 it has also installed, with the same xrdp configuration doesn't run into this issue.
Comment 8 David Edmundson 2024-05-29 10:32:20 UTC
This bug is a crash report that is over a year old without any activity, as our software is always changing, the information in this ticket is unlikely to still be useful.

If this issue is still reproducible in a newer version of kwin (5.27.5 or 6.0) please reopen this ticket with a bumped version number or it will be closed in 30 days.
Comment 9 Bug Janitor Service 2024-06-13 03:46:51 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2024-06-28 03:47:46 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!