﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22850	Tracing (Follow) loops line back to first node after 4th node has been reached,	anonymous	team	"==== What steps will reproduce the problem?
1. Reproduction is not at will but at a very high percentage. The scenario is having 2 side sharing polygons. Start tracing with the F key after setting the second node of a new line for the next polygon. Hold the F key and on the 4th node of the new line, the end connects back to the first node resulting in a closed ring ending any further tracing.

==== Please provide any additional information below. Attach a screenshot if possible.

I've tried multiple ways of hard reproducing but can not, suspecting it has to do with the mouse pointer position relative to the first node and maybe zooming out whilst. Set the first and second node, then zoom out after the hitting  the F key tracing to see where the new line is going.

Consciously not zooming out while tracing makes no difference. It's always after the 4th node, not before, not after. A trace started not at the corner join of the 2 side sharing polygons does not cause this to happen, only when started at the join node of 2 polygons. Maybe it's over eager snapping i.e. maybe suspending snap while tracing needs to be suspended.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-03-01 15:17:42 +0100 (Wed, 01 Mar 2023)
Revision:18678
Build-Date:2023-03-02 02:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18678 en_GB) Windows 10 64-Bit
OS Build number: Windows 10 Home 2009 (19045)
Memory Usage: 2090 MB / 4084 MB (1054 MB allocated, but free)
Java version: 17.0.5+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_GB
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Dicedtea-web.bin.location=%UserProfile%\AppData\Local\Programs\OpenWebStart\javaws, -Djava.util.Arrays.useLegacyMergeSort=true, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop]
Dataset consistency test: No problems found

Plugins:
+ Mapillary (2.1.1)
+ RoadSigns (36038)
+ apache-commons (36034)
+ buildings_tools (36011)
+ graphview (36011)
+ jaxb (35952)
+ jogl (1.2.3)
+ kendzi3d-resources (0.0.2)
+ log4j (36034)
+ notesolver (0.5.0)
+ pt_assistant (1ff2e15)
+ reltoolbox (35976)
+ reverter (36043)
+ routing (35978)
+ turnrestrictions (36011)
+ utilsplugin2 (36011)

Tagging presets:
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/IT.zip
+ https://github.com/kendzi/Simple3dBuildingsPreset/releases/download/0.9_2018-05-08/s3db-preset.zip

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/ColorWays&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Rules/IncompleteObjectWarnings&zip=1

Last errors/warnings:
- 03552.637 W: java.net.UnknownHostException: ecn.t3.tiles.virtualearth.net
- 03552.637 W: java.net.UnknownHostException: ecn.t2.tiles.virtualearth.net
- 03552.638 W: java.net.UnknownHostException: ecn.t1.tiles.virtualearth.net
- 03552.638 W: java.net.UnknownHostException: ecn.t2.tiles.virtualearth.net
- 03552.639 W: java.net.UnknownHostException: ecn.t0.tiles.virtualearth.net
- 03552.640 W: java.net.UnknownHostException: ecn.t3.tiles.virtualearth.net
- 03552.640 W: java.net.UnknownHostException: ecn.t0.tiles.virtualearth.net
- 03552.641 W: java.net.UnknownHostException: ecn.t3.tiles.virtualearth.net
- 10423.180 W: Unsaved changes - <html>The relation has been changed.<br><br>Do you want to save your changes?</html>
- 10548.413 W: Unsaved changes - <html>The relation has been changed.<br><br>Do you want to save your changes?</html>
}}}
"	defect	closed	normal	24.01	Core	tested	duplicate	template_report follow	
