#18220 closed defect (irreproducible)
JOSM freezes every time I add a POI as a building. I can add 1-2 tags before it freezes. I can still add the POI and buildings separately and combine them.
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | template_report | Cc: | taylor.smock |
Description
What steps will reproduce the problem?
- Add a building.
- Add a POI tag to the building and use Shift+return to add another tag.
What is the expected result?
To be able to add a POI as a building without JOSM freezing.
What happens instead?
JOSM will freeze and you will be unable to do anything else without force quitting JOSM.
Please provide any additional information below. Attach a screenshot if possible.
This has happened a few times in different parts of the world. It always happens when I use Shift+return to add another tag to the building.
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-09-29 23:59:43 +0200 (Sun, 29 Sep 2019)
Build-Date:2019-09-29 22:01:37
Revision:15390
Relative:URL: ^/trunk
Identification: JOSM/1.5 (15390 en) Mac OS X 10.14.6
OS Build number: Mac OS X 10.14.6 (18G95)
Memory Usage: 915 MB / 1820 MB (563 MB allocated, but free)
Java version: 1.8.0_211-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: Display 69733632 1440x900, Display 188945225 1920x1080
Maximum Screen Size: 1920x1080
VM arguments: [-Djava.library.path=/Applications/JOSM.app/Contents/MacOS, -DLibraryDirectory=${HOME}/Library, -DDocumentsDirectory=${HOME}/Documents, -DApplicationSupportDirectory=${HOME}/Library/Application Support, -DCachesDirectory=${HOME}/Library/Caches, -DApplicationDirectory=${HOME}/Applications, -DAutosavedInformationDirectory=${HOME}/Library/Autosave Information, -DDesktopDirectory=${HOME}/Desktop, -DDownloadsDirectory=${HOME}/Downloads, -DMoviesDirectory=${HOME}/Movies, -DMusicDirectory=${HOME}/Music, -DPicturesDirectory=${HOME}/Pictures, -DSharedPublicDirectory=${HOME}/Public, -DSystemLibraryDirectory=/Library, -DSystemApplicationSupportDirectory=/Library/Application Support, -DSystemCachesDirectory=/Library/Caches, -DSystemApplicationDirectory=/Applications, -DSystemUserDirectory=/Users, -DUserHome=${HOME}, -DSandboxEnabled=true, -DLaunchModifierFlags=0, -DLaunchModifierFlagCapsLock=false, -DLaunchModifierFlagShift=false, -DLaunchModifierFlagControl=false, -DLaunchModifierFlagOption=false, -DLaunchModifierFlagCommand=false, -DLaunchModifierFlagNumericPad=false, -DLaunchModifierFlagHelp=false, -DLaunchModifierFlagFunction=false, -Dapple.laf.useScreenMenuBar=true, -Dcom.apple.macos.use-file-dialog-packages=true, -Dcom.apple.macos.useScreenMenuBar=true, -Dcom.apple.mrj.application.apple.menu.about.name=JOSM, -Dcom.apple.smallTabs=true]
Dataset consistency test: No problems found
Plugins:
+ FixAddresses (34977)
+ Mapillary (1.5.19)
+ apache-commons (35092)
+ apache-http (34908)
+ auto_tools (73)
+ buildings_tools (34982)
+ changeset-viewer (22)
+ conflation (0.6.4)
+ continuosDownload (82)
+ geojson (124)
+ graphview (34977)
+ jna (34908)
+ jts (35122)
+ laneconnectivity (0.0.3)
+ markseen (14)
+ openqa (1557250801)
+ osm-obj-info (56)
+ reverter (35084)
+ rex (53)
+ utilsplugin2 (35098)
Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
+ https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/Kaart-Styles.mapcss
+ ${HOME}/Desktop/Paintstyle:validator checks/Overlapping Ways.mapcss
- ${HOME}/Desktop/Paintstyle:validator checks/FB Styles/New_FB_style (1).mapcss
- https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/MX_Import.mapcss
- ${HOME}/Desktop/Paintstyle:validator checks/Clingstone/Kaart_QC_Clingstone.mapcss
- https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/Kaart_QC.mapcss
- https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/Kaart_QC_Dwarf.mapcss
- ${HOME}/Desktop/Paintstyle:validator checks/FB Styles/Kaart_QC_Freestone.mapcss
- https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/Kaart_QC_Mexico.mapcss
Validator rules:
+ ${HOME}/Desktop/Desktop - Ian’s MacBook Pro/Desktop - Jan’s iMac/Paintstyle:validator checks/FB_rules_Kaart_1.validator.mapcss
+ https://raw.githubusercontent.com/KaartGroup/KaartValidator/master/kaart.validator.mapcss
Last errors/warnings:
- W: No configuration settings found. Using hardcoded default values for all pools.
- W: Failed to add ${HOME}/Desktop/Desktop - Ian’s MacBook Pro/Desktop - Jan’s iMac/Paintstyle:validator checks/FB_rules_Kaart_1.validator.mapcss to tag checker
- W: java.nio.file.NoSuchFileException: ${HOME}/Desktop/Desktop - Ian’s MacBook Pro/Desktop - Jan’s iMac/Paintstyle:validator checks/FB_rules_Kaart_1.validator.mapcss
- W: Region [userProfile_BLOCK_v2] Problem verifying disk.
- W: Region [userProfile_BLOCK_v2] Resetting cache
Attachments (1)
Change History (6)
comment:1 by , 6 years ago
| Cc: | added |
|---|---|
| Owner: | changed from to |
| Status: | new → needinfo |
comment:2 by , 6 years ago
Just so you know, you can get a thread dump by running the following command (Linux/Mac): jps -l | grep "org.openstreetmap.josm.gui.MainApplication" | head -n1 | awk '{print $1}' | xargs jstack -l. I would recommend doing this a few times (say 10, once every 10 seconds or so) and putting the output in a file. You can do that by modifying the xargs jstack -l to be xargs jstack -l >> stacktrace.log.
For example, for i in {1..10}; do jps -l | grep "org.openstreetmap.josm.gui.MainApplication" | awk '{print $1}' | xargs jstack -l >> josm_stacktrace.log; echo ${i}; sleep 10; done.
Note: Don't have two versions of JOSM running at the same time when you run the command -- we might not get the "right" JOSM with that command.
EDIT: If you don't know where you are in the terminal, run pwd. Or (on Mac) run open ., or (on Linux), run gio open ..
comment:3 by , 6 years ago
| Resolution: | → needinfo |
|---|---|
| Status: | needinfo → closed |
I cannot do anything without the thread dump I asked. Please reopen if you manage to get one.
by , 6 years ago
| Attachment: | josm_stacktrace.log added |
|---|
follow-up: 5 comment:4 by , 6 years ago
| Resolution: | needinfo → fixed |
|---|
comment:5 by , 6 years ago
| Resolution: | fixed → irreproducible |
|---|
I see nothing wrong in the thread dump. No deadlock, and I can't reproduce this issue.



Looks like a deadlock. Next time it happens, please share a threaddump so we can analyze it.