neuromorph / openbar

A GNOME Shell extension for theming Gnome Top Bar / Top Panel, Menus, Dash/Dock, Gnome Shell and Gtk/Flatpak Apps.
https://extensions.gnome.org/extension/6580/open-bar/
GNU General Public License v3.0
268 stars 4 forks source link

[BUG]: Bar height to 0 then up again causes crash #53

Closed balintbarna closed 4 months ago

balintbarna commented 4 months ago

Describe the bug The entire gnome session crashes and you're thrown back to the log in screen.

To Reproduce Steps to reproduce the behavior: Set the top bar bar height to 0 with your scroll wheel, then up to 1-2-3-4-5, etc. I'm not sure about the reproduction rate but it happened to me a few times.

Relevant Specs:

neuromorph commented 4 months ago

Good catch! Thank you for reporting!

Bar height of zero wouldn't fair well when Gnome's allocating it and can cause weirdness as you try to change it. I was able to reproduce the crash and it showed a memory access issue - segmentation fault. I have restricted the min height to 10 now since it is also already too low. I've also adjusted some timeout to avoid too many successive events when it is changed in that manner.

Works fine in my test so please try it out.

Note: The nixfix branch is now merged into main along with all the fixes. So please install from main branch.

neuromorph commented 4 months ago

New version of Open Bar with the fix is live on Gnome extensions, closing here.