﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
20796	[WIP Patch] Josm remove geoimages from the layer even if this image is unsuccessfully deleted	StephaneP	Don-vip	"==== What steps will reproduce the problem?
1. Load some not too small images
2. Try do delete these images from disk with Josm (Ctrl+Shift+Del), as fast as possible.

==== What is the expected result?
Josm should delete these images from the disk and from the image layer.

==== What happens instead?
If you delete the images too fast, Josm will show you an error `Image file could not be deleted`. The file isn't deleted (Why?) and the image is removed from the image layer

==== Please provide any additional information below. Attach a screenshot if possible.
I can see the error in the logs : `- 00740.978 W: Unable to delete file H:\bug_gpx_josm_1\2021-04-15_11H59mn42s-Cam_avant-G0052614.JPG`
{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-04-23 21:32:22 +0200 (Fri, 23 Apr 2021)
Build-Date:2021-04-24 01:30:58
Revision:17814
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17814 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19042)
Memory Usage: 3290 MB / 7218 MB (2643 MB allocated, but free)
Java version: 1.8.0_191-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252

Plugins:
+ Mapillary (1.5.37.6)
+ OpeningHoursEditor (35640)
+ PicLayer (2a9aa7a)
+ apache-commons (35524)
+ apache-http (35589)
+ areaselector (368)
+ austriaaddresshelper (1597341117)
+ cadastre-fr (35727)
+ continuosDownload (91)
+ contourmerge (v0.1.6)
+ ejml (35458)
+ geotools (35458)
+ javafx-windows (35655)
+ jaxb (35543)
+ jna (35662)
+ jts (35458)
+ log4j (35458)
+ opendata (35640)
+ photo_geotagging (35715)
+ photoadjust (35640)
+ reverter (35732)
+ tageditor (35640)
+ todo (30306)
+ turnlanes-tagging (288)
+ turnrestrictions (35640)
+ undelete (35640)
+ utilsplugin2 (35691)

Tagging presets:
+ %UserProfile%\Documents\Gitlab\preset-josm-collectivites\Presets-collectivités.xml

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://raw.githubusercontent.com/species/josm-preset-traffic_sign_direction/master/direction.mapcss
- %UserProfile%\Documents\GitHub\MapCSS-JOSM-Bicycle\cycleway.mapcss

Last errors/warnings:
- 00041.368 E: Failed to locate image 'regulatory--dual-lanes-cyclists-and-pedestrians--g1'
- 00041.852 E: Failed to locate image 'regulatory--texts--g1'
- 00041.853 E: Failed to locate image 'regulatory--texts--g2'
- 00041.942 E: Failed to locate image 'void--car-mount'
- 00041.943 E: Failed to locate image 'void--dynamic'
- 00041.944 E: Failed to locate image 'void--ego-vehicle'
- 00041.944 E: Failed to locate image 'void--ground'
- 00041.945 E: Failed to locate image 'void--static'
- 00042.066 E: Failed to locate image 'warning--kangaroo-crossing--g1'
- 00740.978 W: Unable to delete file H:\bug_gpx_josm_1\2021-04-15_11H59mn42s-Cam_avant-G0052614.JPG
}}}
"	defect	closed	normal	21.07	Core image mapping	latest	fixed	template_report, image, delete	simon04
