[Geoserver-users] WMS image broken in IE

Hello

I have a GeoServer instance acting as a WMS. About one time out of two
IE (7&8) fails to display the image, the problem occurs in OpenLayers
(pink image) and outside OpenLayers, i.e. by adding the WMS URL in
IE's address bar. I use ieHTTPHeaders in IE to watch the HTTP requests
and I always get "200 OK", even when IE fails to display the image.

If you want to reproduce the problem, try loading the following URL in
IE, and reload the page until it fails. In my case I get about one
failure out of two page reloads.

<http://drebretagne-geobretagne.demo-camptocamp.com/geoserver/wms?SERVICE=WMS&LAYERS=topp%3Acommunes_geofla&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2154&BBOX=-97099.811756103,6680300.064638,600099.8117561,6919699.935362&WIDTH=1245&HEIGHT=427&gt;

Has anyone else got hit by this?

Thanks,

--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine@anonymised.com
http://www.camptocamp.com

Eric Lemoine ha scritto:

Hello

I have a GeoServer instance acting as a WMS. About one time out of two
IE (7&8) fails to display the image, the problem occurs in OpenLayers
(pink image) and outside OpenLayers, i.e. by adding the WMS URL in
IE's address bar. I use ieHTTPHeaders in IE to watch the HTTP requests
and I always get "200 OK", even when IE fails to display the image.

If you want to reproduce the problem, try loading the following URL in
IE, and reload the page until it fails. In my case I get about one
failure out of two page reloads.

<http://drebretagne-geobretagne.demo-camptocamp.com/geoserver/wms?SERVICE=WMS&LAYERS=topp%3Acommunes_geofla&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2154&BBOX=-97099.811756103,6680300.064638,600099.8117561,6919699.935362&WIDTH=1245&HEIGHT=427&gt;

I've tried with the following combinations:
- xp sp3, ie6
- xp sp3, ie7
They are two separate VirtualBox machines. Tried 20-30 times
in a row with each one, never got back a broken image.
Maybe it takes Vista?

I also tried running:

curl -o "c2c`date +%F_%T`.png" "http://drebretagne-geobretagne.demo-camptocamp.com/geoserver/wms?SERVICE=WMS&LAYERS=topp%3Acommunes_geofla&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2154&BBOX=-97099.811756103,6680300.064638,600099.8117561,6919699.935362&WIDTH=1245&HEIGHT=427&quot;

a number of times on my linux box to see if the file returned
was any different but all seemed perfectly equal:

aaime@anonymised.com:/tmp/c2c$ ls -l
totale 3472
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:23.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:27.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:28.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:29.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:30.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:31.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:32.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:33.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:34.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:36.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:37.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:38.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:39.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:41.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:42.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:43.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:44.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:45.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:46.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:47.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:48.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:49.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:50.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:51.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:52.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:53.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:54.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:55.png

Do you get anything in the GeoServer own logs ($DATA_DIR/logs/geoserver.log) in correspondance of the
corrupted images?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

On Wed, Sep 9, 2009 at 2:51 PM, Andrea Aime<aaime@anonymised.com> wrote:

Eric Lemoine ha scritto:

Hello

I have a GeoServer instance acting as a WMS. About one time out of two
IE (7&8) fails to display the image, the problem occurs in OpenLayers
(pink image) and outside OpenLayers, i.e. by adding the WMS URL in
IE's address bar. I use ieHTTPHeaders in IE to watch the HTTP requests
and I always get "200 OK", even when IE fails to display the image.

If you want to reproduce the problem, try loading the following URL in
IE, and reload the page until it fails. In my case I get about one
failure out of two page reloads.

<http://drebretagne-geobretagne.demo-camptocamp.com/geoserver/wms?SERVICE=WMS&LAYERS=topp%3Acommunes_geofla&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2154&BBOX=-97099.811756103,6680300.064638,600099.8117561,6919699.935362&WIDTH=1245&HEIGHT=427&gt;

I've tried with the following combinations:
- xp sp3, ie6
- xp sp3, ie7
They are two separate VirtualBox machines. Tried 20-30 times
in a row with each one, never got back a broken image.

Thanks for trying Andrea.

Maybe it takes Vista?

XP here too. I just tried again and got a broken image at the third
attempt. Dunno why it works for you at this point.

I also tried running:

curl -o "c2c`date +%F_%T`.png"
"http://drebretagne-geobretagne.demo-camptocamp.com/geoserver/wms?SERVICE=WMS&LAYERS=topp%3Acommunes_geofla&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2154&BBOX=-97099.811756103,6680300.064638,600099.8117561,6919699.935362&WIDTH=1245&HEIGHT=427&quot;

a number of times on my linux box to see if the file returned
was any different but all seemed perfectly equal:

aaime@anonymised.com:/tmp/c2c$ ls -l
totale 3472
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:23.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:27.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:28.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:29.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:30.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:31.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:32.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:33.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:34.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:36.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:37.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:38.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:39.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:41.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:42.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:43.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:44.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:45.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:46.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:47.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:48.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:49.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:50.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:51.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:52.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:53.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:54.png
-rw-r--r-- 1 aaime aaime 124518 2009-09-09 14:49 c2c2009-09-09_14:49:55.png

Do you get anything in the GeoServer own logs ($DATA_DIR/logs/geoserver.log)
in correspondance of the
corrupted images?

nothing in the logs, I guess it's a IE thing since the problem never
occurs in FF.

Thanks,

--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine@anonymised.com
http://www.camptocamp.com

I don't think this has much to do with GeoServer. Seems like there are a few issues that can cause PNG problems:

http://www.vistaheads.com/forums/microsoft-public-internetexplorer-general/339961-re-ie7-png-images-do-not-display.html#post1184907

-Arne

Eric Lemoine wrote:

Hello

I have a GeoServer instance acting as a WMS. About one time out of two
IE (7&8) fails to display the image, the problem occurs in OpenLayers
(pink image) and outside OpenLayers, i.e. by adding the WMS URL in
IE's address bar. I use ieHTTPHeaders in IE to watch the HTTP requests
and I always get "200 OK", even when IE fails to display the image.

If you want to reproduce the problem, try loading the following URL in
IE, and reload the page until it fails. In my case I get about one
failure out of two page reloads.

<http://drebretagne-geobretagne.demo-camptocamp.com/geoserver/wms?SERVICE=WMS&LAYERS=topp%3Acommunes_geofla&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2154&BBOX=-97099.811756103,6680300.064638,600099.8117561,6919699.935362&WIDTH=1245&HEIGHT=427&gt;

Has anyone else got hit by this?

Thanks,

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

On Thu, Sep 10, 2009 at 3:33 PM, Arne Kepp <ak@anonymised.com> wrote:

I don't think this has much to do with GeoServer. Seems like there are a few
issues that can cause PNG problems:

Yeah, i didn't mean to say it had to do with GeoServer, I just wanted
to know if others on the list experienced this.

http://www.vistaheads.com/forums/microsoft-public-internetexplorer-general/339961-re-ie7-png-images-do-not-display.html#post1184907

Thanks for the link. This is helping.

--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine@anonymised.com
http://www.camptocamp.com