Nodes Double in XML Edit

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.
Old Grey
Posts: 70
Joined: Sat Dec 12, 2015 11:26 am

Nodes Double in XML Edit

Postby Old Grey » Tue Nov 29, 2016 6:34 am

Anybody experience nodes doubling in XML Editor when you duplicate a node or paste in stuff.

It happens unpredictability, so sometimes it's fine, sometimes it goes crazy. If you delete either both get deleted, because you can see they both have the same id, so the only way to clear it up is close the drawing and reopen it.

Image

Here is the file
https://www.mediafire.com/?scjbb6pyrz445nu

Old Grey
Posts: 70
Joined: Sat Dec 12, 2015 11:26 am

Re: Nodes Double in XML Edit

Postby Old Grey » Tue Nov 29, 2016 7:59 am

Just duplicated a small group, and got 10 duplicates.
Image

I wonder if it's because I have 2 svgs open at once.

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

Re: Nodes Double in XML Edit

Postby Moini » Wed Nov 30, 2016 3:13 am

When I click on the duplicate button, I get a single copy with a new id (running Inkscape 0.91 on Linux Mint). Copy-pasting also creates a new id. What you get looks very strange (and invalid, too).
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)

Old Grey
Posts: 70
Joined: Sat Dec 12, 2015 11:26 am

Re: Nodes Double in XML Edit

Postby Old Grey » Wed Nov 30, 2016 8:02 am

Sometimes it works, sometimes in the same session it goes haywire, sometimes closing the XML Editor clears it, but mainly it's close the drawing and reopen.

I always open the XML editor and Document Properties when I do these, and with multiple drawings open with their XML Editor and Document Properties, maybe that is what is causing it.

Maybe rename that file so you have 3 copies, and open them all with their XML editor and Document Properties.

I wonder if it's my dual screen, because the drawing selection goes a bit haywire as well, ie you open a new drawing and when you try to add something to it it switches to another drawing.

Old Grey
Posts: 70
Joined: Sat Dec 12, 2015 11:26 am

Re: Nodes Double in XML Edit

Postby Old Grey » Fri Dec 23, 2016 9:22 am

It still has the duplicate problem in 9.2 pre3.15195

Image

Where do you sub bugs for 9.2?

EDIT
Just created a circle on screen, and that also produced multiple entries in XML editor.

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

Re: Nodes Double in XML Edit

Postby Moini » Fri Dec 23, 2016 10:36 am

Seems you found the bug report section. For those in search who stumble over this: Old Grey reported it here: https://bugs.launchpad.net/inkscape/+bug/1652187 (but it was already known, so was marked as a duplicate).
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)

Old Grey
Posts: 70
Joined: Sat Dec 12, 2015 11:26 am

Re: Nodes Double in XML Edit

Postby Old Grey » Fri Dec 23, 2016 2:33 pm

There seams to be a lot of different faults, all related. It's some bug when XML Editor is open with multiple drawings.

I can reliably produce this now - I did it 3 times -

Open Inkscape, and open it's XML Editor.
Close it - this ensures XML Editor will open automatically when Inkscape is next opened -.
Open Inkscape - XML Editor should've opened as well -.
Press square button on tool bar and draw a square.
Open 2nd File/New window - it's XML Editor should've opened as well -.
Draw a circle.
Open 3rd File/New window - XML Editor should've also opened -.
Go back to the drawing with a shape a duplicate it, and you get multiple entries in XML Editor.

Win7 64 SP1
Inkscape - 9.2 pre3.15195

Old Grey
Posts: 70
Joined: Sat Dec 12, 2015 11:26 am

Re: Nodes Double in XML Edit

Postby Old Grey » Fri Dec 23, 2016 3:00 pm

Here is the video.

There is another fault where you can't select a window unless one is minimised, plus the bottom tabs go out of order, plus if you press a button in the left toolbar it switches to another Inkscape window.

There something about XML Editor, multiple screens, and maybe the left toolbar.

https://youtu.be/o5VRaOAjba4

EDIT
I had the 3 windows open but I put the 3 XML Editors on the 2nd screen of my dual monitor setup so I could see all of them at once, and when you select one of the main windows all 3 XML windows show exactly the same XML of the main widow you are on.

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

Re: Nodes Double in XML Edit

Postby tylerdurden » Fri Dec 23, 2016 11:58 pm

Good work on exploring the issue. ::thumb up::

I seem to recall some personal experiences where having the xml editor open on more than one instance of Inkscape produced erratic behavior. I just avoided it from then on, and closed the xml editor when switching between instances.
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/

Old Grey
Posts: 70
Joined: Sat Dec 12, 2015 11:26 am

Re: Nodes Double in XML Edit

Postby Old Grey » Sun Dec 25, 2016 7:01 am

I was making a tutorial video about INK and I had 2 windows open, so I closed one so that the doubling problem won't come up in the tutorial. Well half way through it doubled when I grouped.

Looks like that maybe if you had 2 windows open and close one, it can still happen.

https://youtu.be/zuFBi8EgfF0?t=11m16s

Now it's in my video forever.

Another phenomenon is
Open INK and open XML edit, and close it - you want both to auto open next restart -.
Open INK - XML should be open -, and move XML box so you will notice the difference of another one -
Open another new - it's XML should be open -.
Now close the new one, and there is 2 XML boxes still on screen.

It also still has a grid fault. It happened twice in this video.

https://youtu.be/zuFBi8EgfF0?t=14m

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

Re: Nodes Double in XML Edit

Postby tylerdurden » Sun Dec 25, 2016 9:11 am

Old Grey wrote:Now it's in my video forever.


I'm pretty sure videos can be edited...
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/

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

Re: Nodes Double in XML Edit

Postby tylerdurden » Sun Dec 25, 2016 9:55 am

Maybe try working with the xml editors docked?

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/

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

Re: Nodes Double in XML Edit

Postby tylerdurden » Sun Dec 25, 2016 10:23 am

Can't duplicate the issue here with floating xml dialogs, either.

Tested with three instances, as per OldGrey's bug report.

Single laptop display, .92-pre4

EDIT: can now replicate, see below...
Last edited by tylerdurden on Mon Dec 26, 2016 10:28 am, edited 1 time in total.
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/

Old Grey
Posts: 70
Joined: Sat Dec 12, 2015 11:26 am

Re: Nodes Double in XML Edit

Postby Old Grey » Mon Dec 26, 2016 8:12 am

I unplugged my 2nd monitor and rebooted and this is what it does.
https://youtu.be/Uu8bU1v39hc

Not that I want to keep the XML docked, as I need half a monitor just for that, but how do you dock the XML. I click Iconify this dock and a vertical tab appears in the dock.

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

Re: Nodes Double in XML Edit

Postby tylerdurden » Mon Dec 26, 2016 8:24 am

Hi OG,

The dock feature is similar to others... drag by the header (not the title-bar) and snap to the side. Similarly, drag the header to "tear-off" to a floating window.
Image

I'll try with your methods (floating dialogs, xml duplication). NB that I am using the GUI or copy/paste for duplication, not the XML editor.
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/

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

Re: Nodes Double in XML Edit

Postby tylerdurden » Mon Dec 26, 2016 10:05 am

Yep, I can replicate the issue with floating dialogs now.
Image


So for now, I'd keep the xml editor docked when working with multiple instances of inkscape.
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/

Old Grey
Posts: 70
Joined: Sat Dec 12, 2015 11:26 am

Re: Nodes Double in XML Edit

Postby Old Grey » Tue Dec 27, 2016 2:43 pm

I did a quick test with it docked, and it was fine.

The problem is that the XML Editor is hard to use when you dedicate half of the second monitor to it, because we have hundreds or maybe thousands of nodes, so having it that small is a big pain.

Now that we have narrowed it down a bit, hopefully someone will know what to fix.


Return to “Discuss Software Issues”