def showing twice in xml editor, no duplicate when saving

Bug #1251056 reported by v1nce
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Low
Unassigned

Bug Description

12777 ubuntu 12.04

Attached image of xml editor seems to indicate I got duplicated entries in defs. When exporting I find no duplicate.

I don't know if :
the duplicates existed in memory and the xml editor shows correctly an incorrect DOM or if
the xml editor was showing incorrectly a DOM that was fine.

When I removed the marker Arrow2LStart using xml editor, the both nodes were removed and the markers were not showing in the display.
But when using ctrl+Z the 2 nodes reappeared in the xml editor but the markers were still missing in the displays.
Selecting a line that should have an arrow and going to Fill&Stroke dialog the marker was selected.
Choosing a new marker had no effect on display but the defs were added x2 according to the xml editor and they were added to preferred marker list

Revision history for this message
v1nce (vincent-pennec) wrote :

Oops.

Forgot to join screnshot.
And I can't reproduce with the svg I saved (because it has no duplicate in it).

Looks like it was a kind of general failure that can't be repoduced.

Unless it could be helpfull to someone, I think this could be closed.

Revision history for this message
su_v (suv-lp) wrote :

I did encounter such duplicate 'ghost' entries in the XML Editor of current trunk, too (for regular objects, not elements in the <defs> section) - but never was able to reproduce them on purpose.

tags: added: xmleditor
removed: xml-editor
jazzynico (jazzynico)
tags: added: regression
Revision history for this message
jazzynico (jazzynico) wrote :

Also encountered on my computers, but I can't remember how (and on which operating system...).
Unfortunately we can't really investigate without steps to reproduce.
Confirming low for now.

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Old Grey (old-grey) wrote :

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

Revision history for this message
Hachmann (marenhachmann) wrote :

Floating dialogs appear to be part of the cause, see discussion of Old Grey and tylerdurden in inkscapeforum.com (they even made videos):
http://www.inkscapeforum.com/viewtopic.php?f=29&t=31308

Revision history for this message
Old Grey (old-grey) wrote :

This is the video of the bug, and people have duplicated it copying the video.

https://youtu.be/o5VRaOAjba4

There is a bug when you open multiple windows with their floating XML Editor dialogue box open, where Inkscape gets mixed up linking their floating XML Editor dialogue box to the open window.

If you dock the XML Editor it seam fine.

I need the large floating XML Editor as the docked one is too small.

Revision history for this message
Old Grey (old-grey) wrote :

This has been traced down to multiple windows with their floating XML Editor open at once interfering with each other.

http://www.inkscapeforum.com/viewtopic.php?f=29&t=31308

https://youtu.be/o5VRaOAjba4

jazzynico (jazzynico)
tags: added: ui
Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
Alex Farlie (afarlie) wrote :

I got "ghost" nodes with no other file open once, in a recent release, but will make a note here if it occurs again.

Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

I've seen this multiple times too... it is quite annoying but I've never been able to reproduce it. Now that it seems to be traced to multiple windows with a floating XML editor I think we might have a chance to fix it.

I've worked on dialogs recently and noticed that we have about as many ways to deal with multiple windows and dialogs as with the number of different dialogs. We should have a standardized way to handle floating dialogs (I recently added a "prototype" dialog as a start in this direction). This might be a good hackfest topic where we have multiple experts in the same room.

Revision history for this message
Brynn (brynn4inks-deactivatedaccount) wrote :

I can confirm in 0.92.1, 64-bit, exe installer, Windows 7 Pro, 64-bit

Floating XML Editor, multiple instances open (3 to 5) (none were existing files, and never were saved)

In my experience, it seems to be tied to the Fill and Stroke dialog being open. Today I have 5 instances open, but the multiple entries in XML Editor only starts happening when I open the F/S dialog. (F/S dialog is docked.)

Thanks :-)

Revision history for this message
Old Grey (old-grey) wrote :

I think we were also playing around with dialog boxes docked and undocked.
http://www.inkscapeforum.com/viewtopic.php?f=29&t=31308

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.