Internal errors due to dependencies

Post questions on how to use or achieve an effect in Inkscape.
barneschalkely
Posts: 3
Joined: Tue Oct 23, 2012 3:29 pm

Internal errors due to dependencies

Postby barneschalkely » Tue Oct 23, 2012 3:46 pm

I have Inkscape 0.48.3.1 r9886 installed on funtoo linux.

If i open an svg file and choose :

Code: Select all

extensions >> color >> desaturate

I get the following error:

Code: Select all

"Inkscape encountered an internal error and will close now."


I remember in the past that this error was associated with a missing dependecy.
Here is the extension-errors.log but I don't think these missing elements are required for destauration..

extension-errors.log

Code: Select all

dependency errors --> skconvert,fig2dev,latex,dvips,dia


Maybe the missing dependency is an xml related file?

Here is what I have installed in terms of xml:
[U] app-text/docbook-xml-dtd
Available versions:
(4.1.2) 4.1.2-r6{tbz2}
(4.2) 4.2-r2
(4.3) 4.3-r1
(4.4) 4.4-r1 4.4-r2{tbz2}
(4.5) 4.5 4.5-r1
Installed versions: 4.1.2-r6(4.1.2){tbz2}(22:44:07 17/10/12) 4.4-r2(4.4){tbz2}(11:16:54 19/10/12)
Homepage: http://www.docbook.org/
Description: Docbook DTD for XML

[I] dev-libs/libxml2
Available versions: (2) 2.8.0-r1002{tbz2}
{{debug doc examples icu ipv6 lzma python python_abis_2.5 python_abis_2.6 python_abis_2.7 readline static-libs test}}
Installed versions: 2.8.0-r1002(2){tbz2}(22:32:16 17/10/12)(python python_abis_2.7 readline -debug -doc -examples -icu -ipv6 -lzma -python_abis_2.5 -python_abis_2.6 -static-libs -test)
Homepage: http://www.xmlsoft.org/
Description: Version 2 of the library to manipulate XML files

[I] dev-libs/pugixml
Available versions: 1.2{tbz2}
Installed versions: 1.2{tbz2}(13:57:55 19/10/12)
Homepage: http://pugixml.org/
Description: Light-weight, simple, and fast XML parser for C++ with XPath support

[I] dev-libs/tinyxml
Available versions: 2.6.2-r2{tbz2} {{debug doc static-libs +stl}}
Installed versions: 2.6.2-r2{tbz2}(18:23:53 19/10/12)(stl -debug -doc -static-libs)
Homepage: http://www.grinninglizard.com/tinyxml/index.html
Description: a simple, small, C++ XML parser that can be easily integrating into other programs

[I] dev-libs/tinyxml2
Available versions: 1.0.1_p20120531{tbz2} {{static-libs test}}
Installed versions: 1.0.1_p20120531{tbz2}(13:57:53 19/10/12)(-static-libs -test)
Homepage: http://www.grinninglizard.com/tinyxml2/
Description: A simple, small, efficient, C++ XML parser

[I] dev-perl/XML-LibXML
Available versions: 1.900.0 (~)2.0.100 (~)2.0.300 (~)2.0.400{tbz2} {{test}}
Installed versions: 2.0.400{tbz2}(01:30:21 19/10/12)(-test)
Homepage: http://search.cpan.org/dist/XML-LibXML/
Description: A Perl module to parse XSL Transformational sheets using gnome's libXSLT

[I] dev-perl/XML-NamespaceSupport
Available versions: 1.110.0{tbz2}
Installed versions: 1.110.0{tbz2}(01:25:42 19/10/12)
Homepage: http://search.cpan.org/dist/XML-NamespaceSupport/
Description: A Perl module that offers a simple to process namespaced XML names

[I] dev-perl/XML-Parser
Available versions: 2.410.0 (~)2.410.0-r1{tbz2}
Installed versions: 2.410.0-r1{tbz2}(21:56:29 17/10/12)
Homepage: http://search.cpan.org/dist/XML-Parser/
Description: A Perl extension interface to James Clark's XML parser, expat

[I] dev-perl/XML-SAX
Available versions: 0.990.0{tbz2}
Installed versions: 0.990.0{tbz2}(01:29:27 19/10/12)
Homepage: http://search.cpan.org/dist/XML-SAX/
Description: Perl module for using and building Perl SAX2 XML parsers, filters, and drivers

[I] dev-perl/XML-SAX-Base
Available versions: 1.80.0{tbz2}
Installed versions: 1.80.0{tbz2}(01:28:34 19/10/12)
Homepage: http://search.cpan.org/dist/XML-SAX-Base/
Description: Base class SAX Drivers and Filters

[I] dev-perl/XML-Simple
Available versions: 2.180.0 (~)2.200.0{tbz2}
Installed versions: 2.200.0{tbz2}(01:32:31 19/10/12)
Homepage: http://search.cpan.org/dist/XML-Simple/
Description: XML::Simple - Easy API to read/write XML (esp config files)

[I] dev-python/lxml
Available versions: 2.3.6-r1000 3.0.1-r1000{tbz2} {{beautifulsoup3 doc examples python_abis_2.5 python_abis_2.6 python_abis_2.7 python_abis_3.1 python_abis_3.2 python_abis_3.3 +threads}}
Installed versions: 3.0.1-r1000{tbz2}(03:22:49 19/10/12)(python_abis_2.7 python_abis_3.2 threads -beautifulsoup3 -doc -examples -python_abis_2.5 -python_abis_2.6 -python_abis_3.1 -python_abis_3.3)
Homepage: http://lxml.de/ http://pypi.python.org/pypi/lxml
Description: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.





User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Internal errors due to dependencies

Postby brynn » Tue Oct 23, 2012 5:08 pm

Welcome to InkscapeForum!

That error log file is usually used to potentially solve problems saving or opening a particular file format (in this case, "extensions" means what's on the end of the file name that tells you what kind of file it is, such as .png or .svg or .pdf, etc., etc.; rather than the extensions found in the Extensions menu). So it probably won't help in this case.

The "internal error" could be probably several different things. One common reason people see it, is when trying to open or work on a really large file, or perform a very memory intensive step. There are a couple of extensions that I can depend on crashing Inkscape whenever I use them. Others crash sometimes, and others not at all. Filters are a whole other story -- meaning that crashing can be even worse. Sometimes it seems like if I'm working really fast, and Inkscape can't keep up, I get that message. But mostly I have no idea what causes it.

Is this happening every time you try it? Or does it sometimes work? If it's a memory related issue, there are some things you can do to make it work better. Use layers, and hide layers that you don't need for the Desaturate step. Or try View menu > Outline mode. Although I realize you probably need to see the color on screen for desaturate. But I think there's a key shortcut to toggle the view mode, which would make it easier. Avoid zooming -- try to use extensions at 100% zoom or less.

I've just tried using that extension, and don't have any trouble. So I'm thinking this might be a memory related crash. How large is the file? And how much RAM do you have?

barneschalkely
Posts: 3
Joined: Tue Oct 23, 2012 3:29 pm

Re: Internal errors due to dependencies

Postby barneschalkely » Tue Oct 23, 2012 5:40 pm

Thnaks for the reply : 4GB memory! file size=62.7 kB!

Some more info might help:

If I use "filters >> color >> desaturate" I can desaturate an SVG.

So, manually desaturating individual svgs is not a problem.

If I use "extensions >> color >> desaturate or greyscale I get the error mentioned above (everytime)

As i want to batch desaturate, i need to be able to use inkscape verbs to do either of the following:

Code: Select all

inkscape -f inputfile.svg --verb EditSelectAll --verb org.inkscape.color.desaturate.noprefs --verb FileSave --verb FileQuit
inkscape -f inputfile.svg --verb EditSelectAll --verb org.inkscape.color.grayscale.noprefs --verb FileSave --verb FileQuit


The error "Inkscape encountered an internal error and will close now." is stopping the batch process.

I had this error a while back on debian and it was solved by installing either an xml or python related missing dependency. I can't remember the specific package though :-(

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Internal errors due to dependencies

Postby ~suv » Tue Oct 23, 2012 8:36 pm

barneschalkely wrote:I have Inkscape 0.48.3.1 r9886 installed on funtoo linux.
Very likely a known regression in Inkscape 0.48.3.1 with certain files: Please read comment #11 of the bug report for a workaround for affected files.

barneschalkely
Posts: 3
Joined: Tue Oct 23, 2012 3:29 pm

Re: Internal errors due to dependencies

Postby barneschalkely » Wed Oct 24, 2012 11:49 am

~suv wrote:
barneschalkely wrote:I have Inkscape 0.48.3.1 r9886 installed on funtoo linux.
Very likely a known regression in Inkscape 0.48.3.1 with certain files: Please read comment #11 of the bug report for a workaround for affected files.


Many thanks


Return to “Help with using Inkscape”