Modify

Opened 5 years ago

Closed 5 years ago

#17963 closed defect (duplicate)

(large/partly transparent) image causes piclayer to throw an exception

Reported by: Pauluzz Owned by: tstelmach
Priority: normal Milestone:
Component: Plugin piclayer Version: latest
Keywords: template_report javabug Cc: tstelmach

Description

What steps will reproduce the problem?

  1. Install piclayer plugin
  2. Open new picture layer from file (Imagery -> "")
  3. Try extra large png image (attached)

What is the expected result?

The piclayer is imported in JOSM

What happens instead?

JOSM / piclayer plugin throw an exception

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-07-10 00:52:47 +0200 (Wed, 10 Jul 2019)
Build-Date:2019-07-10 01:30:51
Revision:15238
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15238 en_GB) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1809 (17763)
Memory Usage: 848 MB / 1820 MB (328 MB allocated, but free)
Java version: 1.8.0_211-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080, \Display1 1920x1200
Maximum Screen Size: 1920x1200
Dataset consistency test: No problems found

Plugins:
+ AddrInterpolation (34908)
+ FixAddresses (34977)
+ HouseNumberTaggingTool (34977)
+ MicrosoftStreetside (34977)
+ OpeningHoursEditor (34977)
+ PicLayer (35030)
+ apache-commons (34908)
+ apache-http (34908)
+ buildings_tools (34982)
+ ejml (35049)
+ fieldpapers (v0.5.0)
+ geotools (34908)
+ imagery_offset_db (34908)
+ importvec (34908)
+ javafx-windows
+ jaxb (35014)
+ jna (34908)
+ jts (35064)
+ log4j (34908)
+ measurement (35051)
+ opendata (34997)
+ pdfimport (34977)
+ tageditor (34977)
+ terracer (34977)
+ turnrestrictions (34977)
+ utilsplugin2 (34977)
+ wikipedia (v1.1.1)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/BicycleJunction&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/PublicTransportOneClick&zip=1

Last errors/warnings:
- W: Plugin javafx-windows requires Java version 10. The current Java version is 8. You have to update Java in order to use this plugin.
- E: unable to find dependency javafx for plugin MicrosoftStreetside
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Invalid scanline stride
- W: Warning - <html>JOSM could not find information about the following plug-ins:<ul><li>apache-commons</li><li>HouseNumberTaggingTool</li><li>geotools</li><li>tageditor</li><li>opendata</li><li>javafx-windows</li><li>FixAddresses</li><li>measurement</li><li>jaxb</li><li>utilsplugin2</li><li>pdfimport</li><li>AddrInterpolation</li><li>terracer</li><li>turnrestrictions</li><li>wikipedia</li><li>jna</li><li>importvec</li><li>MicrosoftStreetside</li><li>PicLayer</li><li>log4j</li><li>imagery_offset_db</li><li>jts</li><li>ejml</li><li>fieldpapers</li><li>OpeningHoursEditor</li><li>buildings_tools</li><li>apache-http</li></ul>The plug-ins are not going to be loaded.</html>
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Invalid scanline stride
- W: Warning - <html>JOSM could not find information about the following plug-ins:<ul><li>apache-commons</li><li>HouseNumberTaggingTool</li><li>geotools</li><li>tageditor</li><li>opendata</li><li>javafx-windows</li><li>FixAddresses</li><li>measurement</li><li>jaxb</li><li>utilsplugin2</li><li>pdfimport</li><li>AddrInterpolation</li><li>terracer</li><li>turnrestrictions</li><li>wikipedia</li><li>jna</li><li>importvec</li><li>MicrosoftStreetside</li><li>PicLayer</li><li>log4j</li><li>imagery_offset_db</li><li>jts</li><li>ejml</li><li>fieldpapers</li><li>OpeningHoursEditor</li><li>buildings_tools</li><li>apache-http</li></ul>The plug-ins are not going to be loaded.</html>


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (18) of main
java.lang.IllegalArgumentException: Invalid scanline stride
	at java.awt.image.ComponentSampleModel.getBufferSize(Unknown Source)
	at java.awt.image.ComponentSampleModel.verify(Unknown Source)
	at java.awt.image.ComponentSampleModel.<init>(Unknown Source)
	at java.awt.image.PixelInterleavedSampleModel.<init>(Unknown Source)
	at java.awt.image.PixelInterleavedSampleModel.createCompatibleSampleModel(Unknown Source)
	at javax.imageio.ImageTypeSpecifier.getSampleModel(Unknown Source)
	at javax.imageio.ImageTypeSpecifier.createBufferedImage(Unknown Source)
	at javax.imageio.ImageReader.getDestination(Unknown Source)
	at com.sun.imageio.plugins.png.PNGImageReader.readImage(Unknown Source)
	at com.sun.imageio.plugins.png.PNGImageReader.read(Unknown Source)
	at javax.imageio.ImageIO.read(Unknown Source)
	at javax.imageio.ImageIO.read(Unknown Source)
	at org.openstreetmap.josm.plugins.piclayer.layer.PicLayerFromFile.createImage(PicLayerFromFile.java:86)
	at org.openstreetmap.josm.plugins.piclayer.layer.PicLayerAbstract.initialize(PicLayerAbstract.java:189)
	at org.openstreetmap.josm.plugins.piclayer.actions.newlayer.NewLayerFromFileAction.addNewLayerFromFile(NewLayerFromFileAction.java:134)
	at org.openstreetmap.josm.plugins.piclayer.actions.newlayer.NewLayerFromFileAction.actionPerformed(NewLayerFromFileAction.java:125)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.AbstractButton.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (1)

KaartViewerPDF4.png (2.9 MB ) - added by Pauluzz 5 years ago.
png file that makes piclayer throw an exception

Change History (3)

by Pauluzz, 5 years ago

Attachment: KaartViewerPDF4.png added

png file that makes piclayer throw an exception

comment:1 by Don-vip, 5 years ago

Keywords: javabug added

comment:2 by Don-vip, 5 years ago

Resolution: duplicate
Status: assignedclosed

Closed as duplicate of #17480.

Modify Ticket

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