After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 790822 - Focusing Entry in Tilix headerbar causes segfault
Focusing Entry in Tilix headerbar causes segfault
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-11-25 15:22 UTC by Gerald Nunn
Modified: 2017-11-26 18:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gerald Nunn 2017-11-25 15:22:12 UTC
I have an Entry in a customtitle bar that users can click to edit the title of the application. This has been working well for awhile now, however at some point it has started to segfault as per the backtrace further below.

The Entry is in a Stack in the Headerbar, the following sequence of events happens in the code:

a. User clicks titlebar
b. Timer is kicked off to ensure user isn't double-clicking titlebar
c. Once the timer is finished, stack is switched to display Entry
d. Entry is focused

The segfault starts in my code with focusing the Entry, however I don't believe it is a bug with my code looking at the trace and considering it was working earlier.

I am using Arch Linux with 3.22.26-1.

Here is the backtrace:


  • #0 gdk_x11_get_server_time
  • #1 0x00007fffef463b6b in
  • #2 0x00007fffef463c36 in
  • #3 gtk_clipboard_set_with_owner
  • #4 0x00007fffef255741 in
  • #5 0x00007fffef257c5f in
  • #6 g_signal_emit_valist
  • #7 g_signal_emit
  • #8 gtk_widget_grab_focus
  • #9 _D3gtk6WidgetQh9grabFocusMFZv
    at ../../../.dub/packages/gtk-d-3.7.1/gtk-d/generated/gtkd/gtk/Widget.d line 3531
  • #10 _D2gx5tilix11customtitle11CustomTitle11setViewModeMFEQBzQBzQBwQBm8ViewModeZv
    at source/gx/tilix/customtitle.d line 168
  • #11 gx.tilix.customtitle.CustomTitle.doEdit()
    at source/gx/tilix/customtitle.d line 184
  • #12 _D2gx5tilix11customtitle11CustomTitle15timeoutCallbackUCQCcQCcQBzQBpZb
    at source/gx/tilix/customtitle.d line 206
  • #13 0x00007ffff3cbdcb3 in
  • #14 g_main_context_dispatch
  • #15 0x00007ffff3cc0f69 in
  • #16 g_main_context_iteration
  • #17 g_application_run
  • #18 _D3gio11ApplicationQn3runMFAAyaZi
    at ../../../.dub/packages/gtk-d-3.7.1/gtk-d/generated/gtkd/gio/Application.d line 931

Comment 1 Gerald Nunn 2017-11-25 15:27:15 UTC
Under Wayland this works as expected.
Comment 2 Gerald Nunn 2017-11-26 18:56:14 UTC
This is my fault, for some reason linking in that x11_get_server_time function is causing the issue.