Inkscape crashing while ungrouping

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Inkscape crashing while ungrouping

Postby theozh » Wed Mar 29, 2017 6:08 am

I have a SVG-File of a map from OpenStreetMap (OSM).
http://www.openstreetmap.org/#map=16/48.8546/2.3457
You can also download it yourselves as SVG with the share symbol.
Or here: http://imgh.us/Map_Paris.svgz
The file is not small, but I wouldn't call it really large with 4.5 MB (SVGZ is 0.99 MB)

It contains a group of 5861 objects.
If I want to ungroup this group Inkscape always crashes.

Besides that the file looks like that it's not just the excerpt of the map I thought I downloaded but it contains also much larger objects.
Do others observe the same thing and is it a problem
a) with the OSM SVG-file?
b) with Inkscape?
c) just with my system (Win7/64, IS 0.92.1, Memory usage 55%)?

Map_Paris.png
Map_Paris.png (46.28 KiB) Viewed 4799 times

Errors.png
Errors.png (6.57 KiB) Viewed 4799 times
Win7/64, Inkscape 0.92.2

User avatar
BlueKnight
Posts: 53
Joined: Sat Jun 16, 2012 10:37 pm

Re: Inkscape crashing while ungrouping

Postby BlueKnight » Wed Mar 29, 2017 6:43 am

I tried opening it here, and the map is insanely big, about 1000000x702356 pixels object. The area which actually contains meaningful objects is just a very small portion of that. There are other objects that are insanely large as well and they serve as street markers of some kind.

That huge object around is possibly causing the problem, as when I deleted them I could ungroup the map without problems.

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Inkscape crashing while ungrouping

Postby theozh » Wed Mar 29, 2017 6:48 am

Thanks @BlueKnight for the feedback.
However, that's exactly my problem: How should I select & delete the large object if all is one group? How did you do it?
Win7/64, Inkscape 0.92.2

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Inkscape crashing while ungrouping

Postby Lazur » Wed Mar 29, 2017 7:06 am

Use the node tool for selecting one path, then go back to object select mode.


/and select same by fill color, if the crash is due to the large number of objects, not the paths complexity.

Had been struggling with openstreetmaps myself too.
The thing is once you ungroup objects inside are inheriting some of the groups attributes -transformations are applied to each of them (fill attribute can be the same but in openstreetmap the fill is likely not added to the objects by a group attribute).
So in general ungrouping generates alot more data to deal with in one go.

Not sure about your file though, writing these without testing.

User avatar
BlueKnight
Posts: 53
Joined: Sat Jun 16, 2012 10:37 pm

Re: Inkscape crashing while ungrouping

Postby BlueKnight » Wed Mar 29, 2017 7:16 am

theozh wrote:Thanks @BlueKnight for the feedback.
However, that's exactly my problem: How should I select & delete the large object if all is one group? How did you do it?

Lazur wrote:Use the node tool for selecting one path, then go back to object select mode.

Yea, that is how I did:

Select with :tool_node: , then change to :tool_selector:.

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

Re: Inkscape crashing while ungrouping

Postby Moini » Wed Mar 29, 2017 10:48 am

Ctrl + Click also works for selecting an object regardless of its grouping status.
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)

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Inkscape crashing while ungrouping

Postby theozh » Wed Mar 29, 2017 3:34 pm

Thank you all for your help.
Ok, now I can delete the extremely large objects.
A group of 5845 Objects with a size 8486 x 5516 px remains.
If I try to ungroup this Inkscape still crashes :(
Win7/64, Inkscape 0.92.2

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Inkscape crashing while ungrouping

Postby theozh » Wed Mar 29, 2017 4:30 pm

Win7/64, Inkscape 0.92.2

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

Re: Inkscape crashing while ungrouping

Postby Moini » Wed Mar 29, 2017 9:13 pm

Probably. I can ungroup with 0.91 just fine. Let us know if you need the ungrouped file.
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)

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Inkscape crashing while ungrouping

Postby theozh » Wed Mar 29, 2017 11:58 pm

Thanks for testing, @Moini. I can confirm. Quickly installed 0.91 r13725 on Win7/64 again. No problem with ungrouping.
So it seems to be a 0.92 issue and not an issue with my PC.

... now comes the next problem:
I would like to cut out the island on the map with some handdrawn shape.
It's actually the same problem asked in this recent post: viewtopic.php?f=5&t=32058

Boolean operations do not work on groups nor on several objects.
I tried the "Extension Multiple Boolean" (Multiple Difference) using a large area shape covering all objects leaving a hole in it for the part of the map of intererest. I ungrouped everything until there was no group. The extension doesn't do anything :(. Too many objects?
Well, how to cut out this part of the map?
Win7/64, Inkscape 0.92.2

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Inkscape crashing while ungrouping

Postby tylerdurden » Thu Mar 30, 2017 12:10 am

theozh wrote: The extension doesn't do anything :(. Too many objects?
Well, how to cut out this part of the map?

I tried a multiboolean extension on a test file and it seemed to hang. I had to force quit Inkscape and a background inkscape task.

But, the temporary file it generated (found in the recently used list) had the successful result. So you might check into that.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Inkscape crashing while ungrouping

Postby theozh » Thu Mar 30, 2017 12:32 am

Yes, @tylerdurden, with about 5 objects I see the same thing as you do: stop Inkscape via task manager and you have the result.
However, with ~6000 objects, I just see a window flashing for a short time and nothing happens.... no increase in CPU usage...
Win7/64, Inkscape 0.92.2

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

Re: Inkscape crashing while ungrouping

Postby Moini » Thu Mar 30, 2017 9:12 am

So this is what would need to be done to get a proper result with 'multi-difference':

- save file as Inkscape SVG
- Convert all symbols to paths/groups (takes eternally... i.e. 7 minutes on my computer.)
- Ungroup everything. Repeatedly.
- Convert all remaining shapes to paths.
- Convert all stroke-only objects to fills... <- need to select all objects without fill (took 10 minutes)
- Invert selection, ungroup, unlink clones (why again? no idea. Fast this time.)
- Create cutting mask.
- Select all, start multi-difference. -> Get error: Argument list too long.
So, will need to be done in batches... And: after some repetitions, the extension stopped working. Needed to restart Inkscape...

Alt+Shift+Click or outline mode are very useful for selection, btw.

Result:
https://framadrop.org/r/75EPZNABNP#cxGp ... Dir5gDuGo=

Before cutting (in case you want to cut a different area, be sure to do the difference operation in batches):
https://framadrop.org/r/IxG15Euy_x#9jQl ... NdfiT/wgw=

Didn't 'Clean up document' but should be done before working on the file.

Btw. why don't you just use a clip?

(links are valid until April 29th, 2017)
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)

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Inkscape crashing while ungrouping

Postby theozh » Thu Mar 30, 2017 4:26 pm

Thanks, @Moini, for your precious time and the detailed description.
Well, as I understand, clipping is just hiding the unwanted parts of the map but they are still there. By cutting it, I thought I could reduce the SVG file size and speed up Inkscape. However, the size is actually increased. When I see what is necessary and how long it takes to achieve this, I'd better go for a PNG.

Map_Paris.svg3.png
Map_Paris.svg3.png (40.18 KiB) Viewed 4568 times
Win7/64, Inkscape 0.92.2

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Inkscape crashing while ungrouping

Postby tylerdurden » Thu Mar 30, 2017 6:39 pm

I went a slightly different route. I deleted the big group and the symbols using a text editor, then deleted a number of items in Inkscape using select-same.

Then I used clip.

Image
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

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

Re: Inkscape crashing while ungrouping

Postby brynn » Thu Mar 30, 2017 6:45 pm

I haven't looked at the file, but wanted to suggest if there are layers, it might help to hide all the ones you don't need.

You've probably already seen the tutorial about how to avoid performance issues. But just in case https://forum.inkscapecommunity.com/ind ... article=35 some of those tips might help.


Return to “Discuss Software Issues”