Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kibana crashes with fatal error if user clicks on Fit Data Bounds at certain zoom levels(when the map has no data points for that particular zoom level) #11002

Closed
bhavyarm opened this issue Apr 3, 2017 · 2 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Coordinate Map Feature:Visualizations Generic visualization features (in case no more specific feature label is available) v5.4.0

Comments

@bhavyarm
Copy link
Contributor

bhavyarm commented Apr 3, 2017

Kibana version: OSS master

Elasticsearch version: OSS master

Browser version: chrome latest

Browser OS version: OS X El captain

Original install method (e.g. download page, yum, from source, etc.): Built from master

Description of the problem including expected versus actual behavior: When I click on Fit Data Bounds at zoom levels with no data points(?), Kibana crashes with a fatal error.

Steps to reproduce:

  1. Create a map with makelogs data
  2. zoom in to map and stop where you can't see any data points
  3. Click on Fit Data Bounds - Kibana crashes with fatal error and reloads the map(Reloading happens only sometimes)

Errors in browser console (if relevant):

commons.bundle.js:65765 Error: Uncaught TypeError: Cannot read property 'lat' of undefined (https://localhost:5601/dzc/bundles/kibana.bundle.js?v=8467:158618)
    at window.onerror (notify.js:66)
Notifier._showFatal @ notifier.js:398
Notifier.fatal @ notifier.js:361
wrapper @ index.js:3095
window.onerror @ notify.js:66
kibana.bundle.js:158618 Uncaught TypeError: Cannot read property 'lat' of undefined
    at o.LatLngBounds.getNorth (leaflet.js:6)
    at o.LatLngBounds.getNorthWest (leaflet.js:6)
    at e.getBoundsZoom (leaflet.js:6)
    at e.fitBounds (leaflet.js:6)
    at KibanaMap.fitToData (kibana_map.js:561)
    at HTMLDivElement.<anonymous> (kibana_map.js:50)
    at HTMLDivElement.dispatch (jquery.js:4435)
    at HTMLDivElement.elemData.handle (jquery.js:4121)
getNorth @ leaflet.js:6
getNorthWest @ leaflet.js:6
getBoundsZoom @ leaflet.js:6
fitBounds @ leaflet.js:6
fitToData @ kibana_map.js:561
(anonymous) @ kibana_map.js:50
dispatch @ jquery.js:4435
elemData.handle @ jquery.js:4121
commons.bundle.js:71024 Uncaught Error: Uncaught TypeError: Cannot read property 'lat' of undefined (https://localhost:5601/dzc/bundles/kibana.bundle.js?v=8467:158618)
    at window.onerror (notify.js:66)
window.onerror @ notify.js:66
commons.bundle.js:34844 Error: Aborting all pending requests failed.
    at Courier.self.close (courier.js:171)
    at processQueue (angular.js:14745)
    at angular.js:14761
    at Scope.$eval (angular.js:15989)
    at Scope.$digest (angular.js:15800)
    at angular.js:16028
    at completeOutstandingRequest (angular.js:5507)
    at angular.js:5784

tile_map_error

kibana_fatal_error

cc @thomasneirynck

@bhavyarm bhavyarm added Feature:Coordinate Map bug Fixes for quality problems that affect the customer experience blocker v5.4.0 labels Apr 3, 2017
@thomasneirynck thomasneirynck added the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Apr 5, 2017
@thomasneirynck thomasneirynck self-assigned this Apr 5, 2017
@jbudz
Copy link
Member

jbudz commented May 5, 2017

@thomasneirynck as a heads up I just ran into this on master when clicking the fit data button before loading an aggregation

@thomasneirynck
Copy link
Contributor

thomasneirynck commented May 5, 2017

@jbudz I'll reopen this, thanks

this also occurred in the case when no data was loaded, not just when zoomed in on a spot that showed no data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Coordinate Map Feature:Visualizations Generic visualization features (in case no more specific feature label is available) v5.4.0
Projects
None yet
Development

No branches or pull requests

3 participants