Opened 6 years ago
Closed 5 years ago
#18268 closed defect (duplicate)
IllegalStateException: Missing merge target when using reverter plugin
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin reverter | Version: | latest |
Keywords: | template_report; plugin | Cc: |
Description
What steps will reproduce the problem?
- Open JOSM and use reverter plugin
- Typing the id of changeset and start to download objects
- At the moment when download is about to finish, crash reported
What is the expected result?
What happens instead?
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: 2019-08-26 08:55:27 +0200 (Mon, 26 Aug 2019) Build-Date:2019-08-26 06:57:10 Revision:15322 Relative:URL: ^/trunk Identification: JOSM/1.5 (15322 en) Windows 10 64-Bit OS Build number: Windows 10 Pro 1903 (18362) Memory Usage: 785 MB / 1820 MB (623 MB allocated, but free) Java version: 1.8.0_231-b11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 2256x1504 Maximum Screen Size: 2256x1504 Dataset consistency test: No problems found Plugins: + FastDraw (34977) + PicLayer (35104) + buildings_tools (35171) + changeset-viewer (22) + ext_tools (34988) + pbf (35033) + reverter (35084) + splinex (34908) + undelete (34977) + utilsplugin2 (35177) Last errors/warnings: - W: No configuration settings found. Using hardcoded default values for all pools. - E: Handled by bug report queue: java.lang.IllegalStateException: Missing merge target for node 5209470864 === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-0 (17) of main java.lang.IllegalStateException: Missing merge target for node 5209470864 at reverter.DataSetCommandMerger.getMergeTarget(DataSetCommandMerger.java:64) at reverter.DataSetCommandMerger.mergeNode(DataSetCommandMerger.java:83) at reverter.DataSetCommandMerger.merge(DataSetCommandMerger.java:179) at reverter.DataSetCommandMerger.<init>(DataSetCommandMerger.java:48) at reverter.ChangesetReverter.getCommands(ChangesetReverter.java:380) at reverter.RevertChangesetTask.revertChangeset(RevertChangesetTask.java:157) at reverter.RevertChangesetTask.realRun(RevertChangesetTask.java:89) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Attachments (0)
Change History (19)
comment:2 by , 6 years ago
It happens generally for all changesets. I will try to have a fresh install and see if the problem gone or not.
comment:3 by , 6 years ago
did you try to revert this changeset? https://www.openstreetmap.org/changeset/69075193
comment:4 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:6 by , 6 years ago
Update: Same issue still reproducible when reverting another changeset: 69072636
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2019-09-29 23:59:43 +0200 (Sun, 29 Sep 2019) Build-Date:2019-09-29 22:01:37 Revision:15390 Relative:URL: ^/trunk Identification: JOSM/1.5 (15390 en) Windows 10 64-Bit OS Build number: Windows 10 Pro 1903 (18362) Memory Usage: 918 MB / 1820 MB (723 MB allocated, but free) Java version: 1.8.0_231-b11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 2256x1504 Maximum Screen Size: 2256x1504 Dataset consistency test: No problems found Plugins: + FastDraw (34977) + PicLayer (35104) + buildings_tools (35171) + ext_tools (34988) + reverter (35084) + splinex (34908) + utilsplugin2 (35177) Last errors/warnings: - W: No configuration settings found. Using hardcoded default values for all pools. - E: Handled by bug report queue: java.lang.IllegalStateException: Missing merge target for node 5002556312 === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-0 (17) of main java.lang.IllegalStateException: Missing merge target for node 5002556312 at reverter.DataSetCommandMerger.getMergeTarget(DataSetCommandMerger.java:64) at reverter.DataSetCommandMerger.mergeNode(DataSetCommandMerger.java:83) at reverter.DataSetCommandMerger.merge(DataSetCommandMerger.java:179) at reverter.DataSetCommandMerger.<init>(DataSetCommandMerger.java:48) at reverter.ChangesetReverter.getCommands(ChangesetReverter.java:380) at reverter.RevertChangesetTask.revertChangeset(RevertChangesetTask.java:157) at reverter.RevertChangesetTask.realRun(RevertChangesetTask.java:89) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
comment:7 by , 6 years ago
I cannot reproduce the problem with cs 69072636 using the same JOSM and plugin version when reverting fully to a new layer.
I assume you are reverting to an existing layer, maybe with elements selected?
comment:8 by , 6 years ago
I used the plugin without any existing layer. The error pops out when it says fetching relations(0/2).
comment:9 by , 6 years ago
Ah, that was a good hint. You have enabled "Use Overpass server for object downloads" in the connection settings.
This doesn't work with the reverter (and also seems to be much slower).
See #15626
comment:11 by , 6 years ago
In #15626 I proposed not to use Overpass for reverter. I still think this would be the best approach.
comment:13 by , 6 years ago
I tried to implement the suggested fallback without success. See ticket:15626#comment:5 and ticket:15626#comment:6
comment:15 by , 6 years ago
Ah, ok, I hoped for a feedback from Upliner and it slipped my mind. A quick look into the current sources seems to show that this change would still be a good solution.
comment:16 by , 6 years ago
Summary: | JOSM exception when using reverter plugin → IllegalStateException: Missing merge target when using reverter plugin |
---|
comment:19 by , 5 years ago
Resolution: | → duplicate |
---|---|
Status: | needinfo → closed |
Closed as duplicate of #15626.
If you still can reproduce this, please let us know the changeset id that you try to revert.
In case that you don't revert to a new layer, please safe the content of that layer to a file and attach it to this ticket.