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

gtk3 applications crash when trying to open context menu #976

Closed
jplatte opened this issue Nov 27, 2016 · 2 comments
Closed

gtk3 applications crash when trying to open context menu #976

jplatte opened this issue Nov 27, 2016 · 2 comments

Comments

@jplatte
Copy link

jplatte commented Nov 27, 2016

I've tried this with roxterm and a bunch of gnome programs, they crash reliably. The all print the same error message. E.g. gedit:

(gedit:10785): Gdk-ERROR **: Error flushing display: Broken pipe
[1]    10785 trace trap (core dumped)  LC_ALL=C gedit

This problem doesn't happen with Pidgin (gtk2 via XWayland) or Dolphin (Qt5).

I can reproduce this bug both with wlc 0.0.7 and sway 0.10 from the official arch repositories as well as with the latest git versions of both. Also for some bizarre reason, when using gtk3 with the typeahead patch (gtk3-typeahead in AUR), the processes all still terminate, but actually just with exit code 1, no core dump; and the error message looks different:

# LANG=en_US.utf8
Gdk-WARNING **: Error 71 (Protokollfehler) dispatching to Wayland display.

# LANG=de_DE.utf8
Gdk-WARNING **: Lost connection to Wayland compositor.

I'd be happy to help debug this. I guess I'd start by rebuilding gtk3 without stripping symbols, right?

EDIT: Right clicking is not the problem, in dwt where it opens a popover instead of a context menu, this issue doesn't occur.

@ddevault
Copy link
Contributor

Yes, that'd be a good first step. The issue is likely a problem with wlc - try to reproduce this with the orbment compositor, then move your bug to the wlc repo if you can. As a workaround, try forcing GTK to use the x11 backend with GDK_BACKEND=x11

@jplatte jplatte changed the title gtk3 applications crash when trying to open context menu with right click gtk3 applications crash when trying to open context menu Nov 27, 2016
@jplatte
Copy link
Author

jplatte commented Nov 27, 2016

Yup, can reproduce with orbment. And thanks for providing a workaround!

Moved to Cloudef/wlc#210

@jplatte jplatte closed this as completed Nov 27, 2016
emilyhorsman added a commit to emilyhorsman/em-hv-fedora-ansible that referenced this issue Jan 15, 2017
Note: As of swaywm/sway#976, this should be
run with `env GDK_BACKEND=x11 blivet-gui`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants