Bug 451093 - [x11/no-compositing] some fullscreen applications make latte-dock crash/non responsive
Summary: [x11/no-compositing] some fullscreen applications make latte-dock crash/non r...
Status: REPORTED
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: git (master)
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-03 16:20 UTC by szilprogramming
Modified: 2022-08-31 16:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description szilprogramming 2022-03-03 16:20:37 UTC
SUMMARY
After opening an application in full screen mode latte-dock became non responsive, sometimes crash.

STEPS TO REPRODUCE
1. Open something in full screen mode. (Firefox doesn't work, but most of the games does, for example Minecraft)
2. Exit the full screen application
3. You can't interact with latte-dock. (Sometimes it's completely disappear, but process still in memory.) 
4. Fix: kill the process and restart it. (latte-dock --replace doesn't work)

OBSERVED RESULT
You can't interact with latte-dock.

EXPECTED RESULT
You can interact with latte-dock.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Running latte-dock with --d and opening a fullscreen application generates this:
[Debug : 17:12:52.726726] - "  PLASMA THEME TOPLEFT SHADOW :: pixels :  784   transparent pixels 558  | HAS SHADOWS : true"
[Debug : 17:12:52.727727] - "PLASMA THEME, calculating roundness from mask..."
[Debug : 17:12:52.728728] - " BOTTOM RIGHT CORNER MASK base line length ::  15"
[Debug : 17:12:52.728728] - " PLASMA THEME EXTENDED ::  Plasma::Types::TopEdge  | roundness: 14  center_max_opacity: 0.647058"
[Debug : 17:12:52.728728] - " PLASMA THEME EXTENDED ::  Plasma::Types::TopEdge  | padtop: 16  padleft: 16  padbottom: 16  padright: 16"
[Debug : 17:12:52.728728] - " PLASMA THEME EXTENDED ::  Plasma::Types::TopEdge  | shadowsize: 12  shadowcolor: QColor(ARGB 0.0509804, 0, 0, 0)"
[Debug : 17:12:52.729729] - "PLASMA THEME, calculating roundness from mask..."
[Debug : 17:12:52.729729] - " BOTTOM RIGHT CORNER MASK base line length ::  15"
[Debug : 17:12:52.729729] - " PLASMA THEME EXTENDED ::  Plasma::Types::LeftEdge  | roundness: 14  center_max_opacity: 0.647058"
[Debug : 17:12:52.729729] - " PLASMA THEME EXTENDED ::  Plasma::Types::LeftEdge  | padtop: 16  padleft: 16  padbottom: 16  padright: 16"
[Debug : 17:12:52.731731] - " PLASMA THEME EXTENDED ::  Plasma::Types::LeftEdge  | shadowsize: 12  shadowcolor: QColor(ARGB 0.0313725, 0, 0, 0)"
[Debug : 17:12:52.731731] - "PLASMA THEME, calculating roundness from mask..."
[Debug : 17:12:52.732732] - " TOP LEFT CORNER MASK base line length ::  15"
[Debug : 17:12:52.732732] - " PLASMA THEME EXTENDED ::  Plasma::Types::BottomEdge  | roundness: 14  center_max_opacity: 0.647058"
[Debug : 17:12:52.732732] - " PLASMA THEME EXTENDED ::  Plasma::Types::BottomEdge  | padtop: 16  padleft: 16  padbottom: 16  padright: 16"
[Debug : 17:12:52.732732] - " PLASMA THEME EXTENDED ::  Plasma::Types::BottomEdge  | shadowsize: 12  shadowcolor: QColor(ARGB 0.0509804, 0, 0, 0)"
[Debug : 17:12:52.733733] - "PLASMA THEME, calculating roundness from mask..."
[Debug : 17:12:52.733733] - " TOP LEFT CORNER MASK base line length ::  15"
[Debug : 17:12:52.733733] - " PLASMA THEME EXTENDED ::  Plasma::Types::RightEdge  | roundness: 14  center_max_opacity: 0.647058"
[Debug : 17:12:52.734734] - " PLASMA THEME EXTENDED ::  Plasma::Types::RightEdge  | padtop: 16  padleft: 16  padbottom: 16  padright: 16"
[Debug : 17:12:52.734734] - " PLASMA THEME EXTENDED ::  Plasma::Types::RightEdge  | shadowsize: 12  shadowcolor: QColor(ARGB 0.0313725, 0, 0, 0)"
[Debug : 17:12:52.766766] - "syncGeometry() called..."
[Debug : 17:12:52.766766] - "syncGeometry() called..."
[Debug : 17:12:52.813813] - "syncGeometry() called..."
[Debug : 17:12:52.921921] - "current plasma theme :::  \"Orchis-dark\""
[Debug : 17:12:52.921921] - "theme path :::  \"/home/USER/.local/share/plasma/desktoptheme/Orchis-dark\""
[Debug : 17:12:52.921921] - "theme widgets path :::  \"/home/USER/.local/share/plasma/desktoptheme/Orchis-dark/widgets\""
[Debug : 17:12:52.924924] - "  PLASMA THEME TOPLEFT SHADOW :: pixels :  784   transparent pixels 558  | HAS SHADOWS : true"
[Debug : 17:12:52.924924] - "PLASMA THEME, calculating roundness from mask..."
[Debug : 17:12:52.924924] - " BOTTOM RIGHT CORNER MASK base line length ::  15"
[Debug : 17:12:52.924924] - " PLASMA THEME EXTENDED ::  Plasma::Types::TopEdge  | roundness: 14  center_max_opacity: 1"
[Debug : 17:12:52.924924] - " PLASMA THEME EXTENDED ::  Plasma::Types::TopEdge  | padtop: 16  padleft: 16  padbottom: 16  padright: 16"
[Debug : 17:12:52.925925] - " PLASMA THEME EXTENDED ::  Plasma::Types::TopEdge  | shadowsize: 12  shadowcolor: QColor(ARGB 0.0509804, 0, 0, 0)"
[Debug : 17:12:52.925925] - "PLASMA THEME, calculating roundness from mask..."
[Debug : 17:12:52.925925] - " BOTTOM RIGHT CORNER MASK base line length ::  15"
[Debug : 17:12:52.925925] - " PLASMA THEME EXTENDED ::  Plasma::Types::LeftEdge  | roundness: 14  center_max_opacity: 1"
[Debug : 17:12:52.925925] - " PLASMA THEME EXTENDED ::  Plasma::Types::LeftEdge  | padtop: 16  padleft: 16  padbottom: 16  padright: 16"
[Debug : 17:12:52.925925] - " PLASMA THEME EXTENDED ::  Plasma::Types::LeftEdge  | shadowsize: 12  shadowcolor: QColor(ARGB 0.0313725, 0, 0, 0)"
[Debug : 17:12:52.925925] - "PLASMA THEME, calculating roundness from mask..."
[Debug : 17:12:52.925925] - " TOP LEFT CORNER MASK base line length ::  15"
[Debug : 17:12:52.925925] - " PLASMA THEME EXTENDED ::  Plasma::Types::BottomEdge  | roundness: 14  center_max_opacity: 1"
[Debug : 17:12:52.925925] - " PLASMA THEME EXTENDED ::  Plasma::Types::BottomEdge  | padtop: 16  padleft: 16  padbottom: 16  padright: 16"
[Debug : 17:12:52.925925] - " PLASMA THEME EXTENDED ::  Plasma::Types::BottomEdge  | shadowsize: 12  shadowcolor: QColor(ARGB 0.0509804, 0, 0, 0)"
[Debug : 17:12:52.925925] - "PLASMA THEME, calculating roundness from mask..."
[Debug : 17:12:52.926926] - " TOP LEFT CORNER MASK base line length ::  15"
[Debug : 17:12:52.926926] - " PLASMA THEME EXTENDED ::  Plasma::Types::RightEdge  | roundness: 14  center_max_opacity: 1"
[Debug : 17:12:52.926926] - " PLASMA THEME EXTENDED ::  Plasma::Types::RightEdge  | padtop: 16  padleft: 16  padbottom: 16  padright: 16"
[Debug : 17:12:52.926926] - " PLASMA THEME EXTENDED ::  Plasma::Types::RightEdge  | shadowsize: 12  shadowcolor: QColor(ARGB 0.0313725, 0, 0, 0)"
[Debug : 17:12:52.926926] - "PLASMA THEME MARGINS AREA :: 5 5 5 5"
[Debug : 17:12:52.997997] - "immediateSyncGeometry() called..."
[Debug : 17:12:52.997997] - "syncGeometry() calculations for screen:  \"HDMI-1\"  _  QRect(0,0 1920x1080)"
[Debug : 17:12:52.997997] - "syncGeometry() calculations for edge:  Plasma::Types::BottomEdge"
[Debug : 17:12:52.997997] - "syncGeometry() ended..."
[Debug : 17:12:54.134134] - " PLASMA SCREEN GEOMETRIES, LAST AVAILABLE SCREEN RECTS ::  QHash((\"HDMI-1\", QRect(0,0 1920x1017)))"
[Debug : 17:12:54.134134] - " PLASMA SCREEN GEOMETRIES, SCREEN ::  10  -  \"HDMI-1\""
[Debug : 17:12:54.134134] - " PLASMA SCREEN GEOMETRIES, AVAILABLE RECT ::  \"HDMI-1\"  :  QRect(0,0 1920x1016)"
[Debug : 17:12:54.134134] - " PLASMA SCREEN GEOMETRIES, AVAILABLE REGION ::  \"HDMI-1\"  :  QRegion(size=2, bounds=(0,0 1920x1080) - [(0,0 1920x1015), (0,1079 1920x1)])"
[Debug : 17:12:54.222222] - " -> Frame Extents ::  Plasma::Types::BottomEdge  __   extents ::  QMargins(0, 0, 0, 0)  bypasswm ::  false"
[Warning : 17:12:54.916916] - "QXcbConnection: XCB error: 11 (BadAlloc), sequence: 25090, resource id: 98566170, major code: 149 (Unknown), minor code: 7"
[Warning : 17:12:54.916916] - "QXcbConnection: XCB error: 9 (BadDrawable), sequence: 25091, resource id: 98566457, major code: 149 (Unknown), minor code: 4"
[Warning : 17:12:55.046046] - "QXcbConnection: XCB error: 4 (BadPixmap), sequence: 25094, resource id: 98566457, major code: 148 (Unknown), minor code: 1"
[Debug : 17:12:55.297297] - "syncGeometry() called..."
[Debug : 17:13:01.216216] - "immediateSyncGeometry() called..."
[Debug : 17:13:01.217217] - "syncGeometry() calculations for screen:  \"HDMI-1\"  _  QRect(0,0 1920x1080)"
[Debug : 17:13:01.217217] - "syncGeometry() calculations for edge:  Plasma::Types::BottomEdge"
[Debug : 17:13:01.217217] - "syncGeometry() ended..."
Comment 1 Michail Vourlakos 2022-03-04 07:53:19 UTC
you mean that if I use minecraft in fullscreen afterwards I can not interact with Latte?
Comment 2 Michail Vourlakos 2022-03-04 07:57:39 UTC
1. Do you have any other normal open source application that creates that issue except minecraft ? I use VirtualBox in fullscreen and I never had such issue in my system
2. When you please fullscreen applications is your compositing disabled? Try to enforce compositing mode always from plasma systemsettings, do  you still get the same issue afterwards?
Comment 3 szilprogramming 2022-03-04 17:38:52 UTC
1. Yes, I had issues from other applications, but I can't remember any open source.
2. Disabling compositor effected latte-dock the same way as described before, so I disabled "Allow applications to block compositing" thats solved the issue. I experimented further more and for me it's seems like disabling compositor while latte-dock is active breaks it.

In conclusion applications blocking compositor makes Latte non responsive
Comment 4 Michail Vourlakos 2022-03-04 17:46:41 UTC
(In reply to szilprogramming from comment #3)
> 1. Yes, I had issues from other applications, but I can't remember any open
> source.
> 2. Disabling compositor effected latte-dock the same way as described
> before, so I disabled "Allow applications to block compositing" thats solved
> the issue. I experimented further more and for me it's seems like disabling
> compositor while latte-dock is active breaks it.
> 
> In conclusion applications blocking compositor makes Latte non responsive

Can you provide me a well known open source app/game in order to install in my system to test things? There isba big chance of course that this is Qt bug, not Latte
Comment 5 szilprogramming 2022-03-04 20:20:04 UTC
Unfournately I can't find an open source application that produce this issue, but these steps my help:
0. Make sure that the compositor is running
1. Check the "Allow applications to block compositing" in System Settings - Compositor
2. Run "qdbus org.kde.KWin /Compositor suspend" or press Alt+Shift+F12
(2.5. Sometimes you have to click once in the latte-dock panel)
3. It's completely freezes
(Running qdbus org.kde.KWin /Compositor resume or pressing Alt-Shift-F12 doesn't help)

Fix:
1. Kill the latte-dock process
2. Resume the compositor
3. Run latte-dock
Comment 6 Michail Vourlakos 2022-03-04 20:48:42 UTC
(In reply to szilprogramming from comment #5)
> Unfournately I can't find an open source application that produce this
> issue, but these steps my help:
> 0. Make sure that the compositor is running
> 1. Check the "Allow applications to block compositing" in System Settings -
> Compositor
> 2. Run "qdbus org.kde.KWin /Compositor suspend" or press Alt+Shift+F12
> (2.5. Sometimes you have to click once in the latte-dock panel)
> 3. It's completely freezes
> (Running qdbus org.kde.KWin /Compositor resume or pressing Alt-Shift-F12
> doesn't help)
> 
> Fix:
> 1. Kill the latte-dock process
> 2. Resume the compositor
> 3. Run latte-dock

Nope, this is not the case in my system? I switch between no compositing and compositing mode regularly in my system with no issues.

A. What is your graphics driver?
B. How did you install Latte?
C. What is your Latte version?
Comment 7 szilprogramming 2022-03-04 21:05:57 UTC
A. lspci | grep VGA ->  VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
B. AUR (latte-dock-git)
C.  According to pacman: r5865.f1472db6-1
Comment 8 tomashnyk 2022-08-31 16:28:32 UTC
An application that triggers this for me is MPV. It is not 100 % of the cases but I would say most. Just enter fullscreen and exit it. I am using Unity layout, multimonitor and I mirror the top panel on two additional monitors and when I reset that it seemed to stop happening, but it might be a false lead.

Turning off compositing as suggested fixes this.