Modify

Opened 12 years ago

Closed 12 years ago

#7056 closed defect (fixed)

not possible to copy relations anymore

Reported by: Polyglot Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. In the last few versions of josm-latest try to copy a relation

What is the expected result?
A duplicate of the relation, with a new negative id ready to be adapted, where it deviates from the original

What happens instead?
Unexpected exception

Please provide any additional information below. Attach a screenshot if
possible.

I'm making heavy use of jttt's new custom name formatters and of custom mapcss styles. No idea if that has something to do with it, but it might explain a difference between my env and others', who don't have the problem.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-11-08 02:31:57
Last Changed Author: stoecker
Revision: 4587
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-11-07 13:12:19 +0100 (Mon, 07 Nov 2011)
Last Changed Rev: 4587

Identification: JOSM/1.5 (4587 en)
Memory Usage: 205 MB / 821 MB (101 MB allocated, but free)
Java version: 1.6.0_23, Sun Microsystems Inc., Java HotSpot(TM) Client VM
Operating system: Windows 7
Dataset consistency test: No problems found

Plugin: AddrInterpolation (26731)
Plugin: Create_grid_of_ways (26731)
Plugin: Curves (17.master-d10ded7)
Plugin: FixAddresses (26986)
Plugin: OpeningHoursEditor (26986)
Plugin: alignways (26986)
Plugin: buildings_tools (26731)
Plugin: contourmerge (1003)
Plugin: download_along (26731)
Plugin: licensechange (26986)
Plugin: openstreetbugs (26986)
Plugin: osmarender (26833)
Plugin: public_transport (26986)
Plugin: reltoolbox (26986)
Plugin: reverter (26986)
Plugin: routing (26986)
Plugin: scripting (26005)
Plugin: terracer (26731)
Plugin: turnlanes (26731)
Plugin: turnrestrictions (26986)
Plugin: undelete (26928)
Plugin: utilsplugin2 (26986)
Plugin: waydownloader (26986)

org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Relation id=-25878 version=0 MVT [way -25361, way 3998102, way 23120930]}
	at org.openstreetmap.josm.data.osm.OsmPrimitive.checkDataset(OsmPrimitive.java:309)
	at org.openstreetmap.josm.data.o

Attachments (0)

Change History (2)

comment:1 by Polyglot, 12 years ago

org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Relation id=-25878 version=0 MVT [way -25361, way 3998102, way 23120930]}

at org.openstreetmap.josm.data.osm.OsmPrimitive.checkDataset(OsmPrimitive.java:309)
at org.openstreetmap.josm.data.osm.OsmPrimitive.getReferrers(OsmPrimitive.java:841)
at org.openstreetmap.josm.tools.template_engine.ContextSwitchTemplate$ParentSet.getPrimitives(ContextSwitchTemplate.java:70)
at org.openstreetmap.josm.tools.template_engine.ContextSwitchTemplate.appendText(ContextSwitchTemplate.java:249)
at org.openstreetmap.josm.tools.template_engine.CompoundTemplateEntry.appendText(CompoundTemplateEntry.java:25)
at org.openstreetmap.josm.gui.DefaultNameFormatter.formatRelationNameAndType(DefaultNameFormatter.java:340)
at org.openstreetmap.josm.gui.DefaultNameFormatter.format(DefaultNameFormatter.java:306)
at org.openstreetmap.josm.data.osm.Relation.getDisplayName(Relation.java:376)
at org.openstreetmap.josm.gui.dialogs.relation.RelationTreeCellRenderer.renderValue(RelationTreeCellRenderer.java:48)
at org.openstreetmap.josm.gui.dialogs.relation.RelationTreeCellRenderer.getTreeCellRendererComponent(RelationTreeCellRenderer.java:67)
at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(Unknown Source)
at javax.swing.tree.AbstractLayoutCache.getNodeDimensions(Unknown Source)
at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(Unknown Source)
at javax.swing.tree.VariableHeightLayoutCache.rebuild(Unknown Source)
at javax.swing.tree.VariableHeightLayoutCache.treeStructureChanged(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$Handler.treeStructureChanged(Unknown Source)
at org.openstreetmap.josm.gui.dialogs.relation.RelationTreeModel.fireRootReplacedEvent(RelationTreeModel.java:161)
at org.openstreetmap.josm.gui.dialogs.relation.RelationTreeModel.populate(RelationTreeModel.java:138)
at org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.populate(ChildRelationBrowser.java:143)
at org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.<init>(ChildRelationBrowser.java:134)
at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor.<init>(GenericRelationEditor.java:173)
at org.openstreetmap.josm.gui.dialogs.relation.RelationEditor.getEditor(RelationEditor.java:100)
at org.openstreetmap.josm.gui.dialogs.RelationListDialog$DuplicateAction.launchEditorForDuplicate(RelationListDialog.java:394)
at org.openstreetmap.josm.gui.dialogs.RelationListDialog$DuplicateAction.actionPerformed(RelationListDialog.java:405)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

comment:2 by jttt, 12 years ago

Resolution: fixed
Status: newclosed

In [4591/josm]:

Fix #7056 not possible to copy relations anymore

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.