﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22886	IAE in ImageWarp#warp during ESRI tile transform	anonymous	team	"==== What steps will reproduce the problem?
1. 
2. 
3. 

==== What is the expected result?

==== What happens instead?

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Revision:18700
Build-Date:2023-04-04 06:56:19

Identification: JOSM/1.5 (18700 it) Mac OS X 13.3.1
OS Build number: macOS 13.3.1 (22E261)
Memory Usage: 4096 MB / 4096 MB (2466 MB allocated, but free)
Java version: 17.0.6+10-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 2 2560×1440 (scaling 2.00×2.00)
Maximum Screen Size: 2560×1440
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: it_IT
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=18700, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=${HOME}/Desktop/Openstreetmap/josm-macosx/JOSM.app/Contents/MacOS/JOSM]
Dataset consistency test: No problems found

Plugins:
+ DirectDownload (36011)
+ ImportImagePlugin (36013)
+ apache-commons (36034)
+ editgpx (36054)
+ ejml (35924)
+ geotools (36068)
+ jackson (36034)
+ jaxb (35952)
+ jts (36004)
+ log4j (36034)

Tagging presets:
+ ${HOME}/Desktop/Openstreetmap/CAI Preset_X_OSM/cai_josm_preset-master/cai.xml
+ https://raw.githubusercontent.com/osmItalia/cai_josm_preset/master/cai.xml

Last errors/warnings:
- 00073.342 E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-1766434554) and height (1692266832) cannot be <= 0
- 00073.856 E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-1766434554) and height (1754146848) cannot be <= 0
- 00073.862 E: Handled by bug report queue: java.lang.OutOfMemoryError: Java heap space
- 00074.012 E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-1246574581) and height (417809938) cannot be <= 0
- 00074.013 E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-1246574581) and height (417809938) cannot be <= 0
- 00074.019 E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-1246574581) and height (417809938) cannot be <= 0
- 00074.226 E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-1246574581) and height (417809938) cannot be <= 0
- 00074.569 E: Handled by bug report queue: java.lang.OutOfMemoryError: Java heap space
- 00074.609 E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-1246574581) and height (1062710971) cannot be <= 0
- 00074.609 E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-1246574581) and height (1062710971) cannot be <= 0



=== REPORTED CRASH DATA ===
ReprojectionTile#transform:
 - targetDim: java.awt.Dimension[width=-1766434554,height=1630807758]
 - key: 7/69/43@Esri World Imagery (Clarity) Beta
 - projCurrent: WGS84 Geografico
 - projServer: WGS 84 / Pseudo-Mercator
 - pbServer: ProjectionBounds[1565430.3392804079,6261721.357121639,1878516.4071364924,6574807.42497772]
 - pbTarget: ProjectionBounds[14.062499999999988,48.92249926375824,16.87500000000001,50.736455137010644]
 - pbTargetAligned: ProjectionBounds[14.062499996865045,48.92249926169774,16.875000002689426,50.73645513922596]
 - scale: 1.1123051559141641E-9

BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: TMS-downloader-22 (88)
java.lang.IllegalArgumentException: Width (-1766434554) and height (1630807758) cannot be <= 0
	at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
	at java.desktop/java.awt.image.BufferedImage.<init>(Unknown Source)
	at org.openstreetmap.josm.tools.ImageWarp.warp(ImageWarp.java:153)
	at org.openstreetmap.josm.gui.layer.imagery.ReprojectionTile.transform(ReprojectionTile.java:194)
	at org.openstreetmap.josm.gui.layer.imagery.ReprojectionTile.setImage(ReprojectionTile.java:105)
	at org.openstreetmap.gui.jmapviewer.Tile.loadImage(Tile.java:247)
	at org.openstreetmap.josm.gui.layer.imagery.ReprojectionTile.loadImage(ReprojectionTile.java:96)
	at org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob.tryLoadTileImage(TMSCachedTileLoaderJob.java:328)
	at org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob.loadingFinished(TMSCachedTileLoaderJob.java:210)
	at org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob.finishLoading(JCSCachedTileLoaderJob.java:265)
	at org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob.run(JCSCachedTileLoaderJob.java:234)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
}}}
"	defect	new	normal		Core			template_report	
