Hi List,<div><br></div><div>Intro: I&#39;m Tim-Hinnerk Heuer, a web developer at Landcare Research New Zealand. I&#39;ve been to the last FOSS4G in Denver and I&#39;m a committer on MapFish Print, but mainly a JavaScript-Front-End-Developer. I&#39;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&#39;t made a pull request yet, because it might not be stable yet...</div>
<div><br></div><div>The real reason for my post is (hope this is the right place to post this):</div><div><br></div><div>I&#39;ve come across an error/exception in OpenLayers, that seems to be pretty new (using the latest git master version):</div>
<div><br></div><div>In Chrome:</div><div>Uncaught Error: NOT_FOUND_ERR: DOM Exception 8</div><div>In Firefox:</div><div><span class="objectBox objectBox-errorMessage hasBreakSwitch "><span class="errorMessage ">Node was not found</span></span><br>
</div><div><span class="objectBox objectBox-errorMessage hasBreakSwitch "><span class="errorMessage ">Around line 26075 (in my own built version).</span></span></div><div><span class="objectBox objectBox-errorMessage hasBreakSwitch "><span class="errorMessage ">I guess line 702 in Layer/Grid.js in the latest build</span></span></div>
<div><span class="objectBox objectBox-errorMessage hasBreakSwitch "><span class="errorMessage "><br></span></span></div><div><span class="objectBox objectBox-errorMessage hasBreakSwitch "><span class="errorMessage ">Code around it:</span></span></div>
<div><span class="objectBox objectBox-errorMessage hasBreakSwitch "><span class="errorMessage "><div>    /**</div><div>     * Method: removeBackBuffer</div><div>     * Remove back buffer from DOM.</div><div>     */</div><div>
    removeBackBuffer: function() {</div><div>        if(this.backBuffer) {</div><div>            this.div.removeChild(this.backBuffer); // THIS IS THE LINE</div><div>            this.backBuffer = null;</div><div>            this.backBufferResolution = null;</div>
<div>            if(this.backBufferTimerId !== null) {</div><div>                window.clearTimeout(this.backBufferTimerId);</div><div>                this.backBufferTimerId = null;</div><div>            }</div><div>        }</div>
<div>    },</div><div><br></div><div>Part of the stack trace is:</div><div><br></div><div>OpenLayers.Layer.Grid.OpenLayers.Class.removeBackBuffer</div><div>OpenLayers.Layer.Grid.OpenLayers.Class.applyBackBuffer<br></div><div>
OpenLayers.Layer.Grid.OpenLayers.Class.moveTo<br></div><div>OpenLayers.Map.OpenLayers.Class.moveTo<br></div><div>OpenLayers.Map.OpenLayers.Class.setCenter<br></div><div>OpenLayers.Control.OpenLayers.Class.wheelChange<br></div>
<div>...</div><div><br></div><div>It happens when I zoom about in our map or when I open the Print Window, which has another map in it. It&#39;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.</div>
<div><br></div><div>This problem only got introduced recently but I don&#39;t know through which change. I suspect it has something to do with how I initialize the print window. It&#39;s using GeoExt&#39;s SimplePrint class and quite a bit of custom code. (On a side note the print window has been in the app for ages.)</div>
<div><br></div><div>It is also only happening when I quickly zoom about and then open the print map, not when I wait for everything to load.</div><div><br></div><div>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.</div>
<div><br></div><div>Please help if you can, this bug has been annoying me for quite some time now already.</div><div><br></div><div>Thanks,</div><div>Tim</div><div><br></div></span></span></div><div>Twitter: @timhheuer<br>
<div>Blog: <a href="http://www.thheuer.com/" target="_blank">http://www.thheuer.com</a></div><br>
</div>