Unable to ungroup objects in SVG (SVG made in a different program)

Post questions on how to use or achieve an effect in Inkscape.
seans_potato_biz
Posts: 138
Joined: Mon Apr 07, 2008 6:01 am

Unable to ungroup objects in SVG (SVG made in a different program)

Postby seans_potato_biz » Fri May 26, 2017 2:20 am

I made an SVG with a program called "FlowJo" which is for handling flow cytometry data. I want to ungroup the components in Inkscape but when I hit ungroup, Inkscape freezes for a few seconds and then seems to have done nothing. This can be repeated many times. Can anyone tell why? Has it been grouped a thousand times? Is it even possible to group something a thousand times so it needs to be ungrouped a thousand times? I wouldn't be surprised to find out the makers of FlowJo have their own idea of how SVG should work and that could be the reason.

The SVG is downloadable from this link: https://www.dropbox.com/s/ncrudvnsra0dq ... h.svg?dl=0
Win 7/10, Inkscape 0.92.2

We don't inherit the Earth from our parents; we borrow it from our children.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Unable to ungroup objects in SVG (SVG made in a different program)

Postby Moini » Fri May 26, 2017 4:20 am

Its groups are a bit strangely grouped.
The first, outermost group, contains many items from the diagram in the top middle, plus the other objects as a single group.
You can see the bounding boxes of the selected items in the middle, when you hit ungroup for the first time.

It goes on like this. The groups do not follow the logic that we would use for them.

So, yes, if you want to ungroup everything, you may need to hit ungroup 33 times.
Theoretically, there's the deep ungroup extension in Inkscape 0.92.x (Extensions -> Arrange -> Deep Ungroup), but I get an error upon trying to use it with your file.

There doesn't appear to be a bug report for this yet. Would you allow that your file is appended to a bug report? Maybe you could add it here yourself:
https://bugs.launchpad.net/inkscape/+bug/1693578

Kind Regards,
Maren
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

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

Re: Unable to ungroup objects in SVG (SVG made in a different program)

Postby brynn » Fri May 26, 2017 12:43 pm

Would this really be an Inkscape bug, if the other program is behaving strangely?

seans_potato_biz
Posts: 138
Joined: Mon Apr 07, 2008 6:01 am

Re: Unable to ungroup objects in SVG (SVG made in a different program)

Postby seans_potato_biz » Fri May 26, 2017 9:55 pm

Thanks for your help. I'm happy for this file to be appended/linked to the bug report.

brynn wrote:Would this really be an Inkscape bug, if the other program is behaving strangely?


I don't think it's clear-cut. It's possible that FlowJo has grouped the objects in the file in a stupid way but also that Inkscape fails to ungroup them in the way expected. Presumably that would be figured out when someone tries to fix the bug. I'll be contacting FlowJo tech support in any case.
Win 7/10, Inkscape 0.92.2

We don't inherit the Earth from our parents; we borrow it from our children.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Unable to ungroup objects in SVG (SVG made in a different program)

Postby Moini » Fri May 26, 2017 10:17 pm

Funny, where's my comment? I just wrote one and it vanished. Well:
The issue seems to be with FlowJo, which produces invalid XML, according to Alvin Penner.
Still, it's possible to 'harden' extensions, so they do the best they can, when confronted with stuff they don't understand.
(wrong, it's valid).

If you delete the comments in the SVG (see bug report for an example), then you should be good to go, Sean.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”