Opened 12 years ago

Last modified 11 years ago

#10164 closed defect

DataIntegrityProblemException: pseudo class :unconnected blocks adding tags — at Version 4

Reported by: Klumbumbus Owned by: team
Priority: major Milestone: 14.12
Component: Core Version:
Keywords: mapcss unconnected exception Cc:

Description (last modified by Don-vip)

How to reproduce:

  • Use a mapcss file with the following content node:unconnected{} (example file)
  • Select a node or way
  • Click add in the tags dialog or use Alt + A
  • An error occours and you can't add tags

Happens in tested 7182 and latest 7249.
See console output for more information about the error.

	org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-100 version=0 VT lat=0.0,lon=0.0}
	        at org.openstreetmap.josm.data.osm.OsmPrimitive.checkDataset(OsmPrimitive.java:334)
	        at org.openstreetmap.josm.data.osm.OsmPrimitive.getReferrers(OsmPrimitive.java:997)
	        at org.openstreetmap.josm.data.osm.OsmPrimitive.getReferrers(OsmPrimitive.java:1018)
	        at org.openstreetmap.josm.gui.mappaint.mapcss.Condition$PseudoClassCondition.appliesImpl(Condition.java:404)
	        at org.openstreetmap.josm.gui.mappaint.mapcss.Condition$PseudoClassCondition.applies(Condition.java:380)
	        at org.openstreetmap.josm.gui.mappaint.mapcss.Selector$AbstractSelector.matches(Selector.java:417)
	        at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.apply(MapCSSStyleSource.java:387)
	        at org.openstreetmap.josm.gui.mappaint.ElemStyles.generateStyles(ElemStyles.java:328)
	        at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.getNodeIcon(MapPaintStyles.java:144)
	        at org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper$AddTagsDialog.suggestRecentlyAddedTags(TagEditHelper.java:687)
	        at org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper$AddTagsDialog.<init>(TagEditHelper.java:607)
	        at org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper.addTag(TagEditHelper.java:129)
	        at org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog$AddAction.actionPerformed(PropertiesDialog.java:1008)
	        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)

Change History (6)

by Klumbumbus, 12 years ago

Attachment: unconnected test.mapcss added

by Klumbumbus, 12 years ago

Attachment: console output.txt added

comment:1 by Klumbumbus, 11 years ago

Component: Core multipolyCore

Any plans on fixing this? The pseudoclass :unconnected is nearly unusable because of this.

comment:2 by stoecker, 11 years ago

Milestone: 14.12

comment:3 by stoecker, 11 years ago

Summary: pseudo class :unconnected blocks adding tagsRuntimeException: pseudo class :unconnected blocks adding tags

comment:4 by Don-vip, 11 years ago

Description: modified (diff)
Keywords: mapcss unconnected exception added
Summary: RuntimeException: pseudo class :unconnected blocks adding tagsDataIntegrityProblemException: pseudo class :unconnected blocks adding tags
Note: See TracTickets for help on using tickets.