Skip to content

Uncaught IndexSizeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0. #6343

@LeeDr

Description

@LeeDr

On kibana 4.4.1 I created a Tile Map vis (on Firefox) with heatmap option. Saved it. Zoomed in by double-clicking. Everything works fine.

Then went to Chrome browser to try the same thing.

The first problem is that the map doesn't render correctly. I only see a small part of it;

2016-02-26 11_29_13-clipboard

And then when I click on the map to drag it into view I get this error;

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

Version: 4.4.1
Build: 9693

Error: Uncaught IndexSizeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0. (http://localhost:5601/bundles/kibana.bundle.js?v=9693:17062)
    at window.onerror (http://localhost:5601/bundles/commons.bundle.js?v=9693:63832:25)

And if I open the dev console in Chrome I get this;

Error: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0.
    at Error (native)
    at Object.t.draw (http://localhost:5601/bundles/kibana.bundle.js?v=9693:17062:1413)
    at L.HeatLayer.extend._redraw (http://localhost:5601/bundles/kibana.bundle.js?v=9693:17067:2734)
    at L.HeatLayer.extend._reset (http://localhost:5601/bundles/kibana.bundle.js?v=9693:17067:1754)
    at L.HeatLayer.extend.onAdd (http://localhost:5601/bundles/kibana.bundle.js?v=9693:17067:703)
    at o.Map.o.Class.extend._layerAdd (http://localhost:5601/bundles/kibana.bundle.js?v=9693:17040:30050)
    at o.Map.o.Class.extend.addLayer (http://localhost:5601/bundles/kibana.bundle.js?v=9693:17040:21550)
    at HeatmapMarker.MarkerFactory.BaseMarker._addToMap (http://localhost:5601/bundles/kibana.bundle.js?v=9693:17324:17)
    at HeatmapMarkerFactory.HeatmapMarker._createMarkerGroup (http://localhost:5601/bundles/kibana.bundle.js?v=9693:17622:13)
    at new HeatmapMarker (http://localhost:5601/bundles/kibana.bundle.js?v=9693:17600:13)(anonymous function) @ commons.bundle.js?v=9693:40088(anonymous function) @ commons.bundle.js?v=9693:36857Scope.$digest @ commons.bundle.js?v=9693:43455Scope.$apply @ commons.bundle.js?v=9693:43708done @ commons.bundle.js?v=9693:38157completeRequest @ commons.bundle.js?v=9693:38355requestLoaded @ commons.bundle.js?v=9693:38296

I also reproduced it somewhat on IE11 where the map only shows a small portion in the upper left and the console shows IndexSizeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:Coordinate MapFeature:VisualizationsGeneric visualization features (in case no more specific feature label is available)WIPWork in progressbugFixes for quality problems that affect the customer experiencev5.4.0

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions