Skip to content
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

Main menu stops working #337

Closed
narical opened this issue Jul 14, 2018 · 15 comments
Closed

Main menu stops working #337

narical opened this issue Jul 14, 2018 · 15 comments

Comments

@narical
Copy link

narical commented Jul 14, 2018

System information

SolveSpace version: 3.0~8192c965
Operating system: Archlinux (stable repos, up to date)

What is going on

When main window is inactive, pressing main menu breaks drop-downs, they stop working.

Steps to reproduce:

  1. run solvespace
  2. switch to any other window
  3. press any main menu button (file, edit, etc.)

Additional information

Every time solvespace gives the same error in terminal:
(solvespace:27385): Gdk-CRITICAL **: 20:28:36.852: Window 0x55927d24fb00 has not been made visible in GdkSeatGrabPrepareFunc

There was another error, but only once and I can't reproduce it:
(solvespace:27385): Gtk-CRITICAL **: 20:28:55.003: gtk_window_set_mnemonics_visible: assertion 'GTK_IS_WINDOW (window)' failed

@whitequark whitequark added the bug label Jul 14, 2018
@narical
Copy link
Author

narical commented Jul 14, 2018

Updated solvespace to latest git master, bug still presented.

@whitequark
Copy link
Contributor

Can you please build the platform branch from this repository and see if it helps?

@narical
Copy link
Author

narical commented Jul 14, 2018

I built it from platform branch, same error.
Difference is - when I close window I get ~20 similar pairs of errors:

(solvespace:27299): glibmm-CRITICAL **: 21:41:25.228: Glib::ObjectBase* Glib::wrap_create_new_wrapper(GObject*): assertion 'wrap_func_table != nullptr' failed

(solvespace:27299): glibmm-WARNING **: 21:41:25.228: Failed to wrap object of type 'GtkWindow'. Hint: this error is commonly caused by failing to call a library init() function.

@whitequark
Copy link
Contributor

That's really odd. Which GTK version?

@narical
Copy link
Author

narical commented Jul 14, 2018

local/gtk2 2.24.32-1
    GObject-based multi-platform GUI toolkit (legacy)
local/gtk3 3.22.30-1
    GObject-based multi-platform GUI toolkit

@narical
Copy link
Author

narical commented Jul 14, 2018

Reinstalled gtk packages, rebooted PC, changed gnome shell and gtk themes to default (adwaita). Same.

@whitequark
Copy link
Contributor

Sorry, no idea. I have the exact same GTK version and everything works.

@narical
Copy link
Author

narical commented Jan 16, 2019

Bug disappeared. Close issue?

@a6zj6
Copy link

a6zj6 commented Jan 6, 2020

Can this issue be re-opened? I am running Ubuntu 18.04.3 LTS and I have this exact same problem. This is not specific to any one application for me, it's the entire operating system. For example, if I have mail open and another application open, if mail is not the currently-focused window and I click on any menu in the mail window (evolution mail), the menu stops working. The only way I can get the menus to again re-appear is to quit the program and re-open. Very frustrating.

What is going on: When main window is inactive, pressing main menu breaks drop-downs, they stop working.

@whitequark
Copy link
Contributor

Why are you asking to reopen a SolveSpace issue if you say that your problem isn't SolveSpace-specific?

@a6zj6
Copy link

a6zj6 commented Jan 6, 2020

My apologies, I wasn't aware that it was specific to SolveSpace; it is however the identical issue which, in my mind, means it is not specific to SolveSpace but is a bug within the operating system itself.
Should I open a new issue?

@a6zj6
Copy link

a6zj6 commented Jan 6, 2020

I should also mention that the error I get if I launch from terminal and reproduce the issue is identical:
(evolution:12656): Gdk-CRITICAL **: 10:21:32.823: Window 0x5604a7d4d4b0 has not been made visible in GdkSeatGrabPrepareFunc

@whitequark
Copy link
Contributor

You're correct; it is not an issue with SolveSpace, although before now no one has reported that it affects other applications too. Unfortunately, because it is not an issue with SolveSpace, there is nothing I can do about it, so there is no point in keeping the bug open or opening a new one.

You could report it against GTK upstream. Though, if I recall, I did mention it on GTK IRC channel and we concluded it's probably not GTK either, but rather Mesa or i965.

@a6zj6
Copy link

a6zj6 commented Jan 6, 2020

Ok, thanks for the help whitequark.
I've reported it in askubuntu.com here: https://askubuntu.com/questions/1201041/issue-with-menu-not-being-displayed-when-clicked-on-and-window-is-not-focused-be

So, based on your last post, you've seen this issue as well? Do you still experience this issue or were you able to correct it?

@SyntevoAlex
Copy link

SyntevoAlex commented Jun 22, 2020

I'm investigating a similar issue and I think this is how to reproduce:

  1. In GNOME settings | Region & Language, select Allow different sources for each window.
  2. Use GNOME on XOrg session.
  3. When window is on background, right-click the menubar.
  4. Repeat a few times if needed.
  5. Issue is present on Ubuntu 18.04, but no longer there on Ubuntu 20.04.

See also: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1899

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants