Modify

Opened 2 years ago

Closed 14 months ago

Last modified 14 months ago

#21659 closed defect (fixed)

IAE: Listener org.openstreetmap.josm.plugins.fastdraw.FastDrawingMode was not registered before or already removed

Reported by: anonymous Owned by: akks
Priority: normal Milestone:
Component: Plugin FastDraw Version:
Keywords: template_report listener register remove Cc:

Description

What steps will reproduce the problem?

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: 2021-11-01 23:05:46 +0100 (Mon, 01 Nov 2021)
Build-Date:2021-11-01 22:25:18
Revision:18303
Relative:URL: ^/trunk

Identification: JOSM/1.5 (18303 pt_BR) Windows 10 64-Bit
OS Build number: Windows 10 Home 2009 (19043)
Memory Usage: 247 MB / 247 MB (7 MB allocated, but free)
Java version: 1.8.0_181-b13, Oracle Corporation, Java HotSpot(TM) Client VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1366×768 (scaling 1.00×1.00) \Display1 1360×768 (scaling 1.00×1.00)
Maximum Screen Size: 1366×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: pt_BR
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found

Plugins:
+ FastDraw (35864)
+ buildings_tools (35823)
+ reverter (35869)
+ turnrestrictions (35640)
+ utilsplugin2 (35856)

Validator rules:
+ https://raw.githubusercontent.com/OSMBrasil/validador-josm/master/Rules_Brazilian-Specific.validator.mapcss
+ %UserProfile%\Documents\Open Street Maps\Josm\kaart.validator.mapcss

Last errors/warnings:
- 32947.602 W: javax.net.ssl.SSLException: Received fatal alert: internal_error
- 32947.644 E: Exception while applying condition[org.openstreetmap.josm.gui.mappaint.mapcss.ExpressionFactory$Factory$$Lambda$457/8166153@950f53]:: java.util.regex.PatternSyntaxException: Illegal character range near index 6
- 33233.435 E: Exception while applying condition[org.openstreetmap.josm.gui.mappaint.mapcss.ExpressionFactory$Factory$$Lambda$457/8166153@950f53]:: java.util.regex.PatternSyntaxException: Illegal character range near index 6
- 33728.885 E: Exception while applying condition[org.openstreetmap.josm.gui.mappaint.mapcss.ExpressionFactory$Factory$$Lambda$457/8166153@950f53]:: java.util.regex.PatternSyntaxException: Illegal character range near index 6
- 33789.538 E: Exception while applying condition[org.openstreetmap.josm.gui.mappaint.mapcss.ExpressionFactory$Factory$$Lambda$457/8166153@950f53]:: java.util.regex.PatternSyntaxException: Illegal character range near index 6
- 34423.464 W: java.net.SocketException: Unexpected end of file from server. Causa: java.net.SocketException: Unexpected end of file from server
- 34423.466 W: Already here java.net.SocketException: Unexpected end of file from server
- 34423.767 E: org.openstreetmap.josm.io.OsmTransferException: java.net.SocketException: Unexpected end of file from server. Causa: java.net.SocketException: Unexpected end of file from server. Causa: java.net.SocketException: Unexpected end of file from server
- 34423.797 E: Exceção de rede - <html>Falha ao abrir uma conexão com o servidor remoto<br>' https://api.openstreetmap.org/api/0.6/'.<br>Por favor, verifique sua conexão de internet.</html>
- 37533.842 E: Handled by bug report queue: java.lang.IllegalArgumentException: Listener org.openstreetmap.josm.plugins.fastdraw.FastDrawingMode@271616 (instance of org.openstreetmap.josm.plugins.fastdraw.FastDrawingMode) was not registered before or already removed.



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (19) of main
java.lang.IllegalArgumentException: Listener org.openstreetmap.josm.plugins.fastdraw.FastDrawingMode@271616 (instance of org.openstreetmap.josm.plugins.fastdraw.FastDrawingMode) was not registered before or already removed.
	at org.openstreetmap.josm.tools.ListenerList.failRemove(ListenerList.java:137)
	at org.openstreetmap.josm.tools.ListenerList.removeListener(ListenerList.java:131)
	at org.openstreetmap.josm.data.Preferences.removePreferenceChangeListener(Preferences.java:261)
	at org.openstreetmap.josm.actions.mapmode.MapMode.exitMode(MapMode.java:86)
	at org.openstreetmap.josm.plugins.fastdraw.FastDrawingMode.exitMode(FastDrawingMode.java:125)
	at org.openstreetmap.josm.gui.MapFrame.selectMapMode(MapFrame.java:498)
	at org.openstreetmap.josm.gui.MapFrame.selectMapMode(MapFrame.java:475)
	at org.openstreetmap.josm.actions.mapmode.MapMode.actionPerformed(MapMode.java:115)
	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.JToggleButton$ToggleButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.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 (8)

comment:1 by skyper, 2 years ago

Ticket #21660 has been marked as a duplicate of this ticket.

comment:2 by skyper, 2 years ago

Component: CorePlugin FastDraw
Owner: changed from team to akks
Summary: Unespected errorIllegalArgumentException: Listener org.openstreetmap.josm.plugins.fastdraw.FastDrawingMode

Looks like a duplicate of #17366. Was the new version of the plugin proper released?

in reply to:  description comment:3 by skyper, 2 years ago

Replying to anonymous:

Identification: JOSM/1.5 (18303 pt_BR) Windows 10 64-Bit
OS Build number: Windows 10 Home 2009 (19043)
Memory Usage: 247 MB / 247 MB (7 MB allocated, but free)
Java version: 1.8.0_181-b13, Oracle Corporation, Java HotSpot(TM) Client VM

Please, always use a 64-bit java version on a 64-bit operating system. This should automatically increase the available memory which is quite low with only 247 MB.
Your java version is outdated, please, update, at least, to latest release of 1.8.0.

comment:4 by skyper, 2 years ago

Keywords: listener register remove added
Summary: IllegalArgumentException: Listener org.openstreetmap.josm.plugins.fastdraw.FastDrawingModeIAE: Listener org.openstreetmap.josm.plugins.fastdraw.FastDrawingMode was not registered before or already removed

comment:5 by floscher, 2 years ago

I can confirm this issue with the current version of the plugin.

Steps to reproduce:

  • Enter FastDraw mode, but do not commit the currently drawn line (so the line is still highlighted in orange)
  • upload the changes to the server
  • change editing mode

comment:6 by taylor.smock, 21 months ago

Ticket #22272 has been marked as a duplicate of this ticket.

comment:7 by taylor.smock, 14 months ago

Resolution: fixed
Status: newclosed

In 36057/osm:

Fix #21659: IAE: Listener FastDrawingMode was not registered before or already removed

This occurs because FastDraw tries to only be available when there is an unlocked
data layer.

Also clean up the code a bit (SonarLint, checkstyle).

comment:8 by taylor.smock, 14 months ago

In 36058/osm:

See #21659, #22317 (dist)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain akks.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.