"Failed to open..." large file from NFS

Bug #1373322 reported by sgofferj
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Inkscape
Undecided
Patrick Storz
0.92.x
Undecided
Patrick Storz

Bug Description

Workstation:
OS: Kubuntu 14.04
System: Intel Core i7-4770k, 32GB RAM
Inkscape Kubuntu 14.04 stock packages

Storage:
OS: Ubuntu server 14.04
System: Intel Xeon E3 1240L, 16GB RAM, storage is running ZFS

Connection:
NFSv4 over gigabit LAN, Ubuntu/Kubuntu 14.04 stock packages

Yesterday I created a fairly large (14.2MB) SVG with inkscape and saved it via NFS on my storage array.
Today when I tried to open it directly, inkscape says "Failed to open...". On the console, I see this:
--
sgofferj@enterprise:/serverhome/sgofferj/Documents/stefan.gofferje.net$ inkscape sgn_topics_600.svg
Entity: line 166345: parser error : AttValue length too long
s1VLbGq+OF/xX609lbegqt+/j7z+yvN/Ss0vdj365jureL5aI3tFJVhgkoahOjgpGFj3d6Bvmapj
                                                                  ^
Entity: line 166345: parser error : Memory allocation failed
s1VLbGq+OF/xX609lbegqt+/j7z+yvN/Ss0vdj365jureL5aI3tFJVhgkoahOjgpGFj3d6Bvmapj
                                                                  ^
Entity: line 166345: parser error : attributes construct error
s1VLbGq+OF/xX609lbegqt+/j7z+yvN/Ss0vdj365jureL5aI3tFJVhgkoahOjgpGFj3d6Bvmapj
                                                                  ^
Entity: line 166345: parser error : Couldn't find end of Start Tag image line 36472
s1VLbGq+OF/xX609lbegqt+/j7z+yvN/Ss0vdj365jureL5aI3tFJVhgkoahOjgpGFj3d6Bvmapj
                                                                  ^

(inkscape:4551): Gtk-WARNING **: Theme file for default has no directories
--
When I copy the same file to the local hdd, inkscape opens it without problems.
Other (smaller) files from the storage, inkscape also opens just fine.

Revision history for this message
jazzynico (jazzynico) wrote :

Related (but apparently not exactly identical): bug #270990 "Cannot open .svgz over NFS share" (https://bugs.launchpad.net/inkscape/+bug/270990).

@sgofferj - Is your file saved as compressed SVG (.svgz)?

tags: added: nfs opening
Revision history for this message
sgofferj (sgofferj) wrote :

No, it's uncompressed.

Revision history for this message
Fjanks (y-franks) wrote :

The problem exists with Inkscape 0.91, too.

I don't know if this is a strict condition, but my observation is that I can open files from the gui up to a file size of 9.5MB, larger files I can sometimes (but not always) open using the terminal.
The error message is a bit different from the one above, but I guess that depends on the content of the specific file.

> Entity: line 130695: parser error : internal error: Huge input lookup
> 5rIF7omSMAEbZ2NEjOGIXA+4rSDUdJ4rf0k/lVYoM2wi405B+496mDjBycDtUYR6jUgfViqJmVs2
> ^
> Entity: line 130695: parser error : internal error: Huge input lookup
> 5rIF7omSMAEbZ2NEjOGIXA+4rSDUdJ4rf0k/lVYoM2wi405B+496mDjBycDtUYR6jUgfViqJmVs2
> ^
> Entity: line 130695: parser error : Extra content at the end of the document
> 5rIF7omSMAEbZ2NEjOGIXA+4rSDUdJ4rf0k/lVYoM2wi405B+496mDjBycDtUYR6jUgfViqJmVs2
> ^

Revision history for this message
manuel (r-manuel) wrote :

I do have the same problem with Inkscape 0.91, both for big files that contain images or large paths.

For instance, after generating an svg file with matplotlib and saving it , I cannot open it with Inkscape from network file system, but from /tmp/ works out.

This is the error message I get:

manuel@tatio:~> inkscape /home/manuel/sorting2.svg
Entity: line 473774: parser error : internal error: Huge input lookup
       sodipodi:linespacing="125%"><tspan
                                  ^
Entity: line 473774: parser error : Extra content at the end of the document
       sodipodi:linespacing="125%"><tspan
                                  ^

Revision history for this message
Patrick Storz (ede123) wrote :

Likely fixed with
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/15654

Please test the change thoroughly. If no regressions are found I think this would be a good candidate for backporting to 0.92.x.

Changed in inkscape:
status: New → Fix Committed
assignee: nobody → Eduard Braun (eduard-braun2)
jazzynico (jazzynico)
Changed in inkscape:
milestone: none → 0.93
tags: added: backport-proposed
Revision history for this message
Patrick Storz (ede123) wrote :
su_v (suv-lp)
tags: removed: backport-proposed
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers