
On Wed, 8 Dec 2004 martin@...590... wrote:
When I am importing .AI files this error message appears: ** (inkscape:9542): CRITICAL **: file document.cpp: line 511 (void sp_document_set_uri(SPDocument*, const gchar*)): assertion `document != NULL' failed
Pleas help, how can I solve it? I have thousand .AI files which I could open in 0.39. Is downgrade only one solution? (OS: Gentoo unstable, same expirience with self compiled inkscape 0.40cvs and 0.40 stable in Slackware current)
Thanks Martin Grohman
Hi Martin,
Hmm, interesting problem. I can suggest a temporary work around, but you should also report this to the bug tracker so it can be investigated and solved.
Directions for reporting bugs are available here:
http://inkscape.org/report_bugs.php
For the workaround, the trick is that the AI import is implemented from a separate script called ill2svg.pl. You can find this script in your Inkscape extensions directory, or download it from here:
http://cvs.sourceforge.net/viewcvs.py/inkscape/inkscape/share/extensions/ill...
You can run this script like this on your AI files:
$ ill2svg.pl myfile.ai > myfile.svg
My guess is that this program is failing on your Illustrator file, so if you run this on it, maybe you'll get some better info. Also, if you know Perl, you could tinker with that script to make it output your file correctly.
If it doesn't work, and you can't fix it, then you should submit a bug report to Inkscape. Attach the file that fails, and be sure to mention that the bug is with ill2svg.pl. Hopefully this will give someone enough info to investigate and fix it.
Bryce