dnfdragora icon indicating copy to clipboard operation
dnfdragora copied to clipboard

dnfdragora 2.1.2 starts the app window with 0 width

Open archerallstars opened this issue 3 years ago • 1 comments

As the title said. I installed the app on Fedora 36, GNOME 42.3, via GNOME Software.

If I am lucky, the app's windows stripe will not show at the edge of the screen. Otherwise, it would be impossible to resize the window, thus it's impossible to use the app at all. The issue is shown in the screen recording below:

Kooha-07-30-2022-22-11-59.webm

archerallstars avatar Jul 31 '22 02:07 archerallstars

I don't have gnome so i cannot testi right now. Can you please make two tests?

  1. run dnfdragora from console and see if it works or write something
  2. run dnfdragora with --fullscreen option and see if it works (in such a case a workaround could be to change the desktop file)

anaselli avatar Jul 31 '22 11:07 anaselli

Same here with Fedora 36:

<ERR> [Gdk] libyui-gtk:0 (): gdk_monitor_get_workarea: assertion 'GDK_IS_MONITOR (monitor)' failed <ERR> [Gdk] libyui-gtk:0 (): gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed <ERR> [Gdk] libyui-gtk:0 (): gdk_monitor_get_workarea: assertion 'GDK_IS_MONITOR (monitor)' failed <ERR> [Gdk] libyui-gtk:0 (): gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed <ERR> [Gtk] libyui-gtk:0 (): gtk_window_resize: assertion 'width > 0' failed <_M_> [mga-gtk-ui] YMGA_GCBTable.cc:439 YMGA_GCBTable(): columns 8 tot 8 (python3:6750): Gtk-WARNING **: 11:50:05.922: Negative content width -7 (allocation 1, extents 4x4) while allocating gadget (node headerbar, owner GtkHeaderBar) (python3:6750): Gtk-WARNING **: 11:50:05.923: gtk_widget_size_allocate(): attempt to allocate widget with width -102 and height 19 (python3:6750): Gtk-WARNING **: 11:50:05.923: Negative content width -23 (allocation 1, extents 12x12) while allocating gadget (node label, owner GtkLabel) (python3:6750): Gtk-WARNING **: 11:50:05.959: Negative content width -7 (allocation 1, extents 4x4) while allocating gadget (node headerbar, owner GtkHeaderBar) (python3:6750): Gtk-WARNING **: 11:50:05.959: gtk_widget_size_allocate(): attempt to allocate widget with width -102 and height 19 (python3:6750): Gtk-WARNING **: 11:50:05.959: Negative content width -23 (allocation 1, extents 12x12) while allocating gadget (node label, owner GtkLabel)

Works fine with "--qt" / "--ncurses" or " --fullscreen".

Switched to Qt in the desktop file as workaround.

LazyT avatar Sep 11 '22 10:09 LazyT

Thanks for the error, at least i can try to figure where the problem could be...

anaselli avatar Sep 11 '22 10:09 anaselli

Is DISPLAY variable set in your environment? I read here and there that could be the cause... i know it isn't a solution but another workaround maybe yes...

anaselli avatar Sep 18 '22 13:09 anaselli

Yes, it is set to "DISPLAY=:0"

LazyT avatar Sep 18 '22 13:09 LazyT

i committed a patch for libyui-gtk that seems to work, is there anyone who can confirm it so that i ask for a PR? Thanks

anaselli avatar Sep 25 '22 17:09 anaselli

with the above libyui-gtk commit and https://github.com/manatools/dnfdragora/commit/f42fdf5aaf40aec34fc8ab86fdc6aeb3fd207518 this bug should be fixed.

anaselli avatar Sep 30 '22 17:09 anaselli

can anyone pls tell me how to fix it?

liukliukliuk avatar Jan 14 '23 14:01 liukliukliuk

Ask your distro for libyui-gtk and dnfdragora updates

anaselli avatar Jan 14 '23 23:01 anaselli