ImageGen intermittently not displaying images - a new caching bug in 2.2.1?
Hi,
This is a cryptic one, so I'll try to provide as much info as possible
I'm using the latest 2.2.1.X version of ImageGen.
On our site, we have 2 images being sourced from img.youtube.com. Both images have different resize/tweak requirements. Intermittently, one of the images does not display (could be either one). After a fair bit of inspection using fiddler2, I found out that when the image doesn't load, the response from imagagen.ashx is:
The node to be removed is not a child of this node.
-------------------------
If I then go and look at the index.xml, the XML is not valid xml - it seems to have a chunk missing. I can post an example corrupt file for you to see if you want.
I've managed to create a cut-down HTML page that shows this error in action. Its a very simple HTML page with 2 of the same images in, with different sizes. In say 20 refreshes, you should find at least a couple of occurences of the image being missing. This test HTML page was placed at the root of our umbraco site to test, so you'll need to add it to an umbraco site....
<html class="no-js" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content= "HTML Tidy for Windows (vers 14 February 2006), see www.w3.org" /> <title>Test</title> </head> <body id="homepage"> <div id="container"> <div class="fl_l ml_80 box_300 mt_40 listings clear_l"> <h2>Most popular</h2> <ul class="listing1"> <li> <div class="image"><a href= "/articles/northern-quarter-tour.aspx"><img src= "/umbraco/ImageGen.ashx?&image=http://img.youtube.com/vi/RSZ6x559PmM/hqdefault.jpg&align=center&valign=center&AltImage=/assets/images/discover/imagenotavailable.jpg&width=140&height=97&crop=resize" /></a></div> <div class="text"> <h4><a href="#">A Tour of the Northern Quarter</a></h4> </div> </li> </ul> <div class="clear">Â </div> </div> <div class="fl_l ml_120 box_380 mt_30 colour_1 related"> <div class="image"><a href= "/articles/northern-quarter-tour.aspx"><img src= "/umbraco/ImageGen.ashx?&image=http://img.youtube.com/vi/RSZ6x559PmM/hqdefault.jpg&width=380&height=214&crop=resize&align=center&valign=center&AltImage=/assets/images/discover/imagenotavailable.jpg" /></a></div> <div class="text"> <h4><a href="#">A Tour of the Northern Quarter</a></h4> </div> </div> </div> </body> </html>
Thanks for the bug report when using remote images. This is not, as yet, and officially supported feature of ImageGen 2 but will be in ImageGen 3 so I thank you for the report. I'll check into it and let you know what I find.
ImageGen intermittently not displaying images - a new caching bug in 2.2.1?
Hi,
This is a cryptic one, so I'll try to provide as much info as possible
I'm using the latest 2.2.1.X version of ImageGen.
On our site, we have 2 images being sourced from img.youtube.com. Both images have different resize/tweak requirements. Intermittently, one of the images does not display (could be either one). After a fair bit of inspection using fiddler2, I found out that when the image doesn't load, the response from imagagen.ashx is:
-------------------------------
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 51
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Thu, 08 Apr 2010 10:30:24 GMT
The node to be removed is not a child of this node.
-------------------------
If I then go and look at the index.xml, the XML is not valid xml - it seems to have a chunk missing. I can post an example corrupt file for you to see if you want.
I've managed to create a cut-down HTML page that shows this error in action. Its a very simple HTML page with 2 of the same images in, with different sizes. In say 20 refreshes, you should find at least a couple of occurences of the image being missing. This test HTML page was placed at the root of our umbraco site to test, so you'll need to add it to an umbraco site....
<html class="no-js" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for Windows (vers 14 February 2006), see www.w3.org" />
<title>Test</title>
</head>
<body id="homepage">
<div id="container">
<div class="fl_l ml_80 box_300 mt_40 listings clear_l">
<h2>Most popular</h2>
<ul class="listing1">
<li>
<div class="image"><a href=
"/articles/northern-quarter-tour.aspx"><img src=
"/umbraco/ImageGen.ashx?&image=http://img.youtube.com/vi/RSZ6x559PmM/hqdefault.jpg&align=center&valign=center&AltImage=/assets/images/discover/imagenotavailable.jpg&width=140&height=97&crop=resize" /></a></div>
<div class="text">
<h4><a href="#">A Tour of the Northern Quarter</a></h4>
</div>
</li>
</ul>
<div class="clear">Â </div>
</div>
<div class="fl_l ml_120 box_380 mt_30 colour_1 related">
<div class="image"><a href=
"/articles/northern-quarter-tour.aspx"><img src=
"/umbraco/ImageGen.ashx?&image=http://img.youtube.com/vi/RSZ6x559PmM/hqdefault.jpg&width=380&height=214&crop=resize&align=center&valign=center&AltImage=/assets/images/discover/imagenotavailable.jpg" /></a></div>
<div class="text">
<h4><a href="#">A Tour of the Northern Quarter</a></h4>
</div>
</div>
</div>
</body>
</html>
Any update on this? I'm pretty certain this is a valid live bug in imagegen.....
Thanks for the bug report when using remote images. This is not, as yet, and officially supported feature of ImageGen 2 but will be in ImageGen 3 so I thank you for the report. I'll check into it and let you know what I find.
cheers,
doug.
Ok, well thanks for the update. Keen to know what you find (as well as any workarounds for now).
Matt
is working on a reply...