Bug 502443 - "kwin_core: Cannot grant a token to KWin::ClientConnection" is displayed periodically
Summary: "kwin_core: Cannot grant a token to KWin::ClientConnection" is displayed peri...
Status: RESOLVED DUPLICATE of bug 500393
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 6.3.4
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-05 11:02 UTC by ironman466
Modified: 2025-04-06 20:43 UTC (History)
1 user (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 ironman466 2025-04-05 11:02:51 UTC
SUMMARY
`journalctl -f` shows "kwin_core: Cannot grant a token to KWin::ClientConnection" log periodically. and I think this is causing below issues:
1. Brave browser is unable to keep any login.
2. krdpserver keeps crashing.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 6.3
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Below is copy of journal printed when I logged into youtube in brave, closed it, and reopened it.

```
journalctl -f
 4월 05 17:05:42 Kedete systemd[1]: ssh.socket: Deactivated successfully.
 4월 05 17:05:42 Kedete systemd[1]: Closed ssh.socket - OpenBSD Secure Shell server socket.
 4월 05 17:05:42 Kedete sudo[7696]: pam_unix(sudo:session): session closed for user root
 4월 05 17:05:48 Kedete sudo[7707]: pam_unix(sudo:auth): conversation failed
 4월 05 17:05:48 Kedete sudo[7707]: pam_unix(sudo:auth): auth could not identify password for [tmvkrpxl0]
 4월 05 17:05:48 Kedete postfix/pickup[2186]: 3A1E61038E2: uid=1000 from=<tmvkrpxl0>
 4월 05 17:05:48 Kedete postfix/cleanup[7714]: 3A1E61038E2: message-id=<20250405080548.3A1E61038E2@Kedete>
 4월 05 17:05:48 Kedete postfix/qmgr[2187]: 3A1E61038E2: from=<tmvkrpxl0@Kedete>, size=481, nrcpt=1 (queue active)
 4월 05 17:05:48 Kedete postfix/local[7716]: 3A1E61038E2: to=<root@Kedete>, orig_to=<root>, relay=local, delay=0.04, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
 4월 05 17:05:48 Kedete postfix/qmgr[2187]: 3A1E61038E2: removed
 4월 05 17:05:51 Kedete PackageKit[2763]: daemon quit
 4월 05 17:05:51 Kedete systemd[1]: packagekit.service: Deactivated successfully.
 4월 05 17:05:51 Kedete systemd[1]: packagekit.service: Consumed 8.909s CPU time.
 4월 05 17:06:05 Kedete systemd-resolved[763]: Grace period over, resuming full feature set (UDP+EDNS0) for DNS server 100.100.100.100.
 4월 05 17:06:05 Kedete systemd-resolved[763]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 100.100.100.100.
 4월 05 17:06:11 Kedete com.docker.backend[2690]: [08:06:11.835078670Z][main.ipc              ] (f7f8fa47-21) 855abbbc-BackendAPI S<-C c112aade-time GET /time
 4월 05 17:06:11 Kedete com.docker.backend[2690]: [08:06:11.835154107Z][main.ipc              ] (f7f8fa47-21) 855abbbc-BackendAPI S->C c112aade-time GET /time (73.533µs): 2025-04-05 17:06:11.835126964 +0900 KST m=+639.710473316
 4월 05 17:06:12 Kedete brave-browser-beta[7172]: [7217:7297:0405/170612.993993:ERROR:shared_image_manager.cc(509)] SharedImageManager::ProduceMemory: Trying to Produce a Memory representation from a non-existent mailbox.
 4월 05 17:06:13 Kedete brave-browser-beta[7172]: [7217:7297:0405/170613.017218:ERROR:shared_image_manager.cc(509)] SharedImageManager::ProduceMemory: Trying to Produce a Memory representation from a non-existent mailbox.
 4월 05 17:06:13 Kedete brave-browser-beta[7172]: [7217:7297:0405/170613.044263:ERROR:shared_image_manager.cc(509)] SharedImageManager::ProduceMemory: Trying to Produce a Memory representation from a non-existent mailbox.
 4월 05 17:06:13 Kedete brave-browser-beta[7172]: [7217:7297:0405/170613.080056:ERROR:shared_image_manager.cc(509)] SharedImageManager::ProduceMemory: Trying to Produce a Memory representation from a non-existent mailbox.
 4월 05 17:06:13 Kedete brave-browser-beta[7172]: [7217:7297:0405/170613.110834:ERROR:shared_image_manager.cc(509)] SharedImageManager::ProduceMemory: Trying to Produce a Memory representation from a non-existent mailbox.
 4월 05 17:06:13 Kedete brave-browser-beta[7172]: [7217:7297:0405/170613.143955:ERROR:shared_image_manager.cc(509)] SharedImageManager::ProduceMemory: Trying to Produce a Memory representation from a non-existent mailbox.
 4월 05 17:06:15 Kedete kwin_wayland[2322]: kwin_core: Cannot grant a token to KWin::ClientConnection(0x642c46c68b60)
 4월 05 17:06:33 Kedete brave-browser-beta[7172]: [7173:7173:0405/170633.297185:ERROR:wayland_event_watcher.cc(47)] libwayland: warning: queue 0xc4c00149100 destroyed while proxies still attached:
 4월 05 17:06:33 Kedete brave-browser-beta[7172]: [7173:7173:0405/170633.297271:ERROR:wayland_event_watcher.cc(47)] libwayland:   wl_shm_pool#55 still attached
 4월 05 17:06:34 Kedete systemd[2244]: Started app-brave\x2dbrowser\x2dbeta@19f225c5d2fb4bedaf88aa403400e1f6.service - Brave Web Browser (beta) - 웹 브라우저.
 4월 05 17:06:34 Kedete kernel: audit: type=1400 audit(1743840394.114:177): apparmor="AUDIT" operation="userns_create" class="namespace" info="Userns create - transitioning profile" profile="unconfined" pid=7922 comm="brave" requested="userns_create" target="unprivileged_userns"
 4월 05 17:06:34 Kedete kernel: audit: type=1400 audit(1743840394.116:178): apparmor="DENIED" operation="capable" class="cap" profile="unprivileged_userns" pid=7931 comm="brave" capability=21  capname="sys_admin"
 4월 05 17:06:34 Kedete brave-browser-beta[7172]: [7173:7206:0405/170634.406454:ERROR:browser_main_loop.cc(276)] GLib: g_main_context_pop_thread_default: assertion 'stack != NULL' failed
 4월 05 17:06:34 Kedete systemd[2244]: app-org.chromium.Chromium.beta-7173.scope: Consumed 17.315s CPU time.
 4월 05 17:06:34 Kedete systemd[2244]: app-brave\x2dbrowser\x2dbeta@66bbd8b7d1dd4413b04e8dd5fa6fd8f4.service: Consumed 54.239s CPU time, 660.0K memory peak, 0B memory swap peak.
 4월 05 17:06:34 Kedete plasmashell[2473]: file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:24: TypeError: Cannot read property 'toolTipMainText' of null
 4월 05 17:06:34 Kedete systemd[2244]: Started app-org.chromium.Chromium.beta-7922.scope.
 4월 05 17:06:34 Kedete kwin_wayland[2322]: kwin_core: could not find the toplevel to activate KWin::SurfaceInterface(0x642c473d7e90)
 4월 05 17:06:34 Kedete kwin_wayland[2322]: kwin_core: Cannot grant a token to KWin::ClientConnection(0x642c47582060)
 4월 05 17:06:34 Kedete kwin_wayland[2322]: kwin_core: Cannot grant a token to KWin::ClientConnection(0x642c47582060)
 4월 05 17:06:34 Kedete xdg-desktop-portal-kde[2539]: xdp-kde-GlobalShortcuts: CreateSession called with parameters:
 4월 05 17:06:34 Kedete xdg-desktop-portal-kde[2539]: xdp-kde-GlobalShortcuts:     handle:  "/org/freedesktop/portal/desktop/request/1_144/B6F561D6BFFD81487B4105F7CA151F9B"
 4월 05 17:06:34 Kedete xdg-desktop-portal-kde[2539]: xdp-kde-GlobalShortcuts:     session_handle:  "/org/freedesktop/portal/desktop/session/1_144/chromium_993A1D8CEFF5B36770507920609D8500"
 4월 05 17:06:34 Kedete xdg-desktop-portal-kde[2539]: xdp-kde-GlobalShortcuts:     app_id:  "brave-browser-beta"
 4월 05 17:06:34 Kedete xdg-desktop-portal-kde[2539]: xdp-kde-GlobalShortcuts:     options:  QMap(("handle_token", QVariant(QString, "B6F561D6BFFD81487B4105F7CA151F9B"))("session_handle_token", QVariant(QString, "chromium_993A1D8CEFF5B36770507920609D8500")))
 4월 05 17:06:35 Kedete xdg-desktop-portal-kde[2539]: xdp-kde-GlobalShortcuts: ListShortcuts called with parameters:
 4월 05 17:06:35 Kedete xdg-desktop-portal-kde[2539]: xdp-kde-GlobalShortcuts:     handle:  "/org/freedesktop/portal/desktop/request/1_144/B7DD5DF1BB0B0C7A02EEF1EB9537A7E6"
 4월 05 17:06:35 Kedete xdg-desktop-portal-kde[2539]: xdp-kde-GlobalShortcuts:     session_handle:  "/org/freedesktop/portal/desktop/session/1_144/chromium_993A1D8CEFF5B36770507920609D8500"
 4월 05 17:06:40 Kedete kwin_wayland[2322]: kwin_core: Cannot grant a token to KWin::ClientConnection(0x642c46c68b60)
 4월 05 17:06:41 Kedete com.docker.backend[2690]: [08:06:41.838216903Z][main.ipc              ] (f7f8fa47-22) 855abbbc-BackendAPI S<-C c112aade-time GET /time
 4월 05 17:06:41 Kedete com.docker.backend[2690]: [08:06:41.838276318Z][main.ipc              ] (f7f8fa47-22) 855abbbc-BackendAPI S->C c112aade-time GET /time (56.332µs): 2025-04-05 17:06:41.838251308 +0900 KST m=+669.713597661
 4월 05 17:06:44 Kedete brave-browser-beta[7921]: [7922:7922:0405/170644.524027:ERROR:sharing_service.cc(303)] Device registration failed with fatal error
```
Comment 1 John Kizer 2025-04-06 20:43:45 UTC
Hi - there is an existing bug report describing the issue you're listing here - merging those in to keep discussion together. Thanks!

*** This bug has been marked as a duplicate of bug 500393 ***