Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#53270 closed defect (duplicate)

inkscape 0.92 crashes on macOS 10.12.2

Reported by: unterkir Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc: maslovalex, hmeine (Hans Meine)
Port: inkscape

Description (last modified by mf2k (Frank Schima))

I installed inkscape on macOS Sierra:

macOS 10.12.2

port installed inkscape
The following ports are currently installed:
 inkscape @0.92.0_0+quartz (active)

Xcode 8.2 Build version 8C38 MacPorts 2.3.5

locale gives:

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

when I run inkscape it crashes:

inkscape[1047:101038] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.

Segmentation fault: 11

Debugging with lldb

Process 1084 launched: '/opt/local/bin/inkscape' (x86_64)
2017-01-10 00:07:57.864026 inkscape[1084:114303] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
Process 1084 stopped
* thread #1: tid = 0x1be7f, 0x00007fffb37e70f3 libsystem_c.dylib`_UTF8_mbsnrtowcs + 287, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00007fffb37e70f3 libsystem_c.dylib`_UTF8_mbsnrtowcs + 287
libsystem_c.dylib`_UTF8_mbsnrtowcs:
->  0x7fffb37e70f3 <+287>: cmpb   $0x0, (%r12)
    0x7fffb37e70f8 <+292>: jg     0x7fffb37e70e0            ; <+268>
    0x7fffb37e70fa <+294>: leaq   -0x2c(%rbp), %rdi
    0x7fffb37e70fe <+298>: movq   %r12, %rsi
backtrace:
* thread #1: tid = 0x1be7f, 0x00007fffb37e70f3 libsystem_c.dylib`_UTF8_mbsnrtowcs + 287, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)

  * frame #0: 0x00007fffb37e70f3 libsystem_c.dylib`_UTF8_mbsnrtowcs + 287

    frame #1: 0x00007fffb37e1f02 libsystem_c.dylib`__collate_mbstowcs + 123

    frame #2: 0x00007fffb380b79c libsystem_c.dylib`strcoll_l + 76

    frame #3: 0x0000000102d50f99 libglib-2.0.0.dylib`g_utf8_collate + 105

    frame #4: 0x0000000100286d33 inkscape`font_factory::GetUIStyles(_PangoFontFamily*) + 221

    frame #5: 0x000000010028c488 inkscape`Inkscape::FontLister::update_font_list(SPDocument*) + 1490

    frame #6: 0x00000001003b46cc inkscape`sp_text_toolbox_prep(SPDesktop*, _GtkActionGroup*, _GObject*) + 156

    frame #7: 0x00000001003bdf25 inkscape`setup_aux_toolbox(_GtkWidget*, SPDesktop*) + 435

    frame #8: 0x00000001003bda44 inkscape`Inkscape::UI::ToolboxFactory::setToolboxDesktop(_GtkWidget*, SPDesktop*) + 518

    frame #9: 0x00000001003eb71f inkscape`Inkscape::UI::UXManagerImpl::connectToDesktop(std::__1::vector<_GtkWidget*, std::__1::allocator<_GtkWidget*> > const&, SPDesktop*) + 201

    frame #10: 0x0000000100363ac8 inkscape`SPDesktopWidget::createInstance(SPNamedView*) + 794

    frame #11: 0x0000000100363795 inkscape`sp_desktop_widget_new(SPNamedView*) + 11

    frame #12: 0x000000010004d97f inkscape`sp_file_new(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 223

    frame #13: 0x000000010004dc89 inkscape`sp_file_new_default() + 49

    frame #14: 0x000000010000fcba inkscape`sp_main_gui(int, char const**) + 929

    frame #15: 0x00007fffb377a255 libdyld.dylib`start + 1

    frame #16: 0x00007fffb377a255 libdyld.dylib`start + 1

Change History (8)

comment:1 Changed 8 years ago by su-v

Same as #52632?

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Owner: set to dbevans
Port: inkscape added
Status: newassigned

In the future, please use WikiFormatting, fill in the Port field and Cc the port maintainers (port info --maintainers inkscape), if any.

comment:3 Changed 8 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 Changed 8 years ago by cschulzeb (Christian Schulz)

I have experienced the same issue as the OP and managed to resolve the crash by using a suggestion from ticket:52632#comment:13 and setting LANG to en_GB instead of en_GB.UTF-8.

inkscape does not crash anymore, but many of the following error messages appear:

(inkscape:50774): GLib-CRITICAL **: g_convert: assertion 'str != NULL' failed

If I set LC_ALL to en_GB as well, the error message changes to a different line

(inkscape:51092): GLib-CRITICAL **: g_convert: assertion 'str != NULL' failed

If I set LANG and LC_TYPE to UTF-8, the error changes to

(inkscape:51215): GLib-CRITICAL **: g_convert: assertion 'str != NULL' failed

I am using macOS sierra 10.12.3 beta 3 and inkscape in the following version

$ port installed inkscape
The following ports are currently installed:
  inkscape @0.92.0_0+quartz
  inkscape @0.92.0_1+quartz (active)

Please let me know if you need additional information.

comment:5 in reply to:  4 Changed 8 years ago by unterkir

Thanks, using the suggestion from ticket:52632#comment:13 solves the problem for me (and I see the same error messages as you do)

Replying to cschulzeb:

I have experienced the same issue as the OP and managed to resolve the crash by using a suggestion from ticket:52632#comment:13 and setting LANG to en_GB instead of en_GB.UTF-8.

inkscape does not crash anymore, but many of the following error messages appear:

(inkscape:50774): GLib-CRITICAL **: g_convert: assertion 'str != NULL' failed

If I set LC_ALL to en_GB as well, the error message changes to a different line

(inkscape:51092): GLib-CRITICAL **: g_convert: assertion 'str != NULL' failed

If I set LANG and LC_TYPE to UTF-8, the error changes to

(inkscape:51215): GLib-CRITICAL **: g_convert: assertion 'str != NULL' failed

I am using macOS sierra 10.12.3 beta 3 and inkscape in the following version

$ port installed inkscape
The following ports are currently installed:
  inkscape @0.92.0_0+quartz
  inkscape @0.92.0_1+quartz (active)

Please let me know if you need additional information.

comment:6 Changed 8 years ago by maslovalex

Cc: maslovalex added

comment:7 Changed 8 years ago by raimue (Rainer Müller)

Resolution: duplicate
Status: assignedclosed

As the workaround from ticket:52632#comment:13 resolves this problem, closing this ticket as duplicate.

comment:8 Changed 8 years ago by hmeine (Hans Meine)

Cc: hmeine added
Note: See TracTickets for help on using tickets.