<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Anything so that a developer can easily reproduce the error with a debug version of OpenLayers would help, ideally self-contained (so no GeoExt).<div><br></div><div>Is your site online?<br><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- <br>Bart van den Eijnden<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org</a><br>Expert service straight from the developers.</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br><div><div>On Jun 10, 2013, at 7:35 PM, <a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<br><font size="2" face="sans-serif">This problem is happening since we have
more than 450 wms layers. It is difficult to create a test case since we
are using a complex application built with extjs/geoext and OL. We are
using a geoext layertree, not a layer switcher.</font>
<br><font size="2" face="sans-serif">The crash happens in openlayers/Layer.js</font>
<br>
<br><font size="2" face="sans-serif">What would be a good test case? Should
I create just an OL map with 450 layers in the layerswitcher?</font>
<br><font size="2" face="sans-serif">thanks</font>
<br><font size="2" face="sans-serif">steve</font><p>
<br>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td width="40%"><font size="1" face="sans-serif"><b>Bart van den Eijnden <<a href="mailto:bartvde@opengeo.org">bartvde@opengeo.org</a>></b>
</font>
<p><font size="1" face="sans-serif">2013-06-10 02:42</font>
</p></td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">A</font></div>
</td><td><font size="1" face="sans-serif"><a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">cc</font></div>
</td><td><font size="1" face="sans-serif"><a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">Objet</font></div>
</td><td><font size="1" face="sans-serif">Re: [OpenLayers-Users] ol2.13 and old
ticket 3621 calculateResolutions</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table>
<br>
<br>
<br>
<br>
<br><font size="3">Steve,</font>
<br>
<br><font size="3">can you show us an example to reproduce this?</font>
<br>
<br><font size="3">Best regards,</font>
<br><font size="3">Bart</font>
<br>
<br><font size="3">-- <br>
Bart van den Eijnden<br>
OpenGeo - </font><a href="http://opengeo.org/"><font size="3" color="blue"><u>http://opengeo.org</u></font></a><font size="3"><br>
Expert service straight from the developers.</font>
<br>
<br>
<br>
<br><font size="3">On Jun 7, 2013, at 9:45 PM, </font><a href="mailto:Steve.Toutant@inspq.qc.ca"><font size="3" color="blue"><u>Steve.Toutant@inspq.qc.ca</u></font></a><font size="3">
wrote:</font>
<br>
<br><font size="2" face="sans-serif"><br>
Hi,</font><font size="3"> </font><font size="2" face="sans-serif"><br>
We have a problem with OL2.13 in Google Chrome only.</font><font size="3">
</font><font size="2" face="sans-serif"><br>
Here is the error message: Uncaught RangeError: Invalid array length <br>
Layer.js line 1050</font><font size="3"> <br>
</font><font size="2" face="sans-serif"><br>
It seems to be related to this issue </font><a href="http://trac.osgeo.org/openlayers/ticket/3621"><font size="2" color="blue" face="sans-serif"><u>http://trac.osgeo.org/openlayers/ticket/3621</u></font></a><font size="3">
<br>
</font><font size="2" face="sans-serif"><br>
it fails because numZoomLevels is NaN</font><font size="3"> </font><font size="2" face="sans-serif"><br>
But this code at line 1042 should manage that....</font><font size="3"> <br>
</font><font size="2" face="sans-serif"><br>
// are we able to calculate resolutions?</font><font size="3"> </font><font size="2" face="sans-serif"><br>
        if(typeof numZoomLevels !== "number"
|| numZoomLevels <= 0 ||   (typeof maxResolution !== "number"
&&     typeof minResolution !== "number"))
{</font><font size="3"> </font><font size="2" face="sans-serif"><br>
            return;</font><font size="3"> </font><font size="2" face="sans-serif"><br>
        }</font><font size="3"> <br>
<br>
</font><font size="2" face="sans-serif"><br>
I fix it adding isNaN(numZoomLevels)</font><font size="3"> </font><font size="2" face="sans-serif"><br>
// are we able to calculate resolutions?</font><font size="3"> </font><font size="2" face="sans-serif"><br>
        if(isNaN(numZoomLevels) || typeof numZoomLevels
!== "number" || numZoomLevels <= 0 ||</font><font size="3">
</font><font size="2" face="sans-serif"><br>
           (typeof maxResolution !== "number"
&&</font><font size="3"> </font><font size="2" face="sans-serif"><br>
                typeof minResolution
!== "number")) { <br>
            return;</font><font size="3"> </font><font size="2" face="sans-serif"><br>
        }</font><font size="3"> <br>
</font><font size="2" face="sans-serif"><br>
I went on github but could not find the issue.</font><font size="3"> </font><font size="2" face="sans-serif"><br>
So I submit here</font><font size="3"> </font><font size="2" face="sans-serif"><br>
Steve</font><font size="3">_______________________________________________<br>
Users mailing list</font><font size="3" color="blue"><u><br>
</u></font><a href="mailto:Users@lists.osgeo.org"><font size="3" color="blue"><u>Users@lists.osgeo.org</u></font></a><font size="3"><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></font>
<br>
<br>
<br>
<br></p></blockquote></div><br></div></div></body></html>