# Invalid array length

**URL:** <https://community.cesium.com/t/invalid-array-length/6682>\
**Category:** CesiumJS\
**Created:** [March 16, 2018, 8:47am UTC](https://community.cesium.com/t/invalid-array-length/6682 "2018-03-16T08:47:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![konohakiroisenko](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@konohakiroisenko](https://community.cesium.com/u/konohakiroisenko)\
**Post date:** [March 16, 2018, 8:47am UTC](https://community.cesium.com/t/invalid-array-length/6682/1 "2018-03-16T08:47:33Z")

</div>

I'm developing an mobile app by using Cordova. I'm creating a function which  
is hiding the Cesium Wrapper div and show a panorama image on another div. But I get this error when I hide the panorama div and display the Cesium Wrapper div. Anyone can help me? Thanks.  
Error : [https://imgur.com/a/m9Bgo](https://imgur.com/a/m9Bgo)

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [March 20, 2018, 1:24pm UTC](https://community.cesium.com/t/invalid-array-length/6682/2 "2018-03-20T13:24:11Z")

</div>

Hi there,

It’s hard to see exactly what’s going wrong since the error message isn’t displaying any relevant info. Do you have a more descriptive error message in the console?

How are you hiding and displaying the div? It could be that Cesium lost the WebGL context when you hid the div.

Thanks,

Gabby
