
Glimmer Labs wrote:
We have developed a feature which allows Scheme Scripting from a console inside of Inkscape.
Unfortunately, I get a segfault with current SVN (the backtrace is attached, just in case). Pity, I would have loved to give this a try. Thanks for all the hard work! Although reading Ted's comments I think his concerns make sense (as far as I have a rough idea of the internals). Would you be willing to incorporate the changes he suggests? For what it's worth, I believe being able to use Scheme as a scripting language for Inkscape would be a really awesome thing. Thanks again!
/Max
==================
Backtrace:
#0 0xb6f95c7d in getc () from /lib/libc.so.6 #1 0x0846fd09 in basic_inchar (pt=0xa709794) at extension/script/tinyscheme/scheme.c:1463 #2 0x0846ff59 in inchar (sc=0xa709618) at extension/script/tinyscheme/scheme.c:1520 #3 0x08470017 in token (sc=0xa709618) at extension/script/tinyscheme/scheme.c:1771 #4 0x084753a0 in opexe_0 (sc=0xa709618, op=OP_READ_INTERNAL) at extension/script/tinyscheme/scheme.c:2462 #5 0x08471c23 in Eval_Cycle (sc=0xa709618, op=OP_LOAD) at extension/script/tinyscheme/scheme.c:4325 #6 0x08471faf in scheme_load_file (sc=0xa709618, fin=0x0) at extension/script/tinyscheme/scheme.c:4661 #7 0x08465a3d in Inkscape::Extension::Script::InkscapeScheme::tinyscheme_init (this=0xa055a78) at extension/script/InkscapeScheme.cpp:66 #8 0x081fd462 in SchemeDialogImpl (this=0xa055a18) at ui/dialog/schemedialog.cpp:263 #9 0x081fe952 in Inkscape::UI::Dialog::SchemeDialog::create () at ui/dialog/schemedialog.cpp:362 #10 0x08197805 in Inkscape::UI::Dialog::DialogManager::getDialog (this=0x8b6b598, name=1647) at ui/dialog/dialog-manager.cpp:144 #11 0x08197889 in Inkscape::UI::Dialog::DialogManager::showDialog (this=0x8b6b598, name=1647) at ui/dialog/dialog-manager.cpp:163 #12 0x08303c26 in sp_action_perform (action=0x876f150, data=0x0) at helper/action.cpp:181 #13 0xb74015c9 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #14 0xb73f41c2 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #15 0xb7404cf3 in ?? () from /usr/lib/libgobject-2.0.so.0 #16 0x08c22730 in ?? () #17 0x00000000 in ?? ()