# Uncaught IndexSizeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0. (http://localhost:5601/bundles/vendors.bundle.js?v=16602:12)

**URL:** <https://discuss.elastic.co/t/uncaught-indexsizeerror-failed-to-execute-getimagedata-on-canvasrenderingcontext2d-the-source-width-is-0-http-localhost-5601-bundles-vendors-bundle-js-v-16602-12/137135>\
**Category:** Kibana\
**Created:** [June 24, 2018, 7:40am UTC](https://discuss.elastic.co/t/uncaught-indexsizeerror-failed-to-execute-getimagedata-on-canvasrenderingcontext2d-the-source-width-is-0-http-localhost-5601-bundles-vendors-bundle-js-v-16602-12/137135 "2018-06-24T07:40:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulnama](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@rahulnama](https://discuss.elastic.co/u/rahulnama)\
**Post date:** [June 24, 2018, 7:40am UTC](https://discuss.elastic.co/t/uncaught-indexsizeerror-failed-to-execute-getimagedata-on-canvasrenderingcontext2d-the-source-width-is-0-http-localhost-5601-bundles-vendors-bundle-js-v-16602-12/137135/1 "2018-06-24T07:40:17Z")

</div>

Hello Team

I've built kibana dashboards and shared the url in my web application. When I try to maximize the dashboard in my webapp the error comes up.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/6/06a52df35a8fbff87de9cb5209fca29875bcb97b.png)

it's same with all the dashboards. but I'm not sure why?.

Any help is appreciated.

Thank you 🙂

Rahul Nama

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 25, 2018, 11:51pm UTC](https://discuss.elastic.co/t/uncaught-indexsizeerror-failed-to-execute-getimagedata-on-canvasrenderingcontext2d-the-source-width-is-0-http-localhost-5601-bundles-vendors-bundle-js-v-16602-12/137135/2 "2018-06-25T23:51:22Z")

</div>

What version of Kibana are you running? It would really help us debug this if we could know which visualization type is causing the problem and how it's configured. Would it be possible to create a dashboard for each Visualization to find the culprit? Then, could you export the Visualization Saved Object under Management -\> Saved Objects and provide the contents?

---

<div class="post-metadata">

**Author:** ![rahulnama](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@rahulnama](https://discuss.elastic.co/u/rahulnama)\
**Post date:** [July 2, 2018, 4:37am UTC](https://discuss.elastic.co/t/uncaught-indexsizeerror-failed-to-execute-getimagedata-on-canvasrenderingcontext2d-the-source-width-is-0-http-localhost-5601-bundles-vendors-bundle-js-v-16602-12/137135/3 "2018-07-02T04:37:21Z")

</div>

Hello @Nathan_Reese

I'm using Kibana 6.2.3, OS: Windows.

I've many visualizations in a single dashboard.

I embedded the dashboard in my web application.

And when I maximize every visualization except map is causing the same error  
below is the dashboard I added in my web app

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/7/6746150dc2e7c9f4007f47b348b676c6c29694eb.png)

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [July 2, 2018, 2:06pm UTC](https://discuss.elastic.co/t/uncaught-indexsizeerror-failed-to-execute-getimagedata-on-canvasrenderingcontext2d-the-source-width-is-0-http-localhost-5601-bundles-vendors-bundle-js-v-16602-12/137135/4 "2018-07-02T14:06:36Z")

</div>

Sounds like a bug. Can you file an issue [https://github.com/elastic/kibana/issues/new?template=Bug\_report.md](https://github.com/elastic/kibana/issues/new?template=Bug_report.md)

---

<div class="post-metadata">

**Author:** ![avranCheck](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@avranCheck](https://discuss.elastic.co/u/avranCheck)\
**Post date:** [July 6, 2018, 2:02am UTC](https://discuss.elastic.co/t/uncaught-indexsizeerror-failed-to-execute-getimagedata-on-canvasrenderingcontext2d-the-source-width-is-0-http-localhost-5601-bundles-vendors-bundle-js-v-16602-12/137135/5 "2018-07-06T02:02:06Z")

</div>

Getting the same issue when running Earthquake example - [https://www.elastic.co/blog/earthquake-data-with-the-elastic-stack?baymax=rtp&storm=recommendation&elektra=blog&iesrc=rcmd&astid=a9888bd3-37c5-45d6-b894-1693b8f5f24d&at=69&rcmd\_source=WIDGET&req\_id=5e81a8f5-842c-4671-9d11-355dd57bafed](https://www.elastic.co/blog/earthquake-data-with-the-elastic-stack?baymax=rtp&storm=recommendation&elektra=blog&iesrc=rcmd&astid=a9888bd3-37c5-45d6-b894-1693b8f5f24d&at=69&rcmd_source=WIDGET&req_id=5e81a8f5-842c-4671-9d11-355dd57bafed)

---

<div class="post-metadata">

**Author:** ![PRANSHU\_MIDHA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranshu_midha/32/22533_2.png) [@PRANSHU\_MIDHA](https://discuss.elastic.co/u/PRANSHU_MIDHA)\
**Post date:** [July 17, 2018, 9:06am UTC](https://discuss.elastic.co/t/uncaught-indexsizeerror-failed-to-execute-getimagedata-on-canvasrenderingcontext2d-the-source-width-is-0-http-localhost-5601-bundles-vendors-bundle-js-v-16602-12/137135/6 "2018-07-17T09:06:04Z")

</div>

Hi,  
I am facing similar issue in my dashboards.  
**Error in Console** : Error: Uncaught IndexSizeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0.  
**Kibana version** : 6.2.2  
**Error Screenshot** :

 ![net-resizeimage](https://us1.discourse-cdn.com/elastic/original/3X/4/e/4e862e0330e39cbf91274975ed2f57fb11ff61d0.png)

I am displaying the Kibana dashboards in my Web application in Tabs containing the dashboard Iframes.  
The issue arises when Tab view is switched. Also the error occurs in the dashboards containing Tilemap visualisation.

Please help out.  
Thanks 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 14, 2018, 9:06am UTC](https://discuss.elastic.co/t/uncaught-indexsizeerror-failed-to-execute-getimagedata-on-canvasrenderingcontext2d-the-source-width-is-0-http-localhost-5601-bundles-vendors-bundle-js-v-16602-12/137135/7 "2018-08-14T09:06:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
