Crash on right clicking some textboxes (or using Fcitx5 in them)
Environment/Versions
- GIMP version: 2.99
- Package: self-built/master
- Operating System: Linux, Wayland (untested on X.Org)
Description of the bug
I've encountered an issue where if I use Fcitx5 IME in certain textboxes (e.g. font selection and font size textboxes in the floating popup of the text tool), Gimp crashes. Fcitx5 developer additionally noticed that it crashes without Fcitx5 if you right click on the textboxes. My original reports can be accessed here and here.
Reproduction
Is the bug reproducible? Almost always, but it doesn't happen once in around 10 tries
Reproduction steps:
- Create a new image
- Create a text layer using the text tool
- Either right click on any of the font/font size textboxes, or type something in there using Fcitx5 IME (not tested with any other IMEs)
Expected result:
No crash, with IME you should be able to write in there as usual, in case of right click I suppose a text edit menu with copy/paste/etc options should open, or at least nothing should happen.
Actual result:
GIMP crashes.
Additional information
Here's the backtrace:
#0 0x00007ffff710bec4 in calculate_moved_to_rect_result () from /nix/store/5y5gmfp3pjr60rlsvrc1zk8pds14kzzv-gtk+3-3.24.38/lib/libgdk-3.so.0
#1 0x00007ffff710c251 in xdg_popup_configure () from /nix/store/5y5gmfp3pjr60rlsvrc1zk8pds14kzzv-gtk+3-3.24.38/lib/libgdk-3.so.0
#2 0x00007ffff6063a3a in ffi_call_unix64 () from /nix/store/35badg7gpxkhyzcrdyh2dfi9wfd43phz-libffi-3.4.4/lib/libffi.so.8
#3 0x00007ffff6062935 in ffi_call_int () from /nix/store/35badg7gpxkhyzcrdyh2dfi9wfd43phz-libffi-3.4.4/lib/libffi.so.8
#4 0x00007ffff6063518 in ffi_call () from /nix/store/35badg7gpxkhyzcrdyh2dfi9wfd43phz-libffi-3.4.4/lib/libffi.so.8
#5 0x00007ffff5d7d7e6 in wl_closure_invoke () from /nix/store/9a9hfbv339z3jla9j59ql9q17wrs8sk1-wayland-1.22.0/lib/libwayland-client.so.0
#6 0x00007ffff5d79bd9 in dispatch_event.isra () from /nix/store/9a9hfbv339z3jla9j59ql9q17wrs8sk1-wayland-1.22.0/lib/libwayland-client.so.0
#7 0x00007ffff5d7b534 in wl_display_dispatch_queue_pending ()
from /nix/store/9a9hfbv339z3jla9j59ql9q17wrs8sk1-wayland-1.22.0/lib/libwayland-client.so.0
#8 0x00007ffff70fec54 in _gdk_wayland_display_queue_events () from /nix/store/5y5gmfp3pjr60rlsvrc1zk8pds14kzzv-gtk+3-3.24.38/lib/libgdk-3.so.0
#9 0x00007ffff70c63d0 in gdk_display_get_event () from /nix/store/5y5gmfp3pjr60rlsvrc1zk8pds14kzzv-gtk+3-3.24.38/lib/libgdk-3.so.0
#10 0x00007ffff70fe972 in gdk_event_source_dispatch () from /nix/store/5y5gmfp3pjr60rlsvrc1zk8pds14kzzv-gtk+3-3.24.38/lib/libgdk-3.so.0
#11 0x00007ffff7978ead in g_main_context_dispatch () from /nix/store/1c6x8n47mq5rcivsp72b0dyqgjghi6yx-glib-2.76.4/lib/libglib-2.0.so.0
#12 0x00007ffff7979158 in g_main_context_iterate.constprop () from /nix/store/1c6x8n47mq5rcivsp72b0dyqgjghi6yx-glib-2.76.4/lib/libglib-2.0.so.0
#13 0x00007ffff79791ec in g_main_context_iteration () from /nix/store/1c6x8n47mq5rcivsp72b0dyqgjghi6yx-glib-2.76.4/lib/libglib-2.0.so.0
#14 0x00007ffff772256d in g_application_run () from /nix/store/1c6x8n47mq5rcivsp72b0dyqgjghi6yx-glib-2.76.4/lib/libgio-2.0.so.0
#15 0x0000000000672903 in app_run (full_prog_name=0xb23e60 "/home/user/code/cpp/gimp/_build/app/gimp-2.99", filenames=<optimized out>,
alternate_system_gimprc=alternate_system_gimprc@entry=0x0, alternate_gimprc=alternate_gimprc@entry=0x0, session_name=<optimized out>,
batch_interpreter=<optimized out>, batch_commands=0x0, quit=0, as_new=0, no_interface=0, no_data=0, no_fonts=0, no_splash=0, be_verbose=0,
use_shm=1, use_cpu_accel=1, console_messages=0, use_debug_handler=0, show_playground=1, show_debug_menu=1,
stack_trace_mode=GIMP_STACK_TRACE_QUERY, pdb_compat_mode=GIMP_PDB_COMPAT_WARN,
backtrace_file=0xb05650 "/home/user/.config/GIMP/2.99/CrashLog/gimp-crash-1696885823.txt") at ../app/app.c:317
#16 0x00000000004ba887 in main (argc=<optimized out>, argv=<optimized out>) at ../app/main.c:796
It's the same whether it's right clicking or using Fcitx5
Edited by Anna Pavlyuk