<br><br>On Tuesday, March 13, 2012, Tim-Hinnerk Heuer <<a href="mailto:th.heuer@gmail.com">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">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">http://www.thheuer.com</a><br>
<br><br>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?<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 : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>