Klowner/inkscape-applytransforms

Fails from command line 100% of the time

Closed this issue · 5 comments

I'm running
inkscape --actions="com.klowner.filter.apply-transform;export-do" file.svg

the svg looks like

..................snip.....
  </defs>
  <g
     inkscape:label="Layer 1"
     inkscape:groupmode="layer"
     id="layer1"
     transform="translate(9.6501094,-20.044252)">
    <path
       d="m -2.5461094,106.82825 q -2.304,0 -4.032,-0.384 -1.728,-0.288 -3.072,-0.864 v -7.295998 q 1.536,0.384 3.264,0.672 1.728,0.288 3.648,0.288 2.40000002,0 4.512,-0.96 2.208,-0.96 3.552,-3.36 1.344,-2.4 1.344,-6.72 v -68.16 h 8.6400004 v 67.488 q 0,9.888 -4.896,14.591998 -4.8960004,4.704 -12.9600004,4.704 z M 51.693959,36.268252 q 9.408,0 13.92,4.128 4.512,4.128 4.512,13.152 v 35.04 h -6.144 l -1.632,-7.296 h -0.384 q -3.36,4.224 -7.104,6.24 -3.648,2.016 -10.176,2.016 -7.008,0 -11.616,-3.648 -4.608,-3.744 -4.608,-11.616 0,-7.68 6.048,-11.808 6.048,-4.224 18.624,-4.608 l 8.736,-0.288 v -3.072 q 0,-6.432 -2.784,-8.928 -2.784,-2.496 -7.872,-2.496 -4.032,0 -7.68,1.248 -3.648,1.152 -6.816,2.688 l -2.592,-6.336 q 3.36,-1.824 7.968,-3.072 4.608,-1.344 9.6,-1.344 z m 2.496,27.456 q -9.6,0.384 -13.344,3.072 -3.648,2.688 -3.648,7.584 0,4.32 2.592,6.336 2.688,2.016 6.816,2.016 6.528,0 10.848,-3.552 4.32,-3.648 4.32,-11.136 v -4.608 z m 56.640081,-27.552 q 9.216,0 13.92,4.512 4.704,4.416 4.704,14.4 v 33.504 h -8.352 v -32.928 q 0,-12.384 -11.52,-12.384 -8.544,0 -11.808001,4.8 -3.264,4.8 -3.264,13.824 v 26.688 h -8.448 v -51.456 h 6.816 l 1.248,7.008 h 0.48 q 2.496,-4.032 6.912001,-5.952 4.416,-2.016 9.312,-2.016 z"
       id="text1"
       style="font-size:96px;white-space:pre;stroke-width:1.38709;stroke-linecap:round;stroke-linejoin:round"
       aria-label="Jan" />
  </g>
</svg>

The error I receive is:

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
** Message: 09:31:03.066: Error: 
 0# Inkscape::Application::crash_handler(int) in inkscape
 1# 0x00007F0BD565FBB0 in /lib64/libc.so.6
 2# Inkscape::Extension::ExecutionEnv::ExecutionEnv(Inkscape::Extension::Effect*, Inkscape::UI::View::View*, Inkscape::Extension::Implementation::ImplementationDocumentCache*, bool, bool) in inkscape
 3# Inkscape::Extension::Effect::effect(Inkscape::UI::View::View*) in inkscape
 4# Inkscape::Extension::Effect::prefs(Inkscape::UI::View::View*) in inkscape
 5# 0x00007F0BD6965C59 in /lib64/libgiomm-2.4.so.1
 6# g_closure_invoke in /lib64/libgobject-2.0.so.0
 7# 0x00007F0BD76E715D in /lib64/libgobject-2.0.so.0
 8# g_signal_emit_valist in /lib64/libgobject-2.0.so.0
 9# g_signal_emit in /lib64/libgobject-2.0.so.0
10# 0x00007F0BD77F35B5 in /lib64/libgio-2.0.so.0
11# InkscapeApplication::process_document(SPDocument*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) in inkscape
12# InkscapeApplication::on_open(std::vector<Glib::RefPtr<Gio::File>, std::allocator<Glib::RefPtr<Gio::File> > > const&, Glib::ustring const&) in inkscape
13# 0x00007F0BD6904194 in /lib64/libgiomm-2.4.so.1
14# g_closure_invoke in /lib64/libgobject-2.0.so.0
15# 0x00007F0BD76E715D in /lib64/libgobject-2.0.so.0
16# g_signal_emit_valist in /lib64/libgobject-2.0.so.0
17# g_signal_emit in /lib64/libgobject-2.0.so.0
18# 0x00007F0BD77EBD32 in /lib64/libgio-2.0.so.0
19# g_application_run in /lib64/libgio-2.0.so.0
20# main in inkscape
21# 0x00007F0BD5649B8A in /lib64/libc.so.6
22# __libc_start_main in /lib64/libc.so.6
23# _start in inkscape
Segmentation fault (core dumped)

That's pretty odd, do other filters work fine?

I guess not, I spot checked a few. BTW, This tool is super useful. I wish it was an option in the save dialog.

Is this actions thing dead?

As far as I know actions should still work. On my Arch desktop, the packaged Inkscape crashes during startup 🙃. I'll look around, this might an Inkscape bug?

I believe that you are correct this work within Inkscape. I'll close the ticket. Thanks for the feedback.

Thank you for reporting the issue. Just to clarify, your Inkscape crashes from the command line when using --actions but it this extension works okay from within the GUI?