Bug 488876 - "Attempting to connect" loop with Remmina
Summary: "Attempting to connect" loop with Remmina
Status: REPORTED
Alias: None
Product: KRdp
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-21 09:25 UTC by Gaël Le Baccon
Modified: 2024-07-10 09:18 UTC (History)
5 users (show)

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


Attachments
Krdp server log (10.52 KB, text/x-log)
2024-06-21 09:25 UTC, Gaël Le Baccon
Details
Krdp server log with x264_baseline (5.28 KB, text/x-log)
2024-06-24 08:57 UTC, Gaël Le Baccon
Details
Krdp server log with x264 (4.90 KB, text/x-log)
2024-06-24 08:57 UTC, Gaël Le Baccon
Details
vainfo output (3.52 KB, text/plain)
2024-06-24 08:57 UTC, Gaël Le Baccon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gaël Le Baccon 2024-06-21 09:25:59 UTC
Created attachment 170737 [details]
Krdp server log

SUMMARY
When i try to connect with remmina, i enter in a "Attempting to connect" loop. I can't connect to my server (which is on the same PC for testing purpose).

The log seems to highlight an issue with client icompatibility not supporting H.264. But on GitLab, Remmina is in the list of working clients.

STEPS TO REPRODUCE
1. Launch the server via KCM or CLI
2. Launch Reminna
3. Establish the connection with the server

OBSERVED RESULT
"Attemting to connect" loop screen on Remmina.

EXPECTED RESULT
Remote server screen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 40
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
Platform: Wayland
Graphics Card: NVidia GeForce GTX 1650
Graphics processor: NV167
Nvidia driver version: 555.42.02
Comment 1 Akseli Lahtinen 2024-06-24 07:05:49 UTC
The warning about H264 is because Fedora does not have hardware encoding by default, unless you install third party Mesa drivers from RPM Fusion with those built in. It should still work in software mode though.

Do you have open H264 drivers installed? Or anything that supports H264 software mode?

The logs mention error with the graphics driver, so this might be Nvidia related issue... 

Can you try running this with environment variable like this from terminal:

KPIPEWIRE_FORCE_ENCODER=libx264_baseline krdpserver -u test -p test

You can also try

KPIPEWIRE_FORCE_ENCODER=libx264 krdpserver -u test -p test

Please report if either those work or not! Thanks!
Comment 2 Akseli Lahtinen 2024-06-24 07:06:15 UTC
Setting as waitingforinfo
Comment 3 Gaël Le Baccon 2024-06-24 08:57:02 UTC
Created attachment 170900 [details]
Krdp server log with x264_baseline
Comment 4 Gaël Le Baccon 2024-06-24 08:57:23 UTC
Created attachment 170901 [details]
Krdp server log with x264
Comment 5 Gaël Le Baccon 2024-06-24 08:57:47 UTC
Created attachment 170902 [details]
vainfo output
Comment 6 Gaël Le Baccon 2024-06-24 09:01:25 UTC
Thank you for your help,

I have the following RPMs installed:
- intel-media-drivers from RPM Fusion
- x264-libs from RPM Fusion
- openh264

I tried your two command lines but unfortunately it didn't work.

I have attached the new logs from krdpserver and vainfo output.

If you have any other suggestions, I am willing to try.
Comment 7 Arjen Hiemstra 2024-06-24 09:37:14 UTC
The relevant line here is "org.kde.krdp: Client does not support H.264 in YUV420 mode!" which indicates your client does not handle H264 decoding. Is this using Reminna from Fedora packages?
Comment 8 Gaël Le Baccon 2024-06-24 10:27:28 UTC
Yes, Remmina come from Fedora packages :  remmina-1.4.33-1.fc40.x86_64

I found this bug https://bugzilla.redhat.com/show_bug.cgi?id=2242462 but it seems to be fixed.

When I try with Remote Desktop from Windows 11, krdpserver crashes with segmentation fault. I will create another bug report for this.
Comment 9 Arjen Hiemstra 2024-07-10 09:18:34 UTC
If you have the dependencies installed, you might need to set some option in Reminna so it enabled h264 decoding. Ultimately there's little we can do on the server end, there isn't even a clear way of telling the client "this does not work".