Bug 427564

Summary: kdesvn freezes for a moment before finishing commit on Wayland
Product: [Applications] kdesvn Reporter: Thiago Sueto <herzenschein>
Component: GeneralAssignee: KDESvn default assignee <kdesvn-bugs-null>
Status: REPORTED ---    
Severity: normal CC: Ch.Ehrlicher, kde
Priority: NOR Keywords: wayland
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thiago Sueto 2020-10-12 00:54:59 UTC
When using kdesvn to commit translations on Wayland, it freezes for a few moments until it finishes commiting. This is evidenced by the Desaturate Unresponsive Applications desktop effect, which takes place when it freezes, returning to normal after the commit.
To clarify, the freeze occurs immediately after confirming the commit dialog where you get to choose which files to commit and the respective commit description.
This bug is otherwise harmless as it doesn't hinder anything from working.

1. Login to plasma wayland session
2. Commit a change (like for translation)

Brief freeze on the kdesvn window.
kdesvn unfreezes.

Window never freezes (like on Xorg session)

Operating System: openSUSE Tumbleweed 20201009
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.1

Pretty sure I've been experiencing this for at least a few months.
Comment 1 Christian Ehrlicher 2020-10-12 04:50:36 UTC
Wouldn't it be better to report against wayland stuff then?
Comment 2 David Edmundson 2020-10-12 11:09:39 UTC
Our freeze detection is maybe a bit more extreme than the equivalent on X11.

WAYLAND_DEBUG=1  kdesvn |& grep -P 'ping|pong' will provide a full log of all our kwin to app communication, including the ping/pong requests. 
If the app is grey between a ping and pong, and the timestamps are spaced out the app is at fault.

Please move back to kwin if there is something that implies it is a compositor bug with the attached log.
Comment 3 Thiago Sueto 2020-10-12 12:41:56 UTC
Here is the log. When run from the terminal kdesvn asks for the password way too much though.

🐰@lapinetop:~: WAYLAND_DEBUG=1  kdesvn |& grep -P 'ping|pong'
[2204662,257] xdg_wm_base@26.ping(10050)
[2204662,262]  -> xdg_wm_base@26.pong(10050)
Enter passphrase for key '/home/thiago/.ssh/id_rsa': [2213697,295] xdg_wm_base@26.ping(10070)
[2213697,324]  -> xdg_wm_base@26.pong(10070)    <------------ It starts freezing here

[2223783,756] xdg_wm_base@26.ping(10087)
[2223783,760]  -> xdg_wm_base@26.pong(10087)
[2223818,102] xdg_wm_base@26.ping(10107)
[2223818,108]  -> xdg_wm_base@26.pong(10107)
[2228409,846] xdg_wm_base@26.ping(10125)
[2228409,871]  -> xdg_wm_base@26.pong(10125)
[2235108,989] xdg_wm_base@26.ping(10148)
[2235109,021]  -> xdg_wm_base@26.pong(10148)
Enter passphrase for key '/home/thiago/.ssh/id_rsa':
Enter passphrase for key '/home/thiago/.ssh/id_rsa':
Enter passphrase for key '/home/thiago/.ssh/id_rsa':
Enter passphrase for key '/home/thiago/.ssh/id_rsa':

Enter passphrase for key '/home/thiago/.ssh/id_rsa':
[2332294,639] xdg_wm_base@26.ping(10159)       <-------------- I think it stopped freezing here
[2332294,645]  -> xdg_wm_base@26.pong(10159)
[2333083,375] xdg_wm_base@26.ping(10382)
[2333083,379]  -> xdg_wm_base@26.pong(10382)
Enter passphrase for key '/home/thiago/.ssh/id_rsa': [2340762,155] xdg_wm_base@26.ping(10403)
[2340762,183]  -> xdg_wm_base@26.pong(10403)     <------------ Or here

Enter passphrase for key '/home/thiago/.ssh/id_rsa': <-------- Here it starts asking for the password to fill the log cache thingie
Enter passphrase for key '/home/thiago/.ssh/id_rsa': <-------- Around here I closed the window since it would take forever to fill it
[2371280,248] xdg_wm_base@26.ping(10490)
[2371280,272]  -> xdg_wm_base@26.pong(10490)
[2372856,607] xdg_wm_base@26.ping(10499)
[2372856,639]  -> xdg_wm_base@26.pong(10499)