﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12221	TMS cache is reset every third time (WARNING: Region [TMS] Problem verifying disk.  Message [null])	holgermappt	team	"==== What steps will reproduce the problem?
1. Delete the TMS cache files from disk (TMS.data and TMS.data)
3. Select expert mode in preferences, quit JOSM
3. Start JOSM
4. Open a background imagery layer, e.g. Bing; there are messages on the command line about the loaded tiles (INFO: GET http://ecn.t3.tiles.virtualearth.net/tiles/a12021203312002.jpeg?g=4773 -> 200)
5. Quit JOSM
6. Start JOSM
7. Open the same background imagery layer as in step 4; there are no messages about loaded tiles because they come from the cache
8. Zoom in until new tiles are downloaded (INFO: GET http://... -> 200)
9. Quit JOSM
10. Start JOSM
11. Open the same background imagery layer as in step 4 

==== What is the expected result?
Tiles are loaded from TMS cache.

==== What happens instead?
The TMS cache is reset. On the command line I see these messages:
{{{
WARNING: Region [TMS] Problem verifying disk.  Message [null]
WARNING: Region [TMS] Resetting cache
}}}
Then the tiles are downloaded again (INFO: GET http://... -> 200).

If the WMS/TMS preferences are opened instead of step 11 then the message is:
{{{
WARNING: Region [TMS] Problem verifying disk.  Message [invalid stream header: 66511D3A]
WARNING: Region [TMS] Resetting cache
}}}

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Build-Date:2015-12-23 14:21:51
Revision:9140
Is-Local-Build:true

Identification: JOSM/1.5 (9140 SVN de) Linux openSUSE Leap 42.1 (x86_64)
Memory Usage: 786 MB / 7127 MB (604 MB allocated, but free)
Java version: 1.8.0_60, Oracle Corporation, OpenJDK 64-Bit Server VM

Plugins:
- HouseNumberTaggingTool (30416)
- InfoMode (30416)
- Mapillary (31802)
- PicLayer (30436)
- Tracer2 (30416)
- apache-commons (31772)
- apache-http (31772)
- buildings_tools (31772)
- continuosDownload (28565)
- editgpx (30892)
- graphview (31772)
- imageryadjust (30416)
- log4j (30416)
- measurement (31772)
- photo_geotagging (31772)
- photoadjust (31772)
- reverter (30521)
- tageditor (30892)
- undelete (30416)
- utilsplugin2 (30460)

Last errors/warnings:
- W: Region [mapillary] Resetting cache
- W: Region [TMS] Problem verifying disk.  Message [null]
- W: Region [TMS] Resetting cache
}}}
"	defect	closed	normal		Core imagery	latest	fixed	template_report	
