Unstable connector avoidance

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.
inkscapeforum
Posts: 8
Joined: Tue Nov 10, 2015 3:43 pm

Unstable connector avoidance

Postby inkscapeforum » Tue Nov 17, 2015 2:04 pm

I've run into this glitch. Is there a way to avoid it?

Steps to reproduce

inkscape –version says Inkscape 0.48.4 r9939 (Jan 22 2014)

Have a look at the attached document :-)

I've used avoid selected objects button of the connector tool on the blue star.

I've drawn a connector between the black rectangle and the 3D shape.

What you expected to see

When I close and open the document, I see that the connector between the black rectangle and the 3D shape avoids the star. The connector does not cross the star.

What you saw instead

When I close and open the document, I see that the connector between the black rectangle and the 3D shape doesn't avoid the star. The connector is drawn over the star.
Attachments
drawing2.svg
(5.15 KiB) Downloaded 262 times

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

Re: Unstable connector avoidance

Postby brynn » Wed Nov 18, 2015 12:45 am

I can confirm that behavior (Window 7, 64-bit, Inkscape 0.91, 32-bit, exe installer) in my own file (didn't try the op's attached file).

I found some bugs for Connector tool, which for some reason seems like a surprising quantity.....although I'm not sure why it surprises me.

There is one, which by the title, sounds similar. But I don't really understand it (due to my lack of technical understanding). https://bugs.launchpad.net/inkscape/+bug/1425538

Or maybe this is the one? https://bugs.launchpad.net/inkscape/+bug/1421061

inkscapeforum
Posts: 8
Joined: Tue Nov 10, 2015 3:43 pm

Re: Unstable connector avoidance

Postby inkscapeforum » Wed Nov 18, 2015 2:09 am

Thanks brynn :-)

From those bug reports I get the idea that the issue is already known.

https://bugs.launchpad.net/inkscape/+bug/1421061 talks about the the method how the file is opened in a couple of places…

What makes a difference however is how the file is opened in Inkscape: a) launch the file directly (e.g. drag&drop on Inkscape icon) b) launch inkscape, open file from within Inkscape ('File > Open' or 'File > Open Recent' (this reuses the empty document window)


Same results on Ubuntu 14.04 with Inkscape 0.48.4-3ubuntu2 and Inkscape 0.91.0+40~ubuntu14.04.1 - the version does make no difference, but the method how the file is opened does.


I have a further question: Do we know anything about the behaviour of connector avoidance in agents beyond Inkscape?

I'm asking because I'm doing these SVG's for some website. I would prefer if the website users don't run into some incorrectly rendered connectors when loading some SVG file in their browsers.

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

Re: Unstable connector avoidance

Postby brynn » Wed Nov 18, 2015 2:24 am

I didn't read those bug reports very closely. But when I tested, I re-opened the file with File menu > Open Recent. And the connector was ignoring the avoid. The comment you quoted - is that how to avoid the unwanted behavior or is that how the behavior happens?

When you put the image on the website, will it still be SVG image? I don't know if this behavior would happen outside of Inkscape. If the problem only happens when you open the file in a certain way, it seems like the unwanted behavior would not be likely to happen outside of Inkscape. But maybe you could do a test? You could test with your own browser by just opening the SVG image with your browser. I'd be glad to test with Firefox and IE.

Would you be able to use just regular paths instead of connectors....at least for the ones with the avoid behavior? Then you don't have to worry that a regular path would move around.

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

Re: Unstable connector avoidance

Postby Moini » Wed Nov 18, 2015 5:00 am

Those connectors are Inkscape-only. They are normal paths anywhere else, Inkscape saves them as paths. It also saves some extra information in its own namespace, so they can be edited as connectors again. They are known to not work very well, and I seem to remember there has even been a discussion about considering to take them out, like there is for the 3D boxes.
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)

inkscapeforum
Posts: 8
Joined: Tue Nov 10, 2015 3:43 pm

Re: Unstable connector avoidance

Postby inkscapeforum » Wed Nov 18, 2015 9:12 am

Thanks brynn and Moini for your replies :-)

brynn wrote:I didn't read those bug reports very closely. But when I tested, I re-opened the file with File menu > Open Recent. And the connector was ignoring the avoid. The comment you quoted - is that how to avoid the unwanted behavior or is that how the behavior happens?


As far as I can tell...

  • a) launch the file directly (e.g. drag&drop on Inkscape icon) avoids behaviour
  • b) launch inkscape, open file from within Inkscape ('File > Open' or 'File > Open Recent' (this reuses the empty document window) triggers behaviour

When you put the image on the website, will it still be SVG image? I don't know if this behavior would happen outside of Inkscape. If the problem only happens when you open the file in a certain way, it seems like the unwanted behavior would not be likely to happen outside of Inkscape. But maybe you could do a test? You could test with your own browser by just opening the SVG image with your browser. I'd be glad to test with Firefox and IE.


For now it's OK, still thanks for your offer! :-)

In Trisquel I've tested in Firefox, Chrome and some webkit-based browser. Later on I will try to test on a colleague's OSX. Let's see...


Return to “Discuss Software Issues”