﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21750	IAE: Attempted to add listener that was already in list: RoadSigns	wegavision	team	"==== What steps will reproduce the problem?
1. intallation WIN10 does't work
the winstart.exe window disappears without startin JOSM
2. Starting JOSM I get this error
3. 

==== What is the expected result?

==== What happens instead?

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Revision:18360
Build-Date:2022-01-02 23:53:33

Identification: JOSM/1.5 (18360 de) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19043)
Memory Usage: 191 MB / 2022 MB (95 MB allocated, but free)
Java version: 17.0.1+12-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1360×768 (scaling 1.00×1.00)
Maximum Screen Size: 1360×768
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: de_DE
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18360, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe]

Plugins:
+ HouseNumberTaggingTool
+ KartaView
+ Mapillary
+ RoadSigns
+ apache-commons
+ apache-http
+ buildings_tools
+ jna
+ log4j (35092)
+ photo_geotagging
+ terracer
+ utilsplugin2

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/Crafts&preset&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Heritage&preset&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Historical_Objects&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&zip=1
+ http://www.country-linedance.de/daten/Verkehrsze<user.name>en-vorlage.zip

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/MaxspeedIcons&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1

Last errors/warnings:
- 00010.276 W:   : Could not get presets icon presets/motorbike.png
- 00010.278 E: Fehler beim Laden des Bildes 'presets/parking.png'
- 00010.278 W:   : Could not get presets icon presets/parking.png
- 00010.279 E: Fehler beim Laden des Bildes 'presets/parking.png'
- 00010.280 W:  Parking space: Could not get presets icon presets/parking.png
- 00010.280 E: Fehler beim Laden des Bildes 'presets/parking.png'
- 00010.281 W:  Parking entrance: Could not get presets icon presets/parking.png
- 00010.282 E: Fehler beim Laden des Bildes 'presets/traffic-light.png'
- 00010.282 W:   : Could not get presets icon presets/traffic-light.png
- 00010.412 E: Handled by bug report queue: org.openstreetmap.josm.tools.JosmRuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Attempted to add listener that was already in list:  RoadSigns. Ursache: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Attempted to add listener that was already in list:  RoadSigns. Ursache: java.lang.IllegalArgumentException: Attempted to add listener that was already in list:  RoadSigns



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main (1)
org.openstreetmap.josm.tools.JosmRuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Attempted to add listener that was already in list:  RoadSigns
	at org.openstreetmap.josm.spi.lifecycle.Lifecycle.initialize(Lifecycle.java:93)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:951)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:281)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:739)
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Attempted to add listener that was already in list:  RoadSigns
	at java.base/java.util.concurrent.FutureTask.report(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.get(Unknown Source)
	at org.openstreetmap.josm.spi.lifecycle.Lifecycle.initialize(Lifecycle.java:78)
	... 3 more
Caused by: java.lang.IllegalArgumentException: Attempted to add listener that was already in list:  RoadSigns
	at org.openstreetmap.josm.gui.layer.MainLayerManager.addActiveLayerChangeListener(MainLayerManager.java:177)
	at org.openstreetmap.josm.gui.tagging.presets.TaggingPresets.initialize(TaggingPresets.java:93)
	at org.openstreetmap.josm.spi.lifecycle.InitializationTask.call(InitializationTask.java:33)
	at org.openstreetmap.josm.spi.lifecycle.InitializationTask.call(InitializationTask.java:11)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
}}}
"	defect	closed	normal		Core		duplicate	template_report	
