Modify

Opened 5 years ago

Closed 5 years ago

#10267 closed defect (fixed)

Non-functional decoding of JPEG imagery in Czech Republic

Reported by: chrabros Owned by: team
Priority: normal Milestone: 14.07
Component: Core imagery Version: latest
Keywords: JPEG decoding Cc:

Description (last modified by Don-vip)

Hi,
JOSM is not able to display WMS imagery of the Czech Republic since some time ago.
I am not sure since which JOSM version this is, maybe it was related to switch to newer Java.
It seems to affect only Windows version as Linux users do not have this isssue.

It seems that JOSM is not able to decode JPEG properly. When the WMS is switched to PNG it works (but the image is worse so it is not a real work around).

Internet browser is able to decode the WMS link without any problems.

Can you please look into it and fix it?

Here is the example WMS link and error message:
INFO: Grabbing WMS (attempt 4) http://geoportal.cuzk.cz/WMS_ORTOFOTO_PUB/service.svc/get?FORMAT=image/jpeg&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=GR_ORTFOTORGB&STYLES=&SRS=EPSG:4326&WIDTH=570&HEIGHT=520&BBOX=14.2942391,49.2568705,14.2960236,49.2579330

ERROR: javax.imageio.IIOException: Inconsistent metadata read from stream
javax.imageio.IIOException: Inconsistent metadata read from stream
        at com.sun.imageio.plugins.jpeg.JPEGMetadata.<init>(Unknown Source)
        at com.sun.imageio.plugins.jpeg.JPEGImageReader.getImageMetadata(Unknown Source)
        at org.openstreetmap.josm.tools.ImageProvider.getTransparentColor(ImageProvider.java:1266)
        at org.openstreetmap.josm.tools.ImageProvider.read(ImageProvider.java:1237)
        at org.openstreetmap.josm.tools.ImageProvider.read(ImageProvider.java:1132)
        at org.openstreetmap.josm.io.imagery.WMSGrabber.grab(WMSGrabber.java:181)
        at org.openstreetmap.josm.io.imagery.WMSGrabber.fetch(WMSGrabber.java:70)
        at org.openstreetmap.josm.io.imagery.Grabber.attempt(Grabber.java:66)
        at org.openstreetmap.josm.io.imagery.Grabber.run(Grabber.java:50)
        at java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by Don-vip

Description: modified (diff)
Milestone: 14.07

comment:2 Changed 5 years ago by Don-vip

In 7312/josm:

see #10267 - display HTML error page sent by WMS server when applicable

comment:3 Changed 5 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 7313/josm:

fix #10267 - WMS robustness against JPEG files with invalid metadata (according to Java at least)

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.

Add Comment


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

 
Note: See TracTickets for help on using tickets.