I just built emacs with X11 support on Debian, but every time I start it, the window pops up and works just fine until I resize the window, at which point it crashes.

user@host:~/emacs-26.1$ ./src/emacs
X protocol error: BadRequest (invalid request code or no such operation) on protocol request 130
When compiled with GTK, Emacs cannot recover from X disconnects.
This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715
For details, see etc/PROBLEMS.
Fatal error 6: Aborted
Aborted (core dumped)

The GTK bug mentioned in the dump is a very old bug (opened in 2002) that was resolved as obsolete within the past few months.

Is this possibly an issue with my configuration or is this a bug I should report to emacs-devel/GTK?

  • It also happens when I start emacs maximized (emacs -mm) or seemingly any type of sizing. Aug 23 '18 at 15:54
  • Is your entire system up to date? Try doing a full upgrade and starting emacs with no init file (-q). This sounds like an ABI conflict to me.
    – user12563
    Aug 23 '18 at 16:28
  • apt-get update && apt-get upgrade doesn't install any new versions. I don't have an init file yet on this system, but adding -q indeed has no impact. Aug 23 '18 at 16:37
  • What drivers do you have for your graphics card? Did you encounter anything similar with any other gtk3 software?
    – user12563
    Aug 23 '18 at 16:42
  • Recompile Emacs with debug symbols (CFLAGS=-g ./configure), launch it within gdb, enable logging backtraces to file and submit a bug report with that backtrace.
    – wasamasa
    Aug 23 '18 at 18:03

I've submitted https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32518 to the emacs maintainers.

From that bug report, there seems to be a patch available that may fix this issue, but that patch is not yet present in Debian-stretch.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.