Failed to load the requested file - with highly nested groups (>250)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
I imported a file from PDF and after editing and saving it could not be loaded anymore.
So I troubleshot by deleting parts of the file and at some point it worked. I reached a certain <g> tag that if added would make it break. So I deleted it and copied another part of the file in its place. It also broke the file. I counted about 250 nested <g> tags, but can't be precise.
I recovered my file by simply moving nested code to the root, never exceeding 200 levels. It works.
The broken file is attached. You can reproduce the recovery by removing the code after line 57771 and closing the open tags. The file works again. If you paste the removed code back in chunks of 1600 lines, it also works.
This is the recovered file. Note that after line ~57800 I reinserted the code after closing the open <g> tags, to reduce nesting. That was the fix.