Opened 5 years ago
Closed 5 years ago
#20040 closed defect (fixed)
IllegalStateException: Duplicate key in log when uninstalling Mapillary plugin
Reported by: | GerdP | Owned by: | taylor.smock |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin mapillary | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Install plugin Mapillary
- Uninstall plugin
- Stop/Start JOSM
- repeat steps 1+2 (plugin files exist already)
What is the expected result?
no error message in log
What happens instead?
log shows error message and traceback, dialog shows popup "You have to restart JOSM..."
Please provide any additional information below. Attach a screenshot if possible.
Happened with when checking changes in #7548
Build-Date:2020-11-06 08:56:27 Revision:17299 Is-Local-Build:true Identification: JOSM/1.5 (17299 SVN en) Windows 10 64-Bit OS Build number: Windows 10 Home 2004 (19041) Memory Usage: 833 MB / 1753 MB (677 MB allocated, but free) Java version: 1.8.0_272-b10, AdoptOpenJDK, OpenJDK 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920x1080 (scaling 1.0x1.0) Maximum Screen Size: 1920x1080 Best cursor sizes: 16x16 -> 32x32, 32x32 -> 32x32 Program arguments: [--debug] Plugins: + Mapillary (1.5.27) + OpeningHoursEditor (35579) + apache-commons (35524) + apache-http (35092) + buildings_tools (35579) + continuosDownload (91) + ejml (35313) + geotools (35169) + jaxb (35092) + jna (35092) + jts (35122) + o5m (35248) + opendata (35513) + pbf (35636) + poly (35248) + reltoolbox (35602) + reverter (35638) + undelete (35521) + utilsplugin2 (35624) Validator rules: + c:\josm\core\resources\data\validator\geometry.mapcss Last errors/warnings: - 00072.279 E: java.lang.IllegalStateException: Duplicate key org.openstreetmap.josm.gui.io.RecentlyOpenedFilesMenu[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@4a34e9f,flags=256,maximumSize=,minimumSize=,preferredSize=,defaultIcon=javax.swing.ImageIcon@68f6b075,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],paintBorder=false,paintFocus=false,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=Open Recent]
Attachments (0)
Change History (3)
comment:2 by , 5 years ago
Component: | Core → Plugin mapillary |
---|---|
Owner: | changed from | to
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
It looks like it is due to having a duplicate null
key. I didn't think about filtering for null
.
Anyway, it is now fixed in https://github.com/JOSM/Mapillary/commit/12273b479f50018680a37eaf88f8410361345f5f (along with some other NPE's that may have occurred during uninstall/reinstall).