Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#17387 closed defect (duplicate)

NegativeArraySizeException at ImageWarp.warp

Reported by: c933103@… Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report warp polar projection Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Use polar coordinate system
  2. Navigate around

What is the expected result?

Display a map in polar projection

What happens instead?

a black hole around center that cannot load tiles and high computational resource consumption that doesn't seems to yield proper result and crash

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: 2019-02-02 21:01:18 +0100 (Sat, 02 Feb 2019)
Build-Date:2019-02-04 21:50:11
Revision:14760
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14760 en) Windows 10 64-Bit
OS Build number: Windows 10 Home 1607 (14393)
Memory Usage: 1985 MB / 1985 MB (1409 MB allocated, but free)
Java version: 1.8.0_202-b08, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080

Plugins:
+ imagery_offset_db (34867)
+ turnrestrictions (34867)

Last errors/warnings:
- E: Handled by bug report queue: java.lang.NegativeArraySizeException
- E: Handled by bug report queue: java.lang.OutOfMemoryError: Java heap space
- E: Handled by bug report queue: java.lang.OutOfMemoryError: Java heap space
- E: Handled by bug report queue: java.lang.OutOfMemoryError: Java heap space
- E: Handled by bug report queue: java.lang.OutOfMemoryError: Java heap space
- W: Too many errors. Dropping ReportedException [thread=Thread[TMS-downloader-2,5,main], exception=java.lang.OutOfMemoryError: Java heap space, methodWarningFrom=BugReportExceptionHandler#handleException]
- E: Handled by bug report queue: java.lang.OutOfMemoryError: Java heap space
- W: Too many errors. Dropping ReportedException [thread=Thread[TMS-downloader-20,5,main], exception=java.lang.OutOfMemoryError: Java heap space, methodWarningFrom=BugReportExceptionHandler#handleException]
- E: Handled by bug report queue: java.lang.OutOfMemoryError: Java heap space
- W: Too many errors. Dropping ReportedException [thread=Thread[TMS-downloader-15,5,main], exception=java.lang.OutOfMemoryError: Java heap space, methodWarningFrom=BugReportExceptionHandler#handleException]


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: TMS-downloader-9 (59)
java.lang.NegativeArraySizeException
	at java.awt.image.DataBufferInt.<init>(Unknown Source)
	at java.awt.image.Raster.createPackedRaster(Unknown Source)
	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:152)
	at org.openstreetmap.josm.gui.layer.imagery.ReprojectionTile.transform(ReprojectionTile.java:168)
	at org.openstreetmap.josm.gui.layer.imagery.ReprojectionTile.setImage(ReprojectionTile.java:81)
	at org.openstreetmap.gui.jmapviewer.Tile.loadImage(Tile.java:247)
	at org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob.tryLoadTileImage(TMSCachedTileLoaderJob.java:300)
	at org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob.loadingFinished(TMSCachedTileLoaderJob.java:189)
	at org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob.finishLoading(JCSCachedTileLoaderJob.java:265)
	at org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob.run(JCSCachedTileLoaderJob.java:232)
	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 (1)

zRXkf82 - Imgur.png (100.5 KB ) - added by Don-vip 6 years ago.

Download all attachments as: .zip

Change History (8)

by Don-vip, 6 years ago

Attachment: zRXkf82 - Imgur.png added

comment:1 by Don-vip, 6 years ago

Description: modified (diff)

comment:2 by Don-vip, 6 years ago

Keywords: warp polar projection added
Summary: Display error and unexpected exception when using polar coordonate systemNegativeArraySizeException at ImageWarp.warp

comment:3 by Don-vip, 6 years ago

looks very similar to javabug:4690476 reported in 2002 on Windows 98, still open...

comment:4 by Klumbumbus, 6 years ago

So there is still hope for a fix :)

comment:5 by Don-vip, 6 years ago

In 14816/josm:

see #17387 - add more details when NegativeArraySizeException occurs to be sure it's caused by https://bugs.openjdk.java.net/browse/JDK-4690476

comment:6 by Don-vip, 6 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #16082.
The exception is a side effect of #16082. As all the calculation is wrong we probably try to generate images very, very large, and this causes an integer overflow. To resolve this issue, #16082 must be addressed, but this is challenging.

comment:7 by Don-vip, 4 years ago

In 17165/josm:

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

Modify Ticket

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