You are not logged in.

#1 2022-05-03 10:21:57

lquidfire
Member
From: South Africa
Registered: 2017-07-26
Posts: 39

[SOLVED] Inkscape segfault glibmm

Hi!

Solution: An update to

glibmm 2.66.3-3

solved the issue.

Inkscape crashes for me when I start it - it worked fine just last week, so perhaps a recent update broke something.

The problem seems to be:

Core was generated by `/usr/bin/inkscape'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fb32446abe4 in Glib::get_unichar_from_std_iterator(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >) () from /usr/lib/libglibmm-2.4.so.1

Please bear with me and help me, if you wish, to debug this. I have no experience with this, but want to be as helpful as I can.

I am running

$ uname -a
Linux desktop 5.17.5-zen1-1-zen #1 ZEN SMP PREEMPT Wed, 27 Apr 2022 20:56:14 +0000 x86_64 GNU/Linux

Currently I am running the KDE desktop, but GTK is also installed (MATE desktop).

When was inkscape installed (and that day it worked)?

$ cat /var/log/pacman.log | grep inkscape
[2022-04-29T08:51:42+0200] [ALPM] installed inkscape (1.1.2-2)
[2022-04-29T08:51:42+0200] [PACKAGEKIT] installed inkscape (1.1.2-2)

Installation of Inkscape + all subsequent updates since then from pacman.log

snip

Inkscape version

$ pacman -Q inkscape
inkscape 1.1.2-2

Using the official package (I never built it myself)

$ which inkscape
/usr/bin/inkscape

Linked libraries

$ ldd $(which inkscape)
        linux-vdso.so.1 (0x00007ffff95d1000)
        libinkscape_base.so => /usr/bin/../lib/inkscape/libinkscape_base.so (0x00007f4f9cc54000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f4f9caef000)
        libgiomm-2.4.so.1 => /usr/lib/libgiomm-2.4.so.1 (0x00007f4f9c91c000)
        libglibmm-2.4.so.1 => /usr/lib/libglibmm-2.4.so.1 (0x00007f4f9c892000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f4f9c66c000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f4f9c651000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f4f9c445000)
        libboost_filesystem.so.1.78.0 => /usr/bin/../lib/inkscape/../libboost_filesystem.so.1.78.0 (0x00007f4f9c421000)
        libpangocairo-1.0.so.0 => /usr/bin/../lib/inkscape/../libpangocairo-1.0.so.0 (0x00007f4f9c410000)
        libcairo.so.2 => /usr/bin/../lib/inkscape/../libcairo.so.2 (0x00007f4f9c2ec000)
        libpangoft2-1.0.so.0 => /usr/bin/../lib/inkscape/../libpangoft2-1.0.so.0 (0x00007f4f9c2d3000)
        libpango-1.0.so.0 => /usr/bin/../lib/inkscape/../libpango-1.0.so.0 (0x00007f4f9c26c000)
        libharfbuzz.so.0 => /usr/bin/../lib/inkscape/../libharfbuzz.so.0 (0x00007f4f9c17a000)
        libfontconfig.so.1 => /usr/bin/../lib/inkscape/../libfontconfig.so.1 (0x00007f4f9c12a000)
        libfreetype.so.6 => /usr/bin/../lib/inkscape/../libfreetype.so.6 (0x00007f4f9c05b000)
        libgsl.so.27 => /usr/bin/../lib/inkscape/../libgsl.so.27 (0x00007f4f9bd83000)
        libgslcblas.so.0 => /usr/bin/../lib/inkscape/../libgslcblas.so.0 (0x00007f4f9bd41000)
        libsoup-2.4.so.1 => /usr/bin/../lib/inkscape/../libsoup-2.4.so.1 (0x00007f4f9bca0000)
        libgmodule-2.0.so.0 => /usr/bin/../lib/inkscape/../libgmodule-2.0.so.0 (0x00007f4f9bc97000)
        libgio-2.0.so.0 => /usr/bin/../lib/inkscape/../libgio-2.0.so.0 (0x00007f4f9bac9000)
        libgobject-2.0.so.0 => /usr/bin/../lib/inkscape/../libgobject-2.0.so.0 (0x00007f4f9ba6a000)
        libgc.so.1 => /usr/bin/../lib/inkscape/../libgc.so.1 (0x00007f4f9b9fd000)
        liblcms2.so.2 => /usr/bin/../lib/inkscape/../liblcms2.so.2 (0x00007f4f9b997000)
        libpoppler.so.119 => /usr/bin/../lib/inkscape/../libpoppler.so.119 (0x00007f4f9b5ec000)
        libpoppler-glib.so.8 => /usr/bin/../lib/inkscape/../libpoppler-glib.so.8 (0x00007f4f9b57f000)
        libwpg-0.3.so.3 => /usr/bin/../lib/inkscape/../libwpg-0.3.so.3 (0x00007f4f9b55f000)
        librevenge-0.0.so.0 => /usr/bin/../lib/inkscape/../librevenge-0.0.so.0 (0x00007f4f9b533000)
        librevenge-stream-0.0.so.0 => /usr/bin/../lib/inkscape/../librevenge-stream-0.0.so.0 (0x00007f4f9b510000)
        libvisio-0.1.so.1 => /usr/bin/../lib/inkscape/../libvisio-0.1.so.1 (0x00007f4f9b46d000)
        libcdr-0.1.so.1 => /usr/bin/../lib/inkscape/../libcdr-0.1.so.1 (0x00007f4f9b3c2000)
        libjpeg.so.8 => /usr/bin/../lib/inkscape/../libjpeg.so.8 (0x00007f4f9b33f000)
        libpng16.so.16 => /usr/bin/../lib/inkscape/../libpng16.so.16 (0x00007f4f9b308000)
        libpotrace.so.0 => /usr/bin/../lib/inkscape/../libpotrace.so.0 (0x00007f4f9b2fe000)
        libdbus-glib-1.so.2 => /usr/bin/../lib/inkscape/../libdbus-glib-1.so.2 (0x00007f4f9b2d5000)
        libgtkmm-3.0.so.1 => /usr/bin/../lib/inkscape/../libgtkmm-3.0.so.1 (0x00007f4f9ae80000)
        libatkmm-1.6.so.1 => /usr/bin/../lib/inkscape/../libatkmm-1.6.so.1 (0x00007f4f9ae30000)
        libgdkmm-3.0.so.1 => /usr/bin/../lib/inkscape/../libgdkmm-3.0.so.1 (0x00007f4f9add8000)
        libpangomm-1.4.so.1 => /usr/bin/../lib/inkscape/../libpangomm-1.4.so.1 (0x00007f4f9ada6000)
        libcairomm-1.0.so.1 => /usr/bin/../lib/inkscape/../libcairomm-1.0.so.1 (0x00007f4f9ad7d000)
        libsigc-2.0.so.0 => /usr/bin/../lib/inkscape/../libsigc-2.0.so.0 (0x00007f4f9ad74000)
        libgtk-3.so.0 => /usr/bin/../lib/inkscape/../libgtk-3.so.0 (0x00007f4f9a5ad000)
        libgdk-3.so.0 => /usr/bin/../lib/inkscape/../libgdk-3.so.0 (0x00007f4f9a4b5000)
        libz.so.1 => /usr/bin/../lib/inkscape/../libz.so.1 (0x00007f4f9a499000)
        libgdk_pixbuf-2.0.so.0 => /usr/bin/../lib/inkscape/../libgdk_pixbuf-2.0.so.0 (0x00007f4f9a453000)
        libgspell-1.so.2 => /usr/bin/../lib/inkscape/../libgspell-1.so.2 (0x00007f4f9a430000)
        libxslt.so.1 => /usr/bin/../lib/inkscape/../libxslt.so.1 (0x00007f4f9a3ee000)
        libxml2.so.2 => /usr/bin/../lib/inkscape/../libxml2.so.2 (0x00007f4f9a264000)
        libreadline.so.8 => /usr/bin/../lib/inkscape/../libreadline.so.8 (0x00007f4f9a20e000)
        libGraphicsMagick++.so.12 => /usr/bin/../lib/inkscape/../libGraphicsMagick++.so.12 (0x00007f4f9a197000)
        libX11.so.6 => /usr/bin/../lib/inkscape/../libX11.so.6 (0x00007f4f9a053000)
        lib2geom.so.1.1.0 => /usr/bin/../lib/inkscape/../lib2geom.so.1.1.0 (0x00007f4f99f4b000)
        libm.so.6 => /usr/bin/../lib/inkscape/../libm.so.6 (0x00007f4f99e63000)
        libgomp.so.1 => /usr/bin/../lib/inkscape/../libgomp.so.1 (0x00007f4f99e1e000)
        libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f4f99da5000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f4f9e35b000)
        libboost_atomic.so.1.78.0 => /usr/bin/../lib/inkscape/../libboost_atomic.so.1.78.0 (0x00007f4f99d9b000)
        libXext.so.6 => /usr/bin/../lib/inkscape/../libXext.so.6 (0x00007f4f99d86000)
        libXrender.so.1 => /usr/bin/../lib/inkscape/../libXrender.so.1 (0x00007f4f99d79000)
        libxcb.so.1 => /usr/bin/../lib/inkscape/../libxcb.so.1 (0x00007f4f99d4f000)
        libxcb-render.so.0 => /usr/bin/../lib/inkscape/../libxcb-render.so.0 (0x00007f4f99d3d000)
        libxcb-shm.so.0 => /usr/bin/../lib/inkscape/../libxcb-shm.so.0 (0x00007f4f99d38000)
        libpixman-1.so.0 => /usr/bin/../lib/inkscape/../libpixman-1.so.0 (0x00007f4f99c90000)
        libfribidi.so.0 => /usr/bin/../lib/inkscape/../libfribidi.so.0 (0x00007f4f99c70000)
        libthai.so.0 => /usr/bin/../lib/inkscape/../libthai.so.0 (0x00007f4f99c65000)
        libgraphite2.so.3 => /usr/bin/../lib/inkscape/../libgraphite2.so.3 (0x00007f4f99c3e000)
        libexpat.so.1 => /usr/bin/../lib/inkscape/../libexpat.so.1 (0x00007f4f99c0d000)
        libbz2.so.1.0 => /usr/bin/../lib/inkscape/../libbz2.so.1.0 (0x00007f4f99bfa000)
        libbrotlidec.so.1 => /usr/bin/../lib/inkscape/../libbrotlidec.so.1 (0x00007f4f99bec000)
        libsqlite3.so.0 => /usr/bin/../lib/inkscape/../libsqlite3.so.0 (0x00007f4f99a9e000)
        libpsl.so.5 => /usr/bin/../lib/inkscape/../libpsl.so.5 (0x00007f4f99a89000)
        libgssapi_krb5.so.2 => /usr/bin/../lib/inkscape/../libgssapi_krb5.so.2 (0x00007f4f99a34000)
        libpthread.so.0 => /usr/bin/../lib/inkscape/../libpthread.so.0 (0x00007f4f99a2f000)
        libmount.so.1 => /usr/bin/../lib/inkscape/../libmount.so.1 (0x00007f4f999ea000)
        libffi.so.8 => /usr/bin/../lib/inkscape/../libffi.so.8 (0x00007f4f999de000)
        libcurl.so.4 => /usr/bin/../lib/inkscape/../libcurl.so.4 (0x00007f4f99937000)
        libopenjp2.so.7 => /usr/bin/../lib/inkscape/../libopenjp2.so.7 (0x00007f4f998d5000)
        libtiff.so.5 => /usr/bin/../lib/inkscape/../libtiff.so.5 (0x00007f4f99842000)
        libsmime3.so => /usr/bin/../lib/inkscape/../libsmime3.so (0x00007f4f99819000)
        libnss3.so => /usr/bin/../lib/inkscape/../libnss3.so (0x00007f4f996e6000)
        libplc4.so => /usr/bin/../lib/inkscape/../libplc4.so (0x00007f4f996df000)
        libnspr4.so => /usr/bin/../lib/inkscape/../libnspr4.so (0x00007f4f9969b000)
        libwpd-0.10.so.10 => /usr/bin/../lib/inkscape/../libwpd-0.10.so.10 (0x00007f4f995f3000)
        libicuuc.so.71 => /usr/bin/../lib/inkscape/../libicuuc.so.71 (0x00007f4f993f4000)
        libicudata.so.71 => /usr/bin/../lib/inkscape/../libicudata.so.71 (0x00007f4f976ef000)
        libicui18n.so.71 => /usr/bin/../lib/inkscape/../libicui18n.so.71 (0x00007f4f973bd000)
        libdbus-1.so.3 => /usr/bin/../lib/inkscape/../libdbus-1.so.3 (0x00007f4f97368000)
        libatk-1.0.so.0 => /usr/bin/../lib/inkscape/../libatk-1.0.so.0 (0x00007f4f9733e000)
        libcairo-gobject.so.2 => /usr/bin/../lib/inkscape/../libcairo-gobject.so.2 (0x00007f4f97332000)
        libepoxy.so.0 => /usr/bin/../lib/inkscape/../libepoxy.so.0 (0x00007f4f971fe000)
        libXi.so.6 => /usr/bin/../lib/inkscape/../libXi.so.6 (0x00007f4f971ea000)
        libatk-bridge-2.0.so.0 => /usr/bin/../lib/inkscape/../libatk-bridge-2.0.so.0 (0x00007f4f971b2000)
        libcloudproviders.so.0 => /usr/bin/../lib/inkscape/../libcloudproviders.so.0 (0x00007f4f9719a000)
        libtracker-sparql-3.0.so.0 => /usr/bin/../lib/inkscape/../libtracker-sparql-3.0.so.0 (0x00007f4f970d1000)
        libXfixes.so.3 => /usr/bin/../lib/inkscape/../libXfixes.so.3 (0x00007f4f970c8000)
        libxkbcommon.so.0 => /usr/bin/../lib/inkscape/../libxkbcommon.so.0 (0x00007f4f9707f000)
        libwayland-client.so.0 => /usr/bin/../lib/inkscape/../libwayland-client.so.0 (0x00007f4f9706c000)
        libwayland-cursor.so.0 => /usr/bin/../lib/inkscape/../libwayland-cursor.so.0 (0x00007f4f97062000)
        libwayland-egl.so.1 => /usr/bin/../lib/inkscape/../libwayland-egl.so.1 (0x00007f4f9705d000)
        libXcursor.so.1 => /usr/bin/../lib/inkscape/../libXcursor.so.1 (0x00007f4f97051000)
        libXdamage.so.1 => /usr/bin/../lib/inkscape/../libXdamage.so.1 (0x00007f4f9704c000)
        libXcomposite.so.1 => /usr/bin/../lib/inkscape/../libXcomposite.so.1 (0x00007f4f97047000)
        libXrandr.so.2 => /usr/bin/../lib/inkscape/../libXrandr.so.2 (0x00007f4f97038000)
        libXinerama.so.1 => /usr/bin/../lib/inkscape/../libXinerama.so.1 (0x00007f4f97033000)
        libenchant-2.so.2 => /usr/bin/../lib/inkscape/../libenchant-2.so.2 (0x00007f4f97025000)
        liblzma.so.5 => /usr/bin/../lib/inkscape/../liblzma.so.5 (0x00007f4f96ffb000)
        libncursesw.so.6 => /usr/bin/../lib/inkscape/../libncursesw.so.6 (0x00007f4f96f87000)
        libGraphicsMagick.so.3 => /usr/bin/../lib/inkscape/../libGraphicsMagick.so.3 (0x00007f4f96dbe000)
        libSM.so.6 => /usr/bin/../lib/inkscape/../libSM.so.6 (0x00007f4f96db4000)
        libICE.so.6 => /usr/bin/../lib/inkscape/../libICE.so.6 (0x00007f4f96d97000)
        libltdl.so.7 => /usr/bin/../lib/inkscape/../libltdl.so.7 (0x00007f4f96d8b000)
        libdouble-conversion.so.3 => /usr/lib/libdouble-conversion.so.3 (0x00007f4f96d75000)
        libXau.so.6 => /usr/bin/../lib/inkscape/../libXau.so.6 (0x00007f4f96d6e000)
        libXdmcp.so.6 => /usr/bin/../lib/inkscape/../libXdmcp.so.6 (0x00007f4f96d66000)
        libdatrie.so.1 => /usr/bin/../lib/inkscape/../libdatrie.so.1 (0x00007f4f96d5c000)
        libbrotlicommon.so.1 => /usr/bin/../lib/inkscape/../libbrotlicommon.so.1 (0x00007f4f96d39000)
        libunistring.so.2 => /usr/bin/../lib/inkscape/../libunistring.so.2 (0x00007f4f96bb7000)
        libidn2.so.0 => /usr/bin/../lib/inkscape/../libidn2.so.0 (0x00007f4f96b93000)
        libkrb5.so.3 => /usr/bin/../lib/inkscape/../libkrb5.so.3 (0x00007f4f96aba000)
        libk5crypto.so.3 => /usr/bin/../lib/inkscape/../libk5crypto.so.3 (0x00007f4f96a8a000)
        libcom_err.so.2 => /usr/bin/../lib/inkscape/../libcom_err.so.2 (0x00007f4f96a84000)
        libkrb5support.so.0 => /usr/bin/../lib/inkscape/../libkrb5support.so.0 (0x00007f4f96a75000)
        libkeyutils.so.1 => /usr/bin/../lib/inkscape/../libkeyutils.so.1 (0x00007f4f96a6e000)
        libresolv.so.2 => /usr/bin/../lib/inkscape/../libresolv.so.2 (0x00007f4f96a58000)
        libblkid.so.1 => /usr/bin/../lib/inkscape/../libblkid.so.1 (0x00007f4f96a1f000)
        libnghttp2.so.14 => /usr/bin/../lib/inkscape/../libnghttp2.so.14 (0x00007f4f969f8000)
        libssh2.so.1 => /usr/bin/../lib/inkscape/../libssh2.so.1 (0x00007f4f969b7000)
        libssl.so.1.1 => /usr/bin/../lib/inkscape/../libssl.so.1.1 (0x00007f4f96920000)
        libcrypto.so.1.1 => /usr/bin/../lib/inkscape/../libcrypto.so.1.1 (0x00007f4f9663f000)
        libzstd.so.1 => /usr/bin/../lib/inkscape/../libzstd.so.1 (0x00007f4f9658e000)
        libnssutil3.so => /usr/bin/../lib/inkscape/../libnssutil3.so (0x00007f4f9655b000)
        libplds4.so => /usr/bin/../lib/inkscape/../libplds4.so (0x00007f4f96556000)
        libsystemd.so.0 => /usr/bin/../lib/inkscape/../libsystemd.so.0 (0x00007f4f9647a000)
        libatspi.so.0 => /usr/bin/../lib/inkscape/../libatspi.so.0 (0x00007f4f9643e000)
        libstemmer.so.0 => /usr/bin/../lib/inkscape/../libstemmer.so.0 (0x00007f4f96371000)
        libjson-glib-1.0.so.0 => /usr/bin/../lib/inkscape/../libjson-glib-1.0.so.0 (0x00007f4f96346000)
        libuuid.so.1 => /usr/bin/../lib/inkscape/../libuuid.so.1 (0x00007f4f9633d000)
        liblz4.so.1 => /usr/bin/../lib/inkscape/../liblz4.so.1 (0x00007f4f96318000)
        libcap.so.2 => /usr/bin/../lib/inkscape/../libcap.so.2 (0x00007f4f9630c000)
        libgcrypt.so.20 => /usr/bin/../lib/inkscape/../libgcrypt.so.20 (0x00007f4f961c3000)
        libgpg-error.so.0 => /usr/bin/../lib/inkscape/../libgpg-error.so.0 (0x00007f4f9619c000)

Coredumpctl info #PID gives

snip

Core was generated by `/usr/bin/inkscape'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fb32446abe4 in Glib::get_unichar_from_std_iterator(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >) () from /usr/lib/libglibmm-2.4.so.1
[Current thread is 1 (Thread 0x7fb31dd0af40 (LWP 2018))]
(gdb)

I have no idea where to go from here; just tried to get as much info as I could. If anyone could please assist, that would be great!

Last edited by lquidfire (2022-05-04 06:25:32)

Offline

#2 2022-05-03 12:28:40

lepokle
Member
Registered: 2013-04-14
Posts: 6

Re: [SOLVED] Inkscape segfault glibmm

Downgrading glibmm to 2.66.2-1 as stated in https://gitlab.com/inkscape/inbox/-/issues/6904 solves the issue for me.

Offline

#3 2022-05-03 12:36:00

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: [SOLVED] Inkscape segfault glibmm

Edit: well, a glibmm bug is more likely than a truckload of broken installation locales ;-)


http://manual.freeshell.org/glibmm-2.4/reference/html/namespaceGlib.html#a1053052aad41d0dcf51f36c345bf4625 wrote:

Convert a single UTF-8 (multibyte) character starting at pos to a UCS-4 wide character. This may read up to 6 bytes after the start position, depending on the UTF-8 character width. You have to make sure the source contains at least one valid UTF-8 character.

localectl; locale; locale -a

Last edited by seth (2022-05-03 12:38:43)

Offline

#4 2022-05-03 14:31:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 16,420

Re: [SOLVED] Inkscape segfault glibmm

You should be able to upgrade again to get glibmm 2.66.3-2

Offline

#5 2022-05-03 15:05:11

robson75
Member
From: Poland
Registered: 2020-06-28
Posts: 100

Re: [SOLVED] Inkscape segfault glibmm

You have to rebuild inkscape to make it fit for the glibmm package.


Arch Linux Xfce+compiz - 64Bit Linux User #621110

Offline

#6 2022-05-03 15:22:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,290

Re: [SOLVED] Inkscape segfault glibmm

robson75 wrote:

You have to rebuild inkscape to make it fit for the glibmm package.

No you don't.

Offline

#7 2022-05-03 15:25:18

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,363

Re: [SOLVED] Inkscape segfault glibmm

Just to confirm it is now fixed with the recent update of glibmm to 2.66.3-2.

Offline

#8 2022-05-03 17:58:41

lquidfire
Member
From: South Africa
Registered: 2017-07-26
Posts: 39

Re: [SOLVED] Inkscape segfault glibmm

Thank you, everybody!

I see

glibmm 2.66.3-3

in the repo's and will install it tomorrow and report back. It has already been confirmed to work, though.

I should have looked at the Inkscape bug tracker..

Thanks again!

Offline

#9 2022-05-03 18:46:41

GoblinMendicant
Member
Registered: 2019-09-02
Posts: 15

Re: [SOLVED] Inkscape segfault glibmm

Confirmed to be fixed with

glibmm 2.66.3-3

after a restart.

Offline

Board footer

Powered by FluxBB