Modify

Opened 4 years ago

Closed 4 years ago

#19746 closed defect (irreproducible)

IAE: Width and height cannot be <= 0 at ImageWarp.warp

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone:
Component: Core imagery Version:
Keywords: template_report projection Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Tried to change from Mercator to UTM projection and crashed

What is the expected result?

Tried to change from Mercator projection to UTM

What happens instead?

JOSM crashed

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-07-30 12:44:04 +0200 (Thu, 30 Jul 2020)
Build-Date:2020-07-31 01:30:49
Revision:16812
Relative:URL: ^/trunk

Identification: JOSM/1.5 (16812 en_GB) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1903 (18362)
Memory Usage: 879 MB / 1820 MB (455 MB allocated, but free)
Java version: 1.8.0_261-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920x1080 (scaling 1.0x1.0)
Maximum Screen Size: 1920x1080
Best cursor sizes: 16x16 -> 32x32, 32x32 -> 32x32
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-2b831b30, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Djnlpx.splashport=63999, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe]
Dataset consistency test: No problems found

Plugins:
+ FastDraw (35499)
+ Mapillary (1.5.24)
+ alignways (35474)
+ apache-commons (35524)
+ apache-http (35092)
+ geochat (35405)
+ imagery_offset_db (35405)
+ javafx-windows (35458)
+ jna (35092)
+ measurement (35405)
+ poly (35248)
+ turnrestrictions (35515)
+ wms-turbo-challenge2 (35248)

Last errors/warnings:
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-790) and height (-787) cannot be <= 0
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-790) and height (-787) cannot be <= 0
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-790) and height (-787) cannot be <= 0
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-790) and height (-786) cannot be <= 0
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-790) and height (-787) cannot be <= 0
- W: Too many errors. Dropping ReportedException [thread=Thread[WMS-downloader-48,5,javawsApplicationThreadGroup], exception=java.lang.IllegalArgumentException: Width (-790) and height (-787) cannot be <= 0, methodWarningFrom=BugReportExceptionHandler#handleException]
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-790) and height (-787) cannot be <= 0
- W: Too many errors. Dropping ReportedException [thread=Thread[WMS-downloader-49,5,javawsApplicationThreadGroup], exception=java.lang.IllegalArgumentException: Width (-790) and height (-787) cannot be <= 0, methodWarningFrom=BugReportExceptionHandler#handleException]
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-789) and height (-786) cannot be <= 0
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Width (-791) and height (-787) cannot be <= 0


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: WMS-downloader-8 (185)
java.lang.IllegalArgumentException: Width (-393) and height (-392) cannot be <= 0
	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
	at 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:171)
	at org.openstreetmap.josm.gui.layer.imagery.ReprojectionTile.setImage(ReprojectionTile.java:82)
	at org.openstreetmap.gui.jmapviewer.Tile.loadImage(Tile.java:247)
	at org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob.tryLoadTileImage(TMSCachedTileLoaderJob.java:297)
	at org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob.loadingFinished(TMSCachedTileLoaderJob.java:183)
	at org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob.finishLoading(JCSCachedTileLoaderJob.java:258)
	at org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob.run(JCSCachedTileLoaderJob.java:227)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (6)

comment:1 by simon04, 4 years ago

Owner: changed from team to anonymous
Status: newneedinfo

Which background image was active? In which region were you editing?

Trying to reproduce close to Passau, Germany using Bavaria (80 cm) does not trigger this bug.

in reply to:  1 ; comment:2 by Klumbumbus, 4 years ago

Replying to simon04:

Which background image was active? In which region were you editing?

It might be a good idea to add these information to the status report?

  • all layers / active layers
  • mapview centerpoint + zoom level or bbox

in reply to:  2 comment:3 by stoecker, 4 years ago

Replying to Klumbumbus:

Replying to simon04:

Which background image was active? In which region were you editing?

It might be a good idea to add these information to the status report?

  • all layers / active layers
  • mapview centerpoint + zoom level or bbox

No. That's information which usually is not necessary and there isn't any indication that it must be valid at the time of status report.

comment:4 by Don-vip, 4 years ago

Component: CoreCore imagery
Description: modified (diff)
Keywords: projection added
Summary: Tried to change from Mercator to UTM projection and crashedIAE: Width and height cannot be <= 0 at ImageWarp.warp

comment:5 by Don-vip, 4 years ago

In 17165/josm:

see #17387 - see #19746 - add more debug information in case of reprojection error

comment:6 by Don-vip, 4 years ago

Resolution: irreproducible
Status: needinfoclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.