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

Using text tool in gimp causes seg fault #39393

Closed
lxlml opened this issue Sep 20, 2022 · 16 comments · Fixed by #39466
Closed

Using text tool in gimp causes seg fault #39393

lxlml opened this issue Sep 20, 2022 · 16 comments · Fixed by #39466
Labels
bug Something isn't working

Comments

@lxlml
Copy link

lxlml commented Sep 20, 2022

Is this a new report?

Yes

System Info

Void 5.19.9_1 x86_64 GenuineIntel uptodate rrmFFFFFFFFFF

Package(s) Affected

gimp-2.10.30_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

https://gitlab.gnome.org/GNOME/gimp/-/issues/8631

Expected behaviour

Be able to use the text tool normally

Actual behaviour

Gimp crashes due to Segmentation fault

Steps to reproduce

  1. Open gimp
  2. Click on text box tool
  3. Start typing
@lxlml lxlml added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Sep 20, 2022
@lxlml
Copy link
Author

lxlml commented Sep 20, 2022

The root of this issue seems to be a bug in glib #39390

`

GNU Image Manipulation Program version 2.10.30
git-describe: GIMP_2_10_30
Build: unknown rev 0 for linux
# C compiler #
	Using built-in specs.
	COLLECT_GCC=/usr/bin/cc
	COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-unknown-linux-gnu/10.2.1/lto-wrapper
	Target: x86_64-unknown-linux-gnu
	Configured with: /builddir/gcc-10.2.1_pre1/configure --build=x86_64-unknown-linux-gnu --enable-gnu-unique-object --enable-vtable-verify --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib64 --libdir=/usr/lib64 --enable-threads=posix --enable-__cxa_atexit --disable-multilib --with-system-zlib --enable-shared --enable-lto --enable-plugins --enable-linker-build-id --disable-werror --disable-nls --enable-default-pie --enable-default-ssp --enable-checking=release --disable-libstdcxx-pch --with-isl --with-linker-hash-style=gnu --disable-sjlj-exceptions --disable-target-libiberty --enable-languages=c,c++,objc,obj-c++,fortran,lto,go,ada
	Thread model: posix
	Supported LTO compression algorithms: zlib
	gcc version 10.2.1 20201203 (GCC) 

# Libraries #
using babl version 0.1.96 (compiled against version 0.1.88)
using GEGL version 0.4.38 (compiled against version 0.4.34)
using GLib version 2.74.0 (compiled against version 2.70.2)
using GdkPixbuf version 2.42.6 (compiled against version 2.40.0)
using GTK+ version 2.24.33 (compiled against version 2.24.32)
using Pango version 1.50.9 (compiled against version 1.50.3)
using Fontconfig version 2.14.0 (compiled against version 2.13.1)
using Cairo version 1.16.0 (compiled against version 1.16.0)

fatal error: Segmentation fault

Stack trace:

/usr/lib/libgimpbase-2.0.so.0(gimp_stack_trace_print+0x398)[0x7f1ac2edc888]
gimp-2.10(+0xe1d3b)[0x558c6f557d3b]
gimp-2.10(+0xe210a)[0x558c6f55810a]
gimp-2.10(+0xe2769)[0x558c6f558769]
/usr/lib/libpthread.so.0(+0x13900)[0x7f1ac2295900]
/usr/lib/libgobject-2.0.so.0(+0x24993)[0x7f1ac254c993]
/usr/lib/libgobject-2.0.so.0(+0x1aaf6)[0x7f1ac2542af6]
/usr/lib/libgobject-2.0.so.0(+0x1b482)[0x7f1ac2543482]
/usr/lib/libgobject-2.0.so.0(g_object_new_with_properties+0x1e9)[0x7f1ac2544919]
gimp-2.10(gimp_image_undo_push+0x1a6)[0x558c6f8dbb16]
gimp-2.10(gimp_image_undo_push_text_layer+0x10c)[0x558c6f8de8dc]
gimp-2.10(gimp_text_tool_apply+0xf7)[0x558c6f609f17]
gimp-2.10(+0x195b8f)[0x558c6f60bb8f]
gimp-2.10(+0x195d42)[0x558c6f60bd42]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16f)[0x7f1ac253d6bf]
/usr/lib/libgobject-2.0.so.0(+0x2937b)[0x7f1ac255137b]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0xfd1)[0x7f1ac2557d01]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x8f)[0x7f1ac2557ebf]
gimp-2.10(+0x1985f5)[0x558c6f60e5f5]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16f)[0x7f1ac253d6bf]
/usr/lib/libgobject-2.0.so.0(+0x2937b)[0x7f1ac255137b]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0xfd1)[0x7f1ac2557d01]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_by_name+0x1ff)[0x7f1ac25580df]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16f)[0x7f1ac253d6bf]
/usr/lib/libgobject-2.0.so.0(+0x2937b)[0x7f1ac255137b]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0xfd1)[0x7f1ac2557d01]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_by_name+0x1ff)[0x7f1ac25580df]
/usr/lib/libgtk-x11-2.0.so.0(+0x11bc70)[0x7f1ac311bc70]
/usr/lib/libgtk-x11-2.0.so.0(+0x11c253)[0x7f1ac311c253]
gimp-2.10(gimp_text_tool_editor_key_press+0x98)[0x558c6f60fbc8]
gimp-2.10(+0x1ef6bc)[0x558c6f6656bc]
gimp-2.10(gimp_display_shell_canvas_tool_events+0x91)[0x558c6f6666c1]
/usr/lib/libgtk-x11-2.0.so.0(+0x135807)[0x7f1ac3135807]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16f)[0x7f1ac253d6bf]
/usr/lib/libgobject-2.0.so.0(+0x2937b)[0x7f1ac255137b]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x97a)[0x7f1ac25576aa]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x8f)[0x7f1ac2557ebf]
/usr/lib/libgtk-x11-2.0.so.0(+0x2513e4)[0x7f1ac32513e4]
/usr/lib/libgtk-x11-2.0.so.0(gtk_window_propagate_key_event+0xa8)[0x7f1ac3264d48]
gimp-2.10(+0x30c7bb)[0x558c6f7827bb]
/usr/lib/libgtk-x11-2.0.so.0(+0x135807)[0x7f1ac3135807]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16f)[0x7f1ac253d6bf]
/usr/lib/libgobject-2.0.so.0(+0x28d99)[0x7f1ac2550d99]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x97a)[0x7f1ac25576aa]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x8f)[0x7f1ac2557ebf]
/usr/lib/libgtk-x11-2.0.so.0(+0x2513e4)[0x7f1ac32513e4]
/usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0x14c)[0x7f1ac3133efc]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x36b)[0x7f1ac31342cb]
/usr/lib/libgdk-x11-2.0.so.0(+0x5facc)[0x7f1ac2fa3acc]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x25b)[0x7f1ac2444b2b]
/usr/lib/libglib-2.0.so.0(+0x54dd8)[0x7f1ac2444dd8]
/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x73)[0x7f1ac24450c3]
gimp-2.10(app_run+0x378)[0x558c6f5574d8]
gimp-2.10(main+0x37e)[0x558c6f556d9e]
/usr/lib/libc.so.6(__libc_start_main+0xea)[0x7f1ac20e3e0a]
gimp-2.10(_start+0x2a)[0x558c6f556f2a]

@lxlml
Copy link
Author

lxlml commented Sep 20, 2022

I can report downgrading glib without rebooting fixes the issue.

@paper42 paper42 removed the needs-testing Testing a PR or reproducing an issue needed label Sep 20, 2022
@paper42
Copy link
Member

paper42 commented Sep 20, 2022

@oreo639 on IRC discovered that this can be triggered by changing the text color, I can reproduce this

@bugcrazy

This comment was marked as off-topic.

@oreo639
Copy link
Member

oreo639 commented Sep 21, 2022

Regarding the glib issue, here is a more detailed explanation for it: (it's a null ptr dereference)
https://gitlab.gnome.org/GNOME/gimp/-/issues/8576

@paper42

This comment was marked as off-topic.

@biopsin
Copy link
Contributor

biopsin commented Sep 21, 2022

I confirm also text tool segfault upon adjusting textarea

@bugcrazy

This comment was marked as off-topic.

@biopsin
Copy link
Contributor

biopsin commented Sep 21, 2022

As of writing im running gimp-2.10.32 and the issue is present here as well, I use it daily and downgrading glib made my day for now.

@paper42

This comment was marked as off-topic.

@bugcrazy

This comment was marked as off-topic.

@oreo639

This comment was marked as off-topic.

@bugcrazy

This comment was marked as off-topic.

paper42 added a commit to paper42/void-packages that referenced this issue Sep 21, 2022
This reverts commit 6192dde.

Gimp seems to have issues with glib 2.74, let's revert for now.

void-linux#39393
https://gitlab.gnome.org/GNOME/gimp/-/issues/8636
paper42 added a commit that referenced this issue Sep 21, 2022
This reverts commit 6192dde.

Gimp seems to have issues with glib 2.74, let's revert for now.

#39393
https://gitlab.gnome.org/GNOME/gimp/-/issues/8636
@bugcrazy

This comment was marked as off-topic.

@paper42

This comment was marked as off-topic.

@paper42
Copy link
Member

paper42 commented Sep 25, 2022

So the bug was after all in glib, I marked all unrelated comments as off-topic because they are talking about a different issue and I didn't realize this earlier. This issue is about gimp crashing when changing text color with glib 2.74 and should be fixed with #39466.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants