Menu

#44 Issues with

v1.0_(example)
open
nobody
None
5
2018-02-13
2017-04-06
No

I recently updated vcxsrv to the current latest version (1.19.2) and gnome3 menus in emacs 24 (current debian testing, accessed via putty with x forwarding) have stopped working. In the previous version I had active (1.16.x? not sure now, failed to note it down before upgrading) they worked fine.
Emacs25 was and remains broken as well - it starts up with a tiny window.

It looks like this is related to calculations of window/gadget sizes (there are plenty of Gtk warnings and criticals along the lines of
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed
and
Negative content width -11 (allocation 1, extents 6x6) while allocating gadget (node menuitem, owner GtkCheckMenuItem)

glxinfo reports GDI generic, so this may be related to ticket #19 as well

Discussion

  • Tim Van Holder

    Tim Van Holder - 2017-04-07

    Looks like the version I had before was 1.15.2; reinstalled that and things are working again.
    I'll look at installing 1.16/1.17/1.18 as well, to more clearly determine when the breakage happened, but that may a while to fit in.

     
  • Tim Van Holder

    Tim Van Holder - 2017-04-09

    1.17.5.1 works as well.

     
  • Michael LeMay

    Michael LeMay - 2017-04-28

    I observe this problem with both VcXsrv 1.19.2 and the Cygwin X server v.1.19.2. It affects GTK3 windows displayed from a remote machine running Ubuntu 17.04, but not Ubuntu 16.04. Ubuntu 17.04 uses GTK3 v.3.22.11 whereas 16.04 uses GTK3 v.3.18.9. This problem also affects Eclipse neon.3 when it is configured to use GTK3. The splash screen ends up offset, not in the middle of the screen. Then, the workspace selector window is so tiny that not even the corner "x" button to close the window is displayed nor usable. Even if the workspace selector is disabled, so a default workspace is automatically loaded, messages like the following are printed, but the workspace window is never actually displayed:

    (Eclipse:11839): GLib-CRITICAL **: g_base64_encode_step: assertion 'in != NULL' failed
    
    (Eclipse:11839): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -2 and height -2
    
    (Eclipse:11839): Gtk-WARNING **: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node toolbar, owner GtkToolbar)
    
    (Eclipse:11839): Gtk-WARNING **: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node toolbar, owner GtkToolbar)
    
    (Eclipse:11839): Gtk-WARNING **: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node toolbar, owner GtkToolbar)
    
    (Eclipse:11839): Gtk-WARNING **: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node toolbar, owner GtkToolbar)
    
    (Eclipse:11839): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -2 and height -2
    
    (Eclipse:11839): Gtk-WARNING **: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node toolbar, owner GtkToolbar)
    
    (Eclipse:11839): Gtk-WARNING **: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node toolbar, owner GtkToolbar)
    log4j:WARN No appenders could be found for logger (org.eclipse.jgit.util.FS).
    log4j:WARN Please initialize the log4j system properly.
    
    (Eclipse:11839): Gtk-WARNING **: Negative content width -5 (allocation 1, extents 3x3) while allocating gadget (node progressbar, owner GtkProgressBar)
    
    (Eclipse:11839): Gtk-WARNING **: Negative content width -2 (allocation 0, extents 1x1) while allocating gadget (node trough, owner GtkProgressBar)
    
    (Eclipse:11839): Gtk-WARNING **: Negative content width -5 (allocation 1, extents 3x3) while allocating gadget (node progressbar, owner GtkProgressBar)
    
    (Eclipse:11839): Gtk-WARNING **: Negative content width -2 (allocation 0, extents 1x1) while allocating gadget (node trough, owner GtkProgressBar)
    
    (Eclipse:11839): Gtk-WARNING **: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node separator, owner GtkSeparator)
    
    (Eclipse:11839): Gtk-WARNING **: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node separator, owner GtkSeparator)
    
    (Eclipse:11839): Gtk-WARNING **: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node separator, owner GtkSeparator)
    

    Forcing Eclipse to use GTK2 (as described at https://www.eclipse.org/swt/faq.php) permits the workspace window to appear and eliminates the Glib and Gtk warnings.

     
  • Gilles Pion

    Gilles Pion - 2017-12-12

    Same kind of problems on some versions of "virt-manager" (virtual machine manager, a GTK based tool, confirmed whith 1.4.1 version shipped with RedHat Linux 7.4).
    Some drop-downs menus are drawed off-screen wich make them unuseable.
    Reverting to 1.17.5.1of vcxsrv also fixes the issue

     
  • Luke Lee

    Luke Lee - 2018-02-02

    I got similar problem, but even worse. After I upgrade my OS to Debian9, Emacs (v25) (build with GTK3) start to fail. When trying to use its menu, there is no response (actually it shows error messages like the above). When creating a 2nd Window it's totally black. After rebuild Emacs with GTK2 it's still the same. Rollback VcXsrv to 1.17.5.1 only make things a little bit better. But when creating a new window using Emacs it's still half-black -- a half of the window was purely black. I tried building Emacs26, Emacs27 all experiencing similar problems.

    Eventually I have to roll back to build Emacs using GTK2 + Cygwin's X server, which is much much much much slower, but it works, sigh. Really hope these issues can be fixed. Thanks!

    [Feb./06/2018 update]: with the latest 1.19.6.0 release, on Debian9, Emacs25/26 build with GTK2 now works again! Glad to be able to switch back from Cygwin/X to VcXsrv. However, GTK3 issue remains. Not sure if it's caused by GTK3 itself or not, as GTK2 works well.

     

    Last edit: Luke Lee 2018-02-06
  • Sherman Wang

    Sherman Wang - 2018-02-13

    Appears to be a GTK3 bug with RANDR:
    https://bugzilla.gnome.org/show_bug.cgi?id=780101

     

Log in to post a comment.