Modify

Opened 6 years ago

Closed 3 years ago

Last modified 3 years ago

#16641 closed defect (fixed)

Listener CommandLine.LengthAction was not registered before or already removed

Reported by: majkaz Owned by: Hind
Priority: normal Milestone:
Component: Plugin commandline Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

Select a closed way, Plugin commandline > fillet > select node > select fillet radius by mouse

What is the expected result?

the radius is read and the fillet command works

What happens instead?

Error message.

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

One can ignore the error and keep the plugin.

There is seemingly no reaction to mouse in the editing window (the app seems to hang), this is not really so. It is possible to select another command, go back to selection mode and everything still works.
The length is read, it is now possible to run the fillet command by simply repeating the steps and instead of reading the radius by selection simply confirm the value already preselected in this field.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-08-16 20:07:05 +0200 (Thu, 16 Aug 2018)
Build-Date:2018-08-17 01:32:11
Revision:14159
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14159 en) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 1607 (14393)
Memory Usage: 757 MB / 989 MB (424 MB allocated, but free)
Java version: 1.8.0_121-b13, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080
VM arguments: [-Dhttp.proxyHost=###, -Dhttp.proxyPort=###, -Djosm.home=./, -Djosm.pref=./_LOC]
Dataset consistency test: No problems found

Plugins:
+ CommandLine (34389)
+ EasyPresets (1529414338)
+ Mapillary (v1.5.15)
+ OpeningHoursEditor (34389)
+ QuickLabel (18)
+ SimplifyArea (34109)
+ Tracer-testing (1531896937)
+ apache-commons (34389)
+ apache-http (34389)
+ buildings_tools (34212)
+ changeset-viewer (15)
+ continuosDownload (1530471163)
+ contourmerge (v0.1.1)
+ ejml (34389)
+ geojson (84)
+ geotools (34125)
+ gridify (1526416296)
+ imagery_offset_db (34466)
+ jts (34206)
+ mapathoner (v0.5.13)
+ opendata (34452)
+ pointInfo (34389)
+ poly (34389)
+ reltoolbox (34346)
+ reverter (34271)
+ rex (1529698495)
+ scripting (30786)
+ tageditor (34109)
+ tagging-preset-tester (34109)
+ todo (30305)
+ touchscreenhelper (34109)
+ turnlanes-tagging (263)
+ turnrestrictions (34129)
+ utilsplugin2 (34456)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/ParkingLanes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Czech_hiking&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Maxspeed-zones&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/NewParkingFeatures&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/NewTags&zip=1
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/CZ.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/Bus_lanes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Healthcare&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Heritage&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Industrial&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/public_bookcase&zip=1
+ https://raw.githubusercontent.com/species/josm-preset-wheelchair/master/sidewalks_kerbs.xml
+ http://zibi.openstreetmap.org.pl/kendzi/k/Simple3dPreset/s3db-preset.zip

Map paint styles:
- https://github.com/hotosm/HDM-JOSM-style/archive/master.zip
+ https://www.dropbox.com/s/qo3ai47fpv241jf/Styles_Fixme_and_Notes.zip?raw=1
- C:\PRG\JOSM\styly\HOT-Osm-Validation-master\HOT-Validate.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Highway_Nodes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Modified&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/NewParkingFeatures&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/NoFeature&zip=1
- https://github.com/OpenSidewalks/OpenSidewalks-Schema/blob/master/open_sidewalks.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Styles/ParkingLanes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Sidewalks&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Surface-DataEntry&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Noname&zip=1
- https://raw.githubusercontent.com/species/josm-preset-wheelchair/master/sidewalks_kerbs.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Lit&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Cycleways&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/DestinationSignRelation&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/BesideTheRoad_Speed&zip=1
- E:\JOSM\styles\osmic-josm-style-master.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/NewHighwayColors&zip=1
- C:\PRG\JOSM\styly\_dev\crtasks.mapcss
+ C:\PRG\JOSM\styly\_dev\elemstyles.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_buildings&zip=1
+ https://github.com/gmgeo/osmic-josm-style/archive/master.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/SimpleBuildingTags&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/SimpleRoofTags&zip=1
- C:\PRG\JOSM\styly\_dev\age.mapcss
- C:\PRG\JOSM\styly\HOT-Osm-Validation-master\building_3D.mapcss
+ C:\PRG\JOSM\styly\HOT-Osm-Validation-master\building.mapcss
+ C:\PRG\JOSM\styly\_dev\areasize.mapcss
- https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/OsmcSKCZPL&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Kerbs&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/MTB&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/MaxspeedIcons&zip=1

Last errors/warnings:
- W: java.io.IOException: Attribution is not loaded yet
- W: Unable to convert property z-index to type class java.lang.Float: found RelativeFloat{val=2.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- W: Unable to convert property z-index to type class java.lang.Float: found RelativeFloat{val=2.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- W: Unable to convert property z-index to type class java.lang.Float: found RelativeFloat{val=2.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- W: Unable to convert property z-index to type class java.lang.Float: found RelativeFloat{val=2.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- W: Unable to convert property z-index to type class java.lang.Float: found RelativeFloat{val=2.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- W: Unable to convert property z-index to type class java.lang.Float: found RelativeFloat{val=2.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- W: Unable to convert property z-index to type class java.lang.Float: found RelativeFloat{val=2.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- W: Unable to convert property z-index to type class java.lang.Float: found RelativeFloat{val=2.0} of type class org.openstreetmap.josm.gui.mappaint.mapcss.Instruction$RelativeFloat!
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Listener CommandLine.LengthAction@6d84e1 (instance of CommandLine.LengthAction) was not registered before or already removed.

Attachments (0)

Change History (3)

comment:1 by Don-vip, 6 years ago

Summary: Commandline: error on measuring lengthListener CommandLine.LengthAction was not registered before or already removed

comment:2 by taylor.smock, 3 years ago

Resolution: fixed
Status: newclosed

In 35942/osm:

fix #16641: Listener CommandLine.LengthAction was not registered before or already removed

This was caused by the exitMode() being called on mode change AND on drawing
finish.

This patch also improves user feedback when a command errors out. For example,
when python isn't installed.

comment:3 by taylor.smock, 3 years ago

In 35943/osm:

commandline (dist): fix #16641 - Listener CommandLine.LengthAction was not registered before or already removed

This was caused by the exitMode() being called on mode change AND on drawing
finish.

This patch also improves user feedback when a command errors out. For example,
when python isn't installed.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Hind.
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.