Modify

Opened 3 weeks ago

Closed 8 days ago

#17250 closed defect (othersoftware)

Area selection on slippy map broken

Reported by: AMDmi3 Owned by: AMDmi3
Priority: major Milestone:
Component: Core Version: tested
Keywords: template_report linux freebsd Cc:

Description (last modified by Klumbumbus)

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.

Screenshot demonstrating the problem. Painted arrow shows how cursor moved after pressing a mouse button, e.g. an expected selection bounds.

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

Attachments (1)

josm-bug.png (146.9 KB) - added by AMDmi3 3 weeks ago.
Screenshot demonstrating the problem. Painted arrow shows how cursor moved after pressing a mouse button, e.g. an expected selection bounds.

Download all attachments as: .zip

Change History (6)

Changed 3 weeks ago by AMDmi3

Attachment: josm-bug.png added

Screenshot demonstrating the problem. Painted arrow shows how cursor moved after pressing a mouse button, e.g. an expected selection bounds.

comment:1 Changed 3 weeks ago by Don-vip

Owner: changed from team to AMDmi3
Status: newneedinfo

Can you please share this bug with FreeBSD Java maintainers? This is unlikely a JOSM problem.

comment:2 Changed 3 weeks ago by Don-vip

Keywords: linux freebsd added

comment:3 Changed 3 weeks ago by Klumbumbus

Description: modified (diff)

comment:4 Changed 3 weeks ago by glebius

Yes, the regression happens with OpenJDK upgrade from 8.181 to 8.192.

comment:5 Changed 8 days ago by AMDmi3

Resolution: othersoftware
Status: needinfoclosed

It really was a FreeBSD-specific regression in OpenJDK, now fixed:

https://svnweb.freebsd.org/ports?view=revision&revision=492485

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain AMDmi3.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.