#18184 closed defect (duplicate)

Custom imagery in JOSM does not display above zoom 22 and can crash with "a unexpected exception occurred"

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Core imagery Version:
Keywords: template_report tms zoom Cc:

Description (last modified by Don-vip)

(see for info)

What steps will reproduce the problem?

  1. In imagery preferences, add "tms[24]:{zoom}/{x}/{y}.png"
  2. Use that imagery layer, and zoom in to levels 22, 23 and 24.

What is the expected result?

Tiles returned at that zoom level. will return tiles up to zoom 24.
I control that server, and I'd also expect to see the requests from JOSM for levels 23 and 24.

What happens instead?

instead of the expected request to the server such as this:

(my ip address) - - [29/Sep/2019:19:31:51 +0200] "GET /hot/21/1040840/672594.png HTTP/1.1" 200 433 "-" "JOSM/1.5 (15322 en_GB) Linux Ubuntu 18.04.3 LTS Java/11.0.4"

at zooms 23 and 24 this request is made. At zoom 23, JOSM didn't crash immediately afterwards. At zoom 24, it did (I clicked "report bug" to get here):

(my ip address) - - [29/Sep/2019:19:31:52 +0200] "GET /hot/24/0/0.png HTTP/1.1" 200 432 "-" "JOSM/1.5 (15322 en_GB) Linux Ubuntu 18.04.3 LTS Java/11.0.4"

Please provide any additional information below. Attach a screenshot if possible.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-08-26 08:55:27 +0200 (Mon, 26 Aug 2019)
Build-Date:2019-08-26 06:57:10

Identification: JOSM/1.5 (15322 en_GB) Linux Ubuntu 18.04.3 LTS
Memory Usage: 477 MB / 3946 MB (255 MB allocated, but free)
Java version: 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, Ubuntu, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080, :0.1 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-11-jre:amd64-11.0.4+11-1ubuntu2~18.04.3
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-20ubuntu0.1
libcommons-compress-java: libcommons-compress-java:all-1.18-1~18.04
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:all-20171026-2
liboauth-signpost-java: liboauth-signpost-java:-

+ reverter (35084)
+ undelete (34977)

Last errors/warnings:
- W: Update plug-ins - org.openstreetmap.josm.plugins.PluginHandler$UpdatePluginsMessagePanel[,0,0,0x0,invalid,layout=java.awt.GridBagLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
- W: Invalid plugin main version '0.1.0' in plugin microdata_scraping
- W: Invalid plugin main version '0.1.0' in plugin microdata_scraping
- W: No configuration settings found.  Using hardcoded default values for all pools.
- W: Region [WMS_BLOCK_v2] Resetting cache
- W: Region [WMTS_BLOCK_v2] Resetting cache
- E: Handled by bug report queue: tileXYToLatLon returned Coordinate[NaN, NaN]

 - tileSource: AJT
 - x: 0
 - y: 0
 - zoom: 24

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: AWT-EventQueue-0 (19) of main tileXYToLatLon returned Coordinate[NaN, NaN]
	at org.openstreetmap.josm.gui.layer.imagery.TileCoordinateConverter.getPixelForTile(
	at org.openstreetmap.josm.gui.layer.imagery.TileCoordinateConverter.getPixelForTile(
	at org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer.paintTileText(
	at org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer.drawInViewArea(
	at org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer.access$2600(
	at org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer$TileSourcePainter.doPaint(
	at org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer$TileSourcePainter.paint(
	at org.openstreetmap.josm.gui.MapView.paintLayer(
	at org.openstreetmap.josm.gui.MapView.drawMapContent(
	at org.openstreetmap.josm.gui.MapView.paint(
	at java.desktop/javax.swing.JComponent.paintChildren(
	at java.desktop/javax.swing.JComponent.paint(
	at java.desktop/javax.swing.JComponent.paintToOffscreen(
	at java.desktop/javax.swing.BufferStrategyPaintManager.paint(
	at java.desktop/javax.swing.RepaintManager.paint(
	at java.desktop/javax.swing.JComponent._paintImmediately(
	at java.desktop/javax.swing.JComponent.paintImmediately(
	at java.desktop/javax.swing.RepaintManager$
	at java.desktop/javax.swing.RepaintManager$
	at java.base/ Method)
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(
	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(
	at java.desktop/javax.swing.RepaintManager$
	at java.desktop/java.awt.event.InvocationEvent.dispatch(
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(
	at java.desktop/java.awt.EventQueue$
	at java.desktop/java.awt.EventQueue$
	at java.base/ Method)
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/java.awt.EventQueue.dispatchEvent(
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/

Attachments (0)

Change History (2)

comment:1 Changed 21 months ago by Don-vip

Component: CoreCore imagery
Description: modified (diff)
Keywords: tms zoom added

comment:2 Changed 21 months ago by Don-vip

Resolution: duplicate
Status: newclosed

Closed as duplicate of #18064.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
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.