GIMP crashes when I attempt to convert a 1 colour RGB image to an indexed image
GIMP version: 2.10.2
Operating System: Porteus 4.0 x86_64 (heavily modified version of Slackware 64-bit
Package: .xzm module made from GIMP and dependencies packages from the slackware64-current repository
Description of the bug
I was making a 512x512 image for a texture, and it had 1 colour. Since this was being made for a game engine that only supports 8 bit bmp textures, I had to convert it to indexed colours. When I tried that it crashed. it also crashes when trying to recover the file.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Convert any 1 colour image to indexed colour(s)
Expected result: The image to be converted to an indexed image
Actual result: It crashed
Additional information
I was able to do this no problem on pre 2.10 versions of GIMP
Here's the crash message
GNU Image Manipulation Program version 2.10.2
git-describe: GIMP_2_10_0-292-gbe7f9b433a
C compiler:
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/7.3.0/specs
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/7.3.0/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-7.3.0/configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,brig,c,c++,fortran,go,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --disable-install-libiberty --with-gnu-ld --verbose --with-arch-directory=amd64 --disable-gtktest --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 7.3.0 (GCC)
using GEGL version 0.4.2 (compiled against version 0.4.2)
using GLib version 2.56.1 (compiled against version 2.56.1)
using GdkPixbuf version 2.36.12 (compiled against version 2.36.12)
using GTK+ version 2.24.32 (compiled against version 2.24.32)
using Pango version 1.42.1 (compiled against version 1.42.1)
using Fontconfig version 2.13.0 (compiled against version 2.12.6)
using Cairo version 1.15.12 (compiled against version 1.15.12)
> fatal error: Aborted
Stack trace:
/usr/lib64/libgimpbase-2.0.so.0(gimp_stack_trace_print+0x436)[0x7f01afd30696]
gimp-2.10[0x4a6d0e]
gimp-2.10[0x4a7308]
gimp-2.10[0x4a7a17]
/lib64/libpthread.so.0(+0x12380)[0x7f01abfff380]
/lib64/libc.so.6(gsignal+0x9b)[0x7f01abc4155b]
/lib64/libc.so.6(abort+0x131)[0x7f01abc42bc1]
/lib64/libc.so.6(+0x2fd2a)[0x7f01abc32d2a]
/lib64/libc.so.6(+0x2fda2)[0x7f01abc32da2]
/usr/lib64/libbabl-0.1.so.0(+0x14342)[0x7f01ad83e342]
/usr/lib64/libbabl-0.1.so.0(+0x16b8c)[0x7f01ad840b8c]
/usr/lib64/libbabl-0.1.so.0(babl_palette_set_palette+0xeb)[0x7f01ad841d8b]
gimp-2.10[0x7a22fe]
/usr/lib64/libgobject-2.0.so.0(g_closure_invoke+0x19d)[0x7f01acb356bd]
/usr/lib64/libgobject-2.0.so.0(+0x22cee)[0x7f01acb47cee]
/usr/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xa45)[0x7f01acb50175]
/usr/lib64/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f01acb50b32]
gimp-2.10(gimp_image_convert_indexed+0x13fc)[0x7b27dc]
gimp-2.10[0x4c8129]
gimp-2.10[0x4e460e]
/usr/lib64/libgobject-2.0.so.0(g_closure_invoke+0x19d)[0x7f01acb356bd]
/usr/lib64/libgobject-2.0.so.0(+0x22c1e)[0x7f01acb47c1e]
/usr/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xa45)[0x7f01acb50175]
/usr/lib64/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f01acb50b32]
/usr/lib64/libgobject-2.0.so.0(g_closure_invoke+0x19d)[0x7f01acb356bd]
/usr/lib64/libgobject-2.0.so.0(+0x22c1e)[0x7f01acb47c1e]
/usr/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xa45)[0x7f01acb50175]
/usr/lib64/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f01acb50b32]
/usr/lib64/libgtk-x11-2.0.so.0(+0x8f6b5)[0x7f01b0ef16b5]
/usr/lib64/libgobject-2.0.so.0(g_closure_invoke+0x19d)[0x7f01acb356bd]
/usr/lib64/libgobject-2.0.so.0(+0x22cee)[0x7f01acb47cee]
/usr/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xa45)[0x7f01acb50175]
/usr/lib64/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f01acb50b32]
/usr/lib64/libgtk-x11-2.0.so.0(+0x8e679)[0x7f01b0ef0679]
/usr/lib64/libgtk-x11-2.0.so.0(+0x12f2bb)[0x7f01b0f912bb]
/usr/lib64/libgobject-2.0.so.0(g_closure_invoke+0x19d)[0x7f01acb356bd]
/usr/lib64/libgobject-2.0.so.0(+0x229a8)[0x7f01acb479a8]
/usr/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x3fc)[0x7f01acb4fb2c]
/usr/lib64/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f01acb50b32]
/usr/lib64/libgtk-x11-2.0.so.0(+0x23e22c)[0x7f01b10a022c]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_propagate_event+0xac)[0x7f01b0f8f57c]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_main_do_event+0x2eb)[0x7f01b0f8f96b]
/usr/lib64/libgdk-x11-2.0.so.0(+0x5a4ec)[0x7f01b0c084ec]
/usr/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x2c7)[0x7f01ac85c8c7]
/usr/lib64/libglib-2.0.so.0(+0x4dad8)[0x7f01ac85cad8]
/usr/lib64/libglib-2.0.so.0(g_main_loop_run+0xc2)[0x7f01ac85cde2]
gimp-2.10(app_run+0x32a)[0x4a670a]
gimp-2.10(main+0x33c)[0x4a5fdc]
/lib64/libc.so.6(__libc_start_main+0xe7)[0x7f01abc24ba7]
gimp-2.10(_start+0x2a)[0x4a616a]
Edited by lillolollo