luisbocanegra / plasma-panel-modes-switcher

Switch between two KDE Plasma panel profiles on the fly
https://store.kde.org/p/2130222
GNU General Public License v3.0
5 stars 0 forks source link

Plasmashell crashes when switching to floating and fit `zwlr_layer_surface_v1#302: error 1` #2

Closed luisbocanegra closed 5 months ago

luisbocanegra commented 6 months ago

Configuration

crash-options

Log of the command executed followed by the error

Feb 17 11:33:00 archlinux plasmashell[1528645]: qml: location:top screen:1
Feb 17 11:33:00 archlinux plasmashell[1528645]: qml: 
                                                var location = "top"
                                                for (var id of panelIds) {
                                                    var panel = panelById(id);
                                                    if (panel.screen === 1 && panel.location === "top" ) {
                                                        if (false)
                                                            panel.hiding = false ? "none" : "dodgewindows"
                                                        if (false)
                                                            panel.height = false ? 32 : 48
                                                        if (true)
                                                            panel.floating = false ? false : true
                                                        if (true)
                                                            panel.lengthMode = false ? "fill" : "fit"
                                                        if (false)
                                                            panel.location = false ? "top" : "top"
                                                        if (false)
                                                            panel.alignment = false ? "left" : "center"

                                                        panel.reloadConfig()
                                                        break
                                                    }
                                                }
Feb 17 11:33:00 archlinux kwin_wayland_wrapper[638317]: error in client communication (pid 1528645)
Feb 17 11:33:00 archlinux plasmashell[1528645]: zwlr_layer_surface_v1#302: error 1: the layer surface has a width of 0 but its anchor doesn't include the left and the right screen edge
Feb 17 11:33:00 archlinux plasmashell[1528645]: The Wayland connection experienced a fatal error: Protocol error
Feb 17 11:33:00 archlinux systemd[1169518]: plasma-plasmashell.service: Main process exited, code=exited, status=255/EXCEPTION
Feb 17 11:33:00 archlinux systemd[1169518]: plasma-plasmashell.service: Failed with result 'exit-code'.

System information

$ kinfo
Operating System: Arch Linux 
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
luisbocanegra commented 5 months ago

Looks like waiting some time (20 ms seems to be enough) after setting each property gets around this problem

luisbocanegra commented 5 months ago

https://github.com/luisbocanegra/plasma-panel-modes-switcher/releases/tag/v0.1.1