Modify

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#23181 closed defect (othersoftware)

.tiff import caused an exception

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report javabug Cc:

Description

What steps will reproduce the problem?

  1. Download an area of interest from sealevel from here: https://www.ncei.noaa.gov/maps/grid-extract/
  2. Open the .tiff file in JOSM
  3. BOOM, program dies

What is the expected result?

The file should be opened.

What happens instead?

I'm getting a dialogue for GPS correlation which is fine, but also an exception.

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-08-29 13:38:40 +0200 (Tue, 29 Aug 2023)
Revision:18822
Build-Date:2023-08-30 01:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18822 de) Linux Ubuntu 20.04.6 LTS
Memory Usage: 654 MB / 7930 MB (161 MB allocated, but free)
Java version: 11.0.20.1+1-post-Ubuntu-0ubuntu120.04, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 3840×2160 (scaling 1.00×1.00) :0.1 2560×1440 (scaling 1.00×1.00) :0.2 3840×2160 (scaling 1.00×1.00)
Maximum Screen Size: 3840×2160
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: de_DE.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: de_DE
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: ubuntu:GNOME
Java package: openjdk-11-jre:amd64-11.0.20.1+1-0ubuntu1~20.04
Java ATK Wrapper package: libatk-wrapper-java:all-0.37.1-1
libcommons-compress-java: libcommons-compress-java:-
libcommons-logging-java: libcommons-logging-java:-
fonts-noto: fonts-noto:all-20200323-1build1~ubuntu20.04.1
liboauth-signpost-java: liboauth-signpost-java:-

Plugins:
+ ElevationProfile (36126)
+ PicLayer (1.0.2)
+ print (36126)

Tagging presets:
+ ${HOME}/Dokumente/Work/BeIntelli/TP3/maps/josm_lanelet/laneletpresets.xml

Map paint styles:
+ ${HOME}/Dokumente/Work/BeIntelli/TP3/maps/josm_lanelet/lanelets.mapcss

Last errors/warnings:
- 00008.726 E: Fehler beim Laden des Bildes 'presets/vehicle/firebrigade.svg'
- 00008.727 W:  Emergency lane: Could not get presets icon presets/vehicle/firebrigade.svg
- 00008.732 E: Fehler beim Laden des Bildes 'road_border.png'
- 00008.733 W:  Road border: Could not get presets icon road_border.png
- 00008.733 E: Fehler beim Laden des Bildes '101.png'
- 00008.733 W:  Generic traffic sign: Could not get presets icon 101.png
- 00008.734 E: Fehler beim Laden des Bildes 'pf-g.png'
- 00008.734 W:  Arrow: Could not get presets icon pf-g.png
- 00103.237 E: Handled by bug report queue: java.lang.ArrayIndexOutOfBoundsException: Index -65469464 out of bounds for length 65536
- 00103.239 E: Handled by bug report queue: java.lang.ArrayIndexOutOfBoundsException: Index -65469464 out of bounds for length 65536



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (28) of main
java.lang.ArrayIndexOutOfBoundsException: Index -65469464 out of bounds for length 65536
	at java.desktop/java.awt.image.ComponentColorModel.getRGBComponent(ComponentColorModel.java:905)
	at java.desktop/java.awt.image.ComponentColorModel.getRed(ComponentColorModel.java:946)
	at java.desktop/java.awt.image.ComponentColorModel.getRGB(ComponentColorModel.java:1137)
	at java.desktop/sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(CustomComponent.java:145)
	at java.desktop/sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:564)
	at java.desktop/sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:545)
	at java.desktop/sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:189)
	at java.desktop/sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:204)
	at java.desktop/sun.java2d.SurfaceDataProxy.updateSurfaceData(SurfaceDataProxy.java:498)
	at java.desktop/sun.java2d.SurfaceDataProxy.replaceData(SurfaceDataProxy.java:455)
	at java.desktop/sun.java2d.SurfaceData.getSourceSurfaceData(SurfaceData.java:234)
	at java.desktop/sun.java2d.pipe.DrawImage.renderImageScale(DrawImage.java:635)
	at java.desktop/sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:730)
	at java.desktop/sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:1081)
	at java.desktop/sun.java2d.pipe.ValidatePipe.scaleImage(ValidatePipe.java:219)
	at java.desktop/sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3514)
	at java.desktop/sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3455)
	at org.openstreetmap.josm.gui.layer.geoimage.viewers.projections.Perspective.paintImage(Perspective.java:30)
	at org.openstreetmap.josm.gui.layer.geoimage.ImageDisplay.paintComponent(ImageDisplay.java:726)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1074)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
	at java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5255)
	at java.desktop/javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:246)
	at java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1323)
	at java.desktop/javax.swing.JComponent._paintImmediately(JComponent.java:5203)
	at java.desktop/javax.swing.JComponent.paintImmediately(JComponent.java:5013)
	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:865)
	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:848)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:848)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:823)
	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:772)
	at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1890)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Attachments (0)

Change History (3)

comment:1 by taylor.smock, 2 years ago

Keywords: javabug added

This looks like a javabug. We don't have any custom image parsing code. TBH, you probably want to use one of the plugins for importing a background geoimage like ImportImagePlugin or PicLayer.

comment:2 by taylor.smock, 2 years ago

Resolution: othersoftware
Status: newclosed

I've reported it to the JDK folks. I don't yet have a public ticket ID. The internal ticket id is 9075988.

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.