-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG/FEATURE] Better multi-monitor support is needed #93
Comments
Yeah, the monitor reloading is not the most stable thing in the world and probably will never be as it is a giant hack. (Mostly because Gdk is not exposing any uniquely identifying information about a monitor)
Can you compile gBar with debug on (
Should be doable |
Of course now it looks like I can't reproduce the crash anymore... |
I got a crash, not sure it relates to monitor operations.
Also it has much less debug info that I expected, I'll check my build again. EDIT: found the issue, there was a "strip" phase during the package build |
Looks like a memory corruption error, which is bad. Can you run it with valgrind again? Unfortunately there isn't any way to get the underlying issue just from (crash) logs. |
I'll when I can, unless there is a way to run it non interactively and still collect what is needed. I didn't use it a lot and not sure it can just run from a script without a tty |
It's never crashing when I run in valgrind... |
That's not unexpected. Is it at least logging some memory access errors? |
I didn't check, just hitting ^C and checking the output? |
It's so fast to start, with an auto restart I can ignore it... :D I noticed sometimes the crash is helpful: when I start gBar with the session, very often the bluetooth module isn't loaded... but on restart I can see it. This is probably a new bug/improvement, do you mind if I open a new ticket about that? I didn't check the code at all but I guess it's dbus-based and there could be some signal to wait / some retry system that may fix this. Anyway, gBar is my bar everywhere now, thank you for this! |
In case there are any memory errors, it should just say something like this in the standard output:
e.g.:
Yeah, bluetooth is queried via dbus, feel free to open an issue (Though tbh, that sounds like an issue that is very hard to reproduce). But why don't you start gbar with the compositor? Then the dbus service should be initialized correctly. |
OK, I'll look at it. |
Description
gBar isn't 100% stable when adding or removing a monitor.
It seems to implement some interesting features when the set of available monitor is changed but they don't look very practical.
Ideally, two things are needed:
Reproduction
Unplug or Plug a monitor repeatedly
Expected behavior
gBar never crashed and is choosing the monitor which is the "best" when this setup is used
System information
Commit 6dd1ee6
Archlinux with Hyprland
Note
I implemented some workaround here https://github.com/hyprland-community/pyprland/wiki/gbar but I don't think the code will be useful at all.
It would be extra-nice to be able to specify either name or a (partial) description of the monitors, eg:
--monitors "SuperScreeXX,HDMI-A-1,DP-1,WELL-314X"
The text was updated successfully, but these errors were encountered: