# Error when rotating several PolyLines in 2D-View

**URL:** <https://community.cesium.com/t/error-when-rotating-several-polylines-in-2d-view/4777>\
**Category:** CesiumJS\
**Created:** [November 3, 2016, 9:58am UTC](https://community.cesium.com/t/error-when-rotating-several-polylines-in-2d-view/4777 "2016-11-03T09:58:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klaus\_Rheinwald1](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@Klaus\_Rheinwald1](https://community.cesium.com/u/Klaus_Rheinwald1)\
**Post date:** [November 3, 2016, 9:58am UTC](https://community.cesium.com/t/error-when-rotating-several-polylines-in-2d-view/4777/1 "2016-11-03T09:58:37Z")

</div>

Hi!

I am displaying several polylines in a 2D-View. Unfortunately, an error is thrown everytime I try to rotate the view with the mouse:

RangeError: Maximum call stack size exceeded

An example to reproduce the problemcan be found [here](https://ppc.paralog.net/showtracks3D.php?event=East+Canada+Wingsuit+Performance+Competition+2016,%20Time,%20Round%201) (switch to 2D, zoom in, rotate…).

It works perfectly well in the 3D and 2.5D views. Any ideas what could be going wrong?

Thanks,

Klaus

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [November 3, 2016, 2:25pm UTC](https://community.cesium.com/t/error-when-rotating-several-polylines-in-2d-view/4777/2 "2016-11-03T14:25:17Z")

</div>

Hello Klaus,

I went to the link you posted but there wasn’t anything on that page. It just said ‘no tracks selected’

-Hannah

---

<div class="post-metadata">

**Author:** ![Klaus\_Rheinwald](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@Klaus\_Rheinwald](https://community.cesium.com/u/Klaus_Rheinwald)\
**Post date:** [November 3, 2016, 3:22pm UTC](https://community.cesium.com/t/error-when-rotating-several-polylines-in-2d-view/4777/3 "2016-11-03T15:22:44Z")

</div>

Aaargh. Stupid hidden post data. Please try [https://ppc.paralog.net/showtracks.php?event=East+Canada+Wingsuit+Performance+Competition+2016&category=Time&round=1](https://ppc.paralog.net/showtracks.php?event=East+Canada+Wingsuit+Performance+Competition+2016&category=Time&round=1) and select the checkbox close to the Cesium icon before clicking it.

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [November 3, 2016, 3:37pm UTC](https://community.cesium.com/t/error-when-rotating-several-polylines-in-2d-view/4777/4 "2016-11-03T15:37:53Z")

</div>

Thanks Klaus. I was able to reproduce the crash.  
What version of Cesium is the site using?

Could you possibly put together a [Sandcastle](http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html) demo that reproduces the crash? That would make it a lot easier for us to test and figure out what is happening.

Thanks!

---

<div class="post-metadata">

**Author:** ![Klaus\_Rheinwald1](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@Klaus\_Rheinwald1](https://community.cesium.com/u/Klaus_Rheinwald1)\
**Post date:** [November 6, 2016, 9:18am UTC](https://community.cesium.com/t/error-when-rotating-several-polylines-in-2d-view/4777/5 "2016-11-06T09:18:37Z")

</div>

Hi Hanna,

I created a stripped down version of the page and in the process removed a rather large library (jqplot) – now I have to rotate the 2D view for quite some time before the error comes up. Unfortunately, I can not put this in Sandcastle due to Same Origin Policies on some resources.

You can find it here: [https://ppc.paralog.net/3Dview.html](https://ppc.paralog.net/3Dview.html)

Another interesting observation: When I initialize the viewer with ‘sceneMode: Cesium.SceneMode.SCENE2D’ as in [https://ppc.paralog.net/2Dview.html](https://ppc.paralog.net/2Dview.html) , the tracks are not drawn.

Klaus

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [November 7, 2016, 3:40pm UTC](https://community.cesium.com/t/error-when-rotating-several-polylines-in-2d-view/4777/6 "2016-11-07T15:40:12Z")

</div>

Thanks Klaus, I’ve written up an issue here: [https://github.com/AnalyticalGraphicsInc/cesium/issues/4619](https://github.com/AnalyticalGraphicsInc/cesium/issues/4619)

-Hannah

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [February 10, 2017, 11:03pm UTC](https://community.cesium.com/t/error-when-rotating-several-polylines-in-2d-view/4777/7 "2017-02-10T23:03:22Z")

</div>

Klaus,

Thanks again for the report, this is a good catch.

It was fixed in [#4619](https://github.com/AnalyticalGraphicsInc/cesium/issues/4619) during the bug bash and will be in Cesium 1.31 on March 1.

Patrick
