Opened 4 years ago

Last modified 21 months ago

#17480 new defect

"java.lang.IllegalArgumentException: Invalid scanline stride" in PicLayer when loading a large image

Reported by: richlv Owned by: rebsc
Priority: major Milestone:
Component: Plugin piclayer Version: tested
Keywords: exception javabug Cc:


Attempting to load a 223MB PNG image:

Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-03-03 00:16:03 +0100 (Sun, 03 Mar 2019)
Build-Date:2019-03-02 23:16:53
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14824 en) Linux openSUSE Tumbleweed
Memory Usage: 447 MB / 910 MB (98 MB allocated, but free)
Java version: 1.8.0_191-b12, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1680x1050
Maximum Screen Size: 1680x1050
Java package: java-1_8_0-openjdk:x86_64-
VM arguments: []
Dataset consistency test: No problems found

+ AddrInterpolation (34867)
+ ColumbusCSV (34867)
+ DxfImport (1013)
+ HouseNumberTaggingTool (34867)
+ InfoMode (34755)
+ Mapillary (1.5.18)
+ PicLayer (34867)
+ apache-commons (34506)
+ apache-http (34632)
+ ejml (34389)
+ geotools (34513)
+ graphview (34867)
+ jaxb (34678)
+ jna (34867)
+ jts (34524)
+ log4j (34527)
+ measurement (34867)
+ opendata (34911)
+ pbf (34867)
+ photo_geotagging (34867)
+ photoadjust (34867)
+ reverter (34867)
+ terracer (34867)
+ utilsplugin2 (34915)

Map paint styles:

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Invalid scanline stride

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: AWT-EventQueue-0 (14) of main
java.lang.IllegalArgumentException: Invalid scanline stride
	at java.awt.image.ComponentSampleModel.getBufferSize(
	at java.awt.image.ComponentSampleModel.verify(
	at java.awt.image.ComponentSampleModel.<init>(
	at java.awt.image.PixelInterleavedSampleModel.<init>(
	at java.awt.image.PixelInterleavedSampleModel.createCompatibleSampleModel(
	at javax.imageio.ImageTypeSpecifier.getSampleModel(
	at javax.imageio.ImageTypeSpecifier.createBufferedImage(
	at javax.imageio.ImageReader.getDestination(
	at com.sun.imageio.plugins.png.PNGImageReader.readImage(
	at org.openstreetmap.josm.plugins.piclayer.layer.PicLayerFromFile.createImage(
	at org.openstreetmap.josm.plugins.piclayer.layer.PicLayerAbstract.initialize(
	at org.openstreetmap.josm.plugins.piclayer.actions.newlayer.NewLayerFromFileAction.addNewLayerFromFile(
	at org.openstreetmap.josm.plugins.piclayer.actions.newlayer.NewLayerFromFileAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.DefaultButtonModel.setPressed(
	at javax.swing.AbstractButton.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Attachments (0)

Change History (8)

comment:1 Changed 4 years ago by richlv

There were similar reports earlier:

  • #12544 - while it talks about splitting the image, that's only a workaround.
  • #15071 - talks about GeoTIFF being unsupported, not directly related. talks about providing a better error message (in another project) instead of exception-ing.

Last edited 4 years ago by richlv (previous) (diff)

comment:2 Changed 4 years ago by Don-vip

Keywords: javabug added

comment:3 Changed 4 years ago by Don-vip

Owner: changed from Larry0ua to rebsc

comment:4 Changed 4 years ago by Don-vip

Ticket #17963 has been marked as a duplicate of this ticket.

comment:5 Changed 3 years ago by skyper

Ticket #19365 has been marked as a duplicate of this ticket.

comment:6 Changed 3 years ago by Don-vip

Ticket #20157 has been marked as a duplicate of this ticket.

comment:7 Changed 21 months ago by Don-vip

Ticket #20170 has been marked as a duplicate of this ticket.

comment:8 Changed 21 months ago by Don-vip

Priority: normalmajor

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain rebsc.
as The resolution will be set.
to The owner will be changed from rebsc to the specified user.
The owner will change to richlv
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from rebsc to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.