Bug 339490 - Confusion (blue screen) when establishing connection (RDP, VNC to some degree)
Summary: Confusion (blue screen) when establishing connection (RDP, VNC to some degree)
Status: RESOLVED NOT A BUG
Alias: None
Product: krdc
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR major
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
: 331990 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-28 21:44 UTC by Philippe Cloutier
Modified: 2020-12-28 17:12 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Cloutier 2014-09-28 21:44:05 UTC
A nasty KRDC bug was reported to Debian in September 2011 in ticket #640997 (then again in #732304). After searching for ""blue screen" krdc rdp" on Google, I noticed that this is far from Debian-specific:
https://bbs.archlinux.org/viewtopic.php?id=121023
https://bbs.archlinux.org/viewtopic.php?id=121023
http://forums.opensuse.org/showthread.php/492064-Trying-to-use-KRDC
etc.

This has even been reported (poorly) to KDE before via ticket #285342. KRDC was quite different in KDE 3, but at first look I would say this wasn't introduced right with KDE 4.

A basic description would be that rather than getting a proper message, one gets a blue screen when a connection error occurs. In reality though, that blue screen appears for all connections, it is simply replaced when the connection succeeds. For RDP connections, that screen is truly H-U-G-E. This adds to the confusion. The first times I was stuck on that screen, I thought the connection had been established but that there was some bug with resolution. I would try scrolling to the center without success. For VNC connections, the screen's size does not appear to be broken.

There are probably 2 (or more) issues here:
1. Some KRDC instances like mine are failing to report connection errors.
2. KRDC's normal connection initiation is reporting improperly.

Another aspect of the second issue is the Disconnect button, which is always enabled, even before you're connected. Consequently, it would be impossible to tell if KRDC had succeeded to connect if you were connecting to a machine which happened to be showing nothing but blue.

While this is much less confusing once you understand what is going on, it is still problematic, since you can't tell why a connection could not be established.

This is trivial to reproduce on affected KRDC instances. In fact, even pressing Cancel on the password prompt suffices to get the huge blue screen.


 Note that version 4.14.1 is missing from the field.
Comment 1 Urs Wolfer 2014-12-05 13:42:32 UTC
I can reproduce this issue when I cancel the password prompt. This is a bug. Also when I enter an RDP address, which does not resolve to an RDP server, the blue screen stays there...

Basically the blue screen should be visible while a connection is established. Once the connection is established, the blue screen gets replaced with the client view. If there is an error, the error should be displayed to the user.

The disconnect-button is there as soon as a connection tab is opened (it's basically an action to close the tab). But I agree, it can be confusing when it's called disconnect when no connection has been opened.

Do you know other error-cases where no error message box is displayed (but instead the blue screen stays there)?
Comment 2 Urs Wolfer 2014-12-05 13:46:03 UTC
*** Bug 331990 has been marked as a duplicate of this bug. ***
Comment 3 Urs Wolfer 2014-12-08 19:07:19 UTC
Addition to my comment above: the blue screen only stays there when using xfreerdp 1.1. With 1.0 connection errors are displayed.
Comment 4 hitori.gm 2014-12-25 06:41:56 UTC
Same issue on Arch Linux (kdenetwork-krdc 4.14.3-1). Unfortunately no errors or any output when this happens.

freerdp 1.2.0_beta1+android9-1 (latest) — blue screen
freerdp 1.1.0_beta+2013071101-1 — works fine
freerdp 1.0.2-7 — works fine
Comment 5 Philippe Cloutier 2014-12-29 01:37:05 UTC
This bug already happens with Debian's FreeRDP 1.0.2-4. However, comment 3 is correct in so far as error reporting is better with 1.0 than 1.1.

I obtain the following results with FreeRDP 1.0.

PERSISTENT BLUE SCREEN (bug)
Wrong username
Wrong password
Wrong IP
Wrong extra options

ERROR (proper behavior)
Wrong port
Unresolvable hostname

With FreeRDP 1.1, all unsuccessful attempts cause a persistent blue screen (that is to say, none of the 2 scenarios which krdc handled fine with 1.0 cause error dialogs to be shown).
Comment 6 Urs Wolfer 2015-01-03 16:22:30 UTC
@Filipus Klutiero: Thanks for testing various scenarios. What do you mean with "Wrong IP"? If I enter an invalid IP or an IP which does not resolve to an RDP server, I get proper messages with 1.0.

Implementation note for fixing things: we probably want to connect to the "finished(int, QProcess::ExitStatus)" signal. This is fired when xfreerdp exits. Then we can handle it if no other error message has been shown before.
Comment 7 Philippe Cloutier 2015-01-03 19:08:06 UTC
Urs, I cannot remember how I performed the test, but I think you should ignore it. I just retried and I also get an error ("Connection attempt to host failed"), whether I try:
IP of host without RDP server
IP without host
Invalid IP

Sorry
Comment 8 Dima Ryazanov 2015-02-05 21:44:51 UTC
Bug 327476 is another example of a blue screen with no error messages.
Comment 9 AceLan Kao 2016-02-05 02:38:52 UTC
This bug report has reported more than one issues, it would result in hard to close the report.

For the interface which confusing user issue is gone, I can't see any "connect" button on the interface, instead there is a "disconnect" button on the toolbar, it's only clickable when connected to an remote desktop. So, I think there is no such issue now.

For bluescreen issue, there is a fix for rdp protocol in Bug 327476
I didn't try if vnc has this issue, too, if yes, I would suggest to file a new bug for it.

I think this bug could be closed, if you encountered any issue described in this bug, file new bugs, one for one issue.
Comment 10 Justin Zobel 2020-11-30 00:04:59 UTC
This appears to be fixed. When attempting to connect via rdp or vnc to a host that doesn't exist the blue screen flashes up but is then closed.

VNC displays a message but RDP just closes.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I've set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.

As for any other issues reported here, please file a separate bug report if one doesn't already exist, thank you.
Comment 11 Philippe Cloutier 2020-12-13 20:19:24 UTC
Thank you Justin

I unfortunately no longer use KDE, RDP or VNC, and I am afraid I am no longer in a position to drive this further.
Comment 12 Christoph Feck 2020-12-16 14:17:47 UTC
Please report remaining issues individually, see comment 9 for more information.
Comment 13 Philippe Cloutier 2020-12-19 15:03:07 UTC
Christoph, why do you think this issue is not a bug?
Comment 14 Christoph Feck 2020-12-21 23:39:01 UTC
Philippe, please read comment 9 for the reasons.
Comment 15 Philippe Cloutier 2020-12-28 14:03:31 UTC
Christoph, even if "there is no issue now" (meaning current versions are not affected by the problem), the broken versions were and remain buggy. "NOT A BUG" is not meant for issues which have been solved.
Comment 16 Christoph Feck 2020-12-28 14:40:07 UTC
The solution is NOT A BUG because it doesn't describe a single bug, but multiple issues.

Could you please file individual tickets for each issue that is still appearing?
Comment 17 Philippe Cloutier 2020-12-28 17:12:20 UTC
(In reply to Christoph Feck from comment #16)
> The solution is NOT A BUG because it doesn't describe a single bug, but
> multiple issues.

"NOT A BUG" is not meant for reports about multiple bugs; it is intended for tickets which do not report any bug.

> Could you please file individual tickets for each issue that is still
> appearing?

As I wrote recently, I gave up on KDE. I have not experienced this behavior in the last years and no longer have access to any Debian install close to the one on which I reported this. I also do not use VNC nor have access to any VNC server, and I do not use RDP with any server to which I could connect using KRDC. Therefore, it would be a lot less convenient for me to keep driving this, and I lack the motivation to do this voluntarily.

It would be best for those still experiencing to try reporting more focused issues if they feel qualified to decompose the misbehaviour into the responsible technical problems. Or - failing that - to at least confirm that part or all of this persists in a [more] current version, over 6 years later.