Thanks for the quick response, Eric.<div><br></div><div>Will try to find an example or construct a simple case if I cannot.</div><div><br><div class="gmail_quote">On Wed, Mar 14, 2012 at 11:11 AM, Eric Lemoine <span dir="ltr"><<a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br><br>On Tuesday, March 13, 2012, Tim-Hinnerk Heuer <<a href="mailto:th.heuer@gmail.com" target="_blank">th.heuer@gmail.com</a>> wrote:<br>
> Hi List,<br>> Intro: I'm Tim-Hinnerk Heuer, a web developer at Landcare Research New Zealand. I've been to the last FOSS4G in Denver and I'm a committer on MapFish Print, but mainly a JavaScript-Front-End-Developer. I've learned a lot about JavaScript in the past years and even developed an OpenLayers extension to OpenLayers.Layer.WMS called OpenLayers.Layer.VideoWMS. You can find that at my GitHub @ <a href="http://github.com/geekdenz/openlayers" target="_blank">http://github.com/geekdenz/openlayers</a> . Haven't made a pull request yet, because it might not be stable yet...<br>
> The real reason for my post is (hope this is the right place to post this):<br>> I've come across an error/exception in OpenLayers, that seems to be pretty new (using the latest git master version):<br>> In Chrome:<br>
> Uncaught Error: NOT_FOUND_ERR: DOM Exception 8<br>> In Firefox:<br>> Node was not found<br>> Around line 26075 (in my own built version).<br>> I guess line 702 in Layer/Grid.js in the latest build<br>> Code around it:<br>
> /**<br>> * Method: removeBackBuffer<br>> * Remove back buffer from DOM.<br>> */<br>> removeBackBuffer: function() {<br>> if(this.backBuffer) {<br>> this.div.removeChild(this.backBuffer); // THIS IS THE LINE<br>
> this.backBuffer = null;<br>> this.backBufferResolution = null;<br>> if(this.backBufferTimerId !== null) {<br>> window.clearTimeout(this.backBufferTimerId);<br>
> this.backBufferTimerId = null;<br>> }<br>> }<br>> },<br>> Part of the stack trace is:<br>> OpenLayers.Layer.Grid.OpenLayers.Class.removeBackBuffer<br>> OpenLayers.Layer.Grid.OpenLayers.Class.applyBackBuffer<br>
> OpenLayers.Layer.Grid.OpenLayers.Class.moveTo<br>> OpenLayers.Map.OpenLayers.Class.moveTo<br>> OpenLayers.Map.OpenLayers.Class.setCenter<br>> OpenLayers.Control.OpenLayers.Class.wheelChange<br>> ...<br>> It happens when I zoom about in our map or when I open the Print Window, which has another map in it. It's only really a problem in the print window, because the whole map breaks. In the normal map it is not a problem so much, because you only occasionally see that error in the developer tools or Firebug.<br>
> This problem only got introduced recently but I don't know through which change. I suspect it has something to do with how I initialize the print window. It's using GeoExt's SimplePrint class and quite a bit of custom code. (On a side note the print window has been in the app for ages.)<br>
> It is also only happening when I quickly zoom about and then open the print map, not when I wait for everything to load.<br>> I suspect it has something to do with the fact that the print window has an extra vector layer with a rectangle of where the to be printed map is and that it gets set as the base layer. However, I tried explicitly removing it and adding it later and also tried to do a map.setBaseLayer(myBaseLayer) to no avail. In fact that line throws the same error.<br>
> Please help if you can, this bug has been annoying me for quite some time now already.<br>> Thanks,<br>> Tim<br>> Twitter: @timhheuer<br>> Blog: <a href="http://www.thheuer.com" target="_blank">http://www.thheuer.com</a><br>
<br><br></div></div>Hi Tim<br><br>This may be a bug in the new backbuffer code. To debug this we'd need a simple example (w/ no print window) that exhibits the bug. Have you tried reproducing the issue with one of the OpenLayers example?<span class="HOEnZb"><font color="#888888"><br>
<br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : <a href="tel:00%2033%204%2079%2044%2044%2096" value="+33479444496" target="_blank">00 33 4 79 44 44 96</a><br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br><br>
</font></span></blockquote></div><br></div>