﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
17250	Area selection on slippy map broken	AMDmi3	AMDmi3	"==== What steps will reproduce the problem?
1. File -> Download data
2. Try to select area to download on the slippy map with mouse.

==== What is the expected result?
Area selection rectangle appears, with corners corresponding to current cursor location and the locating where I've pressed bouse button.

==== What happens instead?
Area selection rectangle appears in form of vertical stripe, which flickers as I move mouse.
E.g. it looks like rectangle's top and bottom edges jump to +/- infinity and back. Left and right edges looks correct though.
There are also problems when zooming with mouse buttons - instead of zooming around mouse cursor location, the map jumps to southest or northest edge.

Summarizing, it looks like there's some problem with vertical mouse coordinate processing on the slippy map, which involves integer overflows or wraps, resulting in random vertical coordinate value in josm.

==== Please provide any additional information below. Attach a screenshot if possible.

This currently happens with any JOSM version, I've tried 14731, 14620, 14382, 14289, 13576.
This hasn't happened before, so something outside josm has broken it.
Maybe OpenJDK update to 8u192 which happened for FreeBSD on Dec 08th. 2018.
The problem reproduces after removing config and all plugins.

[[Image(josm-bug.png,700)]]

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-01-24 22:50:30 +0100 (Thu, 24 Jan 2019)
Build-Date:2019-01-25 02:33:53
Revision:14731
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14731 en) FreeBSD
Memory Usage: 484 MB / 912 MB (272 MB allocated, but free)
Java version: 1.8.0_192-b26, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1600x1200, :0.1 1920x1080, :0.2 1600x1200
Maximum Screen Size: 1920x1200

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- W: Region [TMS_BLOCK_v2] Resetting cache
}}}
"	defect	closed	major		Core	tested	othersoftware	template_report linux freebsd	
