Modify

Opened 3 days ago

Last modified 2 days ago

#20388 needinfo defect

Attempting to Duplicate MapWithAI Layer

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone:
Component: Plugin mapwithai Version:
Keywords: template_report duplicate layer Cc: taylor.smock

Description

What steps will reproduce the problem?

  1. Right click on MapWithAI layer and select "Duplicate"

What is the expected result?

Layer is duplicated

What happens instead?

This error

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-12-28 22:03:23 +0100 (Mon, 28 Dec 2020)
Build-Date:2020-12-30 02:30:55
Revision:17428
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17428 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2004 (19041)
Memory Usage: 1564 MB / 1820 MB (596 MB allocated, but free)
Java version: 1.8.0_271-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 3840×2160 (scaling 1.00×1.00)
Maximum Screen Size: 3840×2160
Best cursor sizes: 16×16→32×32, 32×32→32×32
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=E:\Users\Josh\Downloads\josm.jnlp, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Djnlpx.splashport=53131, -Djnlpx.jvm=<java.home>\bin\javaw.exe]

Dataset consistency test:
[DELETED REFERENCED] {Way id=-4611380405346411271 version=0 MVDT nodes=[{Node id=-4611656765689635318 version=0 MV lat=38.2780028,lon=-122.6721441}, {Node id=-4611656765689624553 version=0 MVD lat=38.278212,lon=-122.6723989}]} refers to deleted primitive {Node id=-4611656765689624553 version=0 MVD lat=38.278212,lon=-122.6723989}
[DELETED REFERENCED] {Way id=-4610754876548693888 version=0 MVDT nodes=[{Node id=-4611547371970690368 version=0 MVDT lat=38.2306104,lon=-122.5943182}, {Node id=-4611547371970689312 version=0 MVDT lat=38.2306736,lon=-122.5941251}]} refers to deleted primitive {Node id=-4611547371970690368 version=0 MVDT lat=38.2306104,lon=-122.5943182}
[DELETED REFERENCED] {Way id=-4610754876548693888 version=0 MVDT nodes=[{Node id=-4611547371970690368 version=0 MVDT lat=38.2306104,lon=-122.5943182}, {Node id=-4611547371970689312 version=0 MVDT lat=38.2306736,lon=-122.5941251}]} refers to deleted primitive {Node id=-4611547371970689312 version=0 MVDT lat=38.2306736,lon=-122.5941251}
[DELETED REFERENCED] {Way id=-4611380405345792970 version=0 MVDT nodes=[{Node id=-4611656765689544594 version=0 MVT lat=38.2252525,lon=-122.6171895}, {Node id=-4611656765689545518 version=0 MVD lat=38.2248774,lon=-122.6170827}]} refers to deleted primitive {Node id=-4611656765689545518 version=0 MVD lat=38.2248774,lon=-122.6170827}
[DELETED REFERENCED] {Way id=-4611380405347232906 version=0 MVDT nodes=[{Node id=-4611656765689721022 version=0 MVDT lat=38.2170427,lon=-122.6353459}, {Node id=-4611656765689719887 version=0 MVD lat=38.2172281,lon=-122.6353781}]} refers to deleted primitive {Node id=-4611656765689721022 version=0 MVDT lat=38.2170427,lon=-122.6353459}
[DELETED REFERENCED] {Way id=-4611380405347232906 version=0 MVDT nodes=[{Node id=-4611656765689721022 version=0 MVDT lat=38.2170427,lon=-122.6353459}, {Node id=-4611656765689719887 version=0 MVD lat=38.2172281,lon=-122.6353781}]} refers to deleted primitive {Node id=-4611656765689719887 version=0 MVD lat=38.2172281,lon=-122.6353781}
[DELETED REFERENCED] {Way id=-4611380405346410909 version=0 MVDT nodes=[{Node id=-4611656765689626364 version=0 MVD lat=38.2756051,lon=-122.6707842}, {Node id=-4611656765689625544 version=0 MVT lat=38.2757736,lon=-122.6707198}]} refers to deleted primitive {Node id=-4611656765689626364 version=0 MVD lat=38.2756051,lon=-122.6707842}
[DELETED REFERENCED] {Way id=-4611380405345847281 version=0 MVDT nodes=[{Node id=-4611547371970687824 version=0 MVDT lat=38.2307238,lon=-122.5930033}, {Node id=-4611656765689547087 version=0 MVD lat=38.2305545,lon=-122.5927465}]} refers to deleted primitive {Node id=-4611547371970687824 version=0 MVDT lat=38.2307238,lon=-122.5930033}
[DELETED REFERENCED] {Way id=-4611380405345847281 version=0 MVDT nodes=[{Node id=-4611547371970687824 version=0 MVDT lat=38.2307238,lon=-122.5930033}, {Node id=-4611656765689547087 version=0 MVD lat=38.2305545,lon=-122.5927465}]} refers to deleted primitive {Node id=-4611656765689547087 version=0 MVD lat=38.2305545,lon=-122.5927465}
[DELETED REFERENCED] {Way id=-4610754876548664840 version=0 MVDT nodes=[{Node id=-4611547371970661376 version=0 MVDT lat=38.2322812,lon=-122.5887109}, {Node id=-4611547371970661136 version=0 MVT lat=38.2324455,lon=-122.5886971}]} refers to deleted primitive {Node id=-4611547371970661376 version=0 MVDT lat=38.2322812,lon=-122.5887109}
[DELETED REFERENCED] {Way id=-4611380405347232598 version=0 MVDT nodes=[{Node id=-4611656765689723033 version=0 MVD lat=38.2230944,lon=-122.6312528}, {Node id=-4611656765689720790 version=0 MVT lat=38.2232421,lon=-122.6312455}]} refers to deleted primitive {Node id=-4611656765689723033 version=0 MVD lat=38.2230944,lon=-122.6312528}
[DELETED REFERENCED] {Way id=-4611380405345911147 version=0 MVDT nodes=[{Node id=-4611656765689568315 version=0 MVDT lat=38.266676,lon=-122.6329729}, {Node id=-4611656765689468611 version=0 MVT lat=38.2664275,lon=-122.6324335}]} refers to deleted primitive {Node id=-4611656765689568315 version=0 MVDT lat=38.266676,lon=-122.6329729}
[DELETED REFERENCED] {Way id=-4610754876548694302 version=0 MVDT nodes=[{Node id=-4611547371970687872 version=0 MVD lat=38.2294812,lon=-122.593106}, {Node id=-4611547371970687260 version=0 MVDT lat=38.2292073,lon=-122.5930416}]} refers to deleted primitive {Node id=-4611547371970687872 version=0 MVD lat=38.2294812,lon=-122.593106}
[DELETED REFERENCED] {Way id=-4610754876548694302 version=0 MVDT nodes=[{Node id=-4611547371970687872 version=0 MVD lat=38.2294812,lon=-122.593106}, {Node id=-4611547371970687260 version=0 MVDT lat=38.2292073,lon=-122.5930416}]} refers to deleted primitive {Node id=-4611547371970687260 version=0 MVDT lat=38.2292073,lon=-122.5930416}
[DELETED REFERENCED] {Way id=-4611380405346491512 version=0 MVDT nodes=[{Node id=-4611656765689636967 version=0 MVD lat=38.2730841,lon=-122.6662492}, {Node id=-4611656765689624138 version=0 MVT lat=38.2732161,lon=-122.6660999}]} refers to deleted primitive {Node id=-4611656765689636967 version=0 MVD lat=38.2730841,lon=-122.6662492}
[DELETED REFERENCED] {Way id=-4610754876548664838 version=0 MVDT nodes=[{Node id=-4611547371970661090 version=0 MVD lat=38.2319989,lon=-122.5872623}, {Node id=-4611547371970661461 version=0 MVT lat=38.2320673,lon=-122.587325}]} refers to deleted primitive {Node id=-4611547371970661090 version=0 MVD lat=38.2319989,lon=-122.5872623}
[DELETED REFERENCED] {Way id=-4611380405346491493 version=0 MVDT nodes=[{Node id=-4611656765689636978 version=0 MVD lat=38.2725998,lon=-122.6665335}, {Node id=-4611656765689636333 version=0 MVT lat=38.2726377,lon=-122.6662384}]} refers to deleted primitive {Node id=-4611656765689636978 version=0 MVD lat=38.2725998,lon=-122.6665335}
[DELETED REFERENCED] {Way id=-4611380405345793052 version=0 MVDT nodes=[{Node id=-4611656765689545168 version=0 MV lat=38.231696,lon=-122.6124265}, {Node id=-4611656765689544907 version=0 MVDT lat=38.2318603,lon=-122.6124909}]} refers to deleted primitive {Node id=-4611656765689544907 version=0 MVDT lat=38.2318603,lon=-122.6124909}
[DELETED REFERENCED] {Way id=-4611380405345910794 version=0 MVDT nodes=[{Node id=-4611656765689563624 version=0 MVT lat=38.266655,lon=-122.6492474}, {Node id=-4611656765689563751 version=0 MVD lat=38.2665338,lon=-122.6490208}]} refers to deleted primitive {Node id=-4611656765689563751 version=0 MVD lat=38.2665338,lon=-122.6490208}
[DELETED REFERENCED] {Way id=-4611380405345847282 version=0 MVDT nodes=[{Node id=-4611547371970691128 version=0 MVDT lat=38.2297317,lon=-122.5938177}, {Node id=-4611656765689547099 version=0 MVD lat=38.2295474,lon=-122.5939481}]} refers to deleted primitive {Node id=-4611547371970691128 version=0 MVDT lat=38.2297317,lon=-122.5938177}
[DELETED REFERENCED] {Way id=-4611380405345847282 version=0 MVDT nodes=[{Node id=-4611547371970691128 version=0 MVDT lat=38.2297317,lon=-122.5938177}, {Node id=-4611656765689547099 version=0 MVD lat=38.2295474,lon=-122.5939481}]} refers to deleted primitive {Node id=-4611656765689547099 version=0 MVD lat=38.2295474,lon=-122.5939481}
[DELETED REFERENCED] {Way id=-4611380405346411523 version=0 MVDT nodes=[{Node id=-4611656765689623355 version=0 MVDT lat=38.2745186,lon=-122.6669003}, {Node id=-4611656765689626263 version=0 MVDT lat=38.2744049,lon=-122.6666697}]} refers to deleted primitive {Node id=-4611656765689623355 version=0 MVDT lat=38.2745186,lon=-122.6669003}
[DELETED REFERENCED] {Way id=-4611380405346411523 version=0 MVDT nodes=[{Node id=-4611656765689623355 version=0 MVDT lat=38.2745186,lon=-122.6669003}, {Node id=-4611656765689626263 version=0 MVDT lat=38.2744049,lon=-122.6666697}]} refers to deleted primitive {Node id=-4611656765689626263 version=0 MVDT lat=38.2744049,lon=-122.6666697}
[DELETED REFERENCED] {Way id=-4611380405347233287 version=0 MVDT nodes=[{Node id=-4611656765689719616 version=0 MVD lat=38.2235496,lon=-122.630416}, {Node id=-4611656765689722931 version=0 MVT lat=38.2235827,lon=-122.630342}]} refers to deleted primitive {Node id=-4611656765689719616 version=0 MVD lat=38.2235496,lon=-122.630416}
[DELETED REFERENCED] {Way id=-4610754876548694730 version=0 MVDT nodes=[{Node id=-4611547371970692217 version=0 MVD lat=38.2298141,lon=-122.5948493}, {Node id=-4611547371970687665 version=0 MVD lat=38.2300374,lon=-122.5948171}]} refers to deleted primitive {Node id=-4611547371970692217 version=0 MVD lat=38.2298141,lon=-122.5948493}
[DELETED REFERENCED] {Way id=-4610754876548694730 version=0 MVDT nodes=[{Node id=-4611547371970692217 version=0 MVD lat=38.2298141,lon=-122.5948493}, {Node id=-4611547371970687665 version=0 MVD lat=38.2300374,lon=-122.5948171}]} refers to deleted primitive {Node id=-4611547371970687665 version=0 MVD lat=38.2300374,lon=-122.5948171}
[DELETED REFERENCED] {Way id=-4611380405346411373 version=0 MVDT nodes=[{Node id=-4611656765689624450 version=0 MV lat=38.2767043,lon=-122.6650067}, {Node id=-4611656765689626156 version=0 MVD lat=38.2764937,lon=-122.6651194}]} refers to deleted primitive {Node id=-4611656765689626156 version=0 MVD lat=38.2764937,lon=-122.6651194}
[DELETED REFERENCED] {Way id=-4610754876548694691 version=0 MVDT nodes=[{Node id=-4611547371970690504 version=0 MVD lat=38.2304082,lon=-122.5928807}, {Node id=-4611547371970691599 version=0 MVDT lat=38.230576,lon=-122.5931569}]} refers to deleted primitive {Node id=-4611547371970690504 version=0 MVD lat=38.2304082,lon=-122.5928807}
[DELETED REFERENCED] {Way id=-4610754876548694691 version=0 MVDT nodes=[{Node id=-4611547371970690504 version=0 MVD lat=38.2304082,lon=-122.5928807}, {Node id=-4611547371970691599 version=0 MVDT lat=38.230576,lon=-122.5931569}]} refers to deleted primitive {Node id=-4611547371970691599 version=0 MVDT lat=38.230576,lon=-122.5931569}


Plugins:
+ apache-commons (35524)
+ apache-http (35589)
+ jna (35662)
+ mapwithai (1.7.1.1)
+ utilsplugin2 (35682)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1

Last errors/warnings:
- 10913.892 W: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out
- 10913.893 W: Already here java.net.SocketTimeoutException: Read timed out
- 10913.893 E: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out
- 10913.907 E: java.nio.file.AccessDeniedException: <josm.cache>\mirror_https___josm.openstreetmap.de_josmfile_page_Styles_MapWithAI_zip_1.tmp -> <josm.cache>\mirror_https___josm.openstreetmap.de_josmfile_page_Styles_MapWithAI_zip_1
- 10950.816 E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=-4611380405346411271 version=0 MVDT nodes=[{Node id=-4611656765689635318 version=0 MV lat=38.2780028,lon=-122.6721441}, {Node id=-4611656765689624553 version=0 MVD lat=38.278212,lon=-122.6723989}]} (changed by the following commands: )
- 10974.141 W: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out
- 10974.142 W: Already here java.net.SocketTimeoutException: Read timed out
- 10974.142 E: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out
- 10974.155 E: java.nio.file.AccessDeniedException: <josm.cache>\mirror_https___josm.openstreetmap.de_josmfile_page_Styles_MapWithAI_zip_1.tmp -> <josm.cache>\mirror_https___josm.openstreetmap.de_josmfile_page_Styles_MapWithAI_zip_1
- 10982.990 E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=-4611380405346411271 version=0 MVDT nodes=[{Node id=-4611656765689635318 version=0 MV lat=38.2780028,lon=-122.6721441}, {Node id=-4611656765689624553 version=0 MVD lat=38.278212,lon=-122.6723989}]} (changed by the following commands: )



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-2 (61) of javawsApplicationThreadGroup
org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=-4611380405346411271 version=0 MVDT nodes=[{Node id=-4611656765689635318 version=0 MV lat=38.2780028,lon=-122.6721441}, {Node id=-4611656765689624553 version=0 MVD lat=38.278212,lon=-122.6723989}]} (changed by the following commands: )
	at org.openstreetmap.josm.data.osm.Way.checkNodes(Way.java:553)
	at org.openstreetmap.josm.data.osm.Way.setDataset(Way.java:580)
	at org.openstreetmap.josm.data.osm.DataSet.lambda$addPrimitive$5(DataSet.java:502)
	at org.openstreetmap.josm.data.osm.DataSet.update(DataSet.java:960)
	at org.openstreetmap.josm.data.osm.DataSet.addPrimitive(DataSet.java:495)
	at org.openstreetmap.josm.data.osm.DataSet.<init>(DataSet.java:218)
	at org.openstreetmap.josm.gui.dialogs.layer.DuplicateAction.duplicate(DuplicateAction.java:57)
	at org.openstreetmap.josm.gui.dialogs.layer.DuplicateAction.actionPerformed(DuplicateAction.java:64)
	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.AbstractButton.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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)

Attachments (0)

Change History (3)

comment:1 Changed 2 days ago by skyper

Cc: taylor.smock added
Keywords: duplicate layer added

comment:2 Changed 2 days ago by taylor.smock

Owner: changed from team to anonymous
Status: newneedinfo

@anonymous: What is the use case for duplicating the MapWithAI layer? I'm inclined to remove that functionality since it has (a) never been adequately tested because (b) the MapWithAI layer is a singleton instance (so duplicating the layer doesn't make sense), and (c) the duplicate functionality is inherited from the standard OsmDataLayer class and was thus never considered for testing or actual use.

For now, I'm going to remove the duplicate button. If you have a good use case, I'll look into correctly adding that functionality.

comment:3 Changed 2 days ago by skyper

Component: CorePlugin mapwithai

Modify Ticket

Change Properties
Set your email in Preferences
Action
as needinfo The owner will remain anonymous.
as The resolution will be set.
to The owner will be changed from anonymous to the specified user.
to The owner will be changed from anonymous to the specified user.
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.