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

[Maps] Cannot add configured tile-map layer #68818

Closed
thomasneirynck opened this issue Jun 10, 2020 · 2 comments · Fixed by #71946
Closed

[Maps] Cannot add configured tile-map layer #68818

thomasneirynck opened this issue Jun 10, 2020 · 2 comments · Fixed by #71946
Assignees
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation regression v7.9.0 v8.0.0

Comments

@thomasneirynck
Copy link
Contributor

thomasneirynck commented Jun 10, 2020

Steps

  1. add an YXZ layer to the kibana.yml: e.g. map.tilemap.url: https://tiles.maps.elastic.co/styles/dark-matter/{z}/{x}/{y}.png
  2. open new map
  3. Select "Add layer" -> "Configured tile map service"

-> app crashes with

react-dom.development.js:25671 Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
    at checkForNestedUpdates (react-dom.development.js:25671)
    at scheduleUpdateOnFiber (react-dom.development.js:23674)
    at Object.enqueueSetState (react-dom.development.js:13994)
    at AddLayerPanel.__kbnSharedDeps__.../../node_modules/react/cjs/react.development.js.Component.setState (react.development.js:325)
    at view.tsx:31
    at onSourceConfigChange (kibana_base_map_layer_wizard.tsx:31)
    at CreateSourceEditor (create_source_editor.js:17)
    at renderWithHooks (react-dom.development.js:16260)
    at updateFunctionComponent (react-dom.development.js:18347)
    at beginWork$1 (react-dom.development.js:20176)
checkForNestedUpdates @ react-dom.development.js:25671
scheduleUpdateOnFiber @ react-dom.development.js:23674
enqueueSetState @ react-dom.development.js:13994
__kbnSharedDeps__.../../node_modules/react/cjs/react.development.js.Component.setState @ react.development.js:325
(anonymous) @ view.tsx:31
onSourceConfigChange @ kibana_base_map_layer_wizard.tsx:31
CreateSourceEditor @ create_source_editor.js:17
renderWithHooks @ react-dom.development.js:16260
updateFunctionComponent @ react-dom.development.js:18347
beginWork$1 @ react-dom.development.js:20176
beginWork$$1 @ react-dom.development.js:25756
performUnitOfWork @ react-dom.development.js:24698
workLoopSync @ react-dom.development.js:24671
performSyncWorkOnRoot @ react-dom.development.js:24270
(anonymous) @ react-dom.development.js:12199
unstable_runWithPriority @ scheduler.development.js:697
runWithPriority$2 @ react-dom.development.js:12149
flushSyncCallbackQueueImpl @ react-dom.development.js:12194
flushSyncCallbackQueue @ react-dom.development.js:12182
discreteUpdates$1 @ react-dom.development.js:24423
discreteUpdates @ react-dom.development.js:1438
dispatchDiscreteEvent @ react-dom.development.js:5881
react-dom.development.js:530 Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
    in MapsCreateEditView (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(MapsCreateEditView)) (created by LoadMapAndRender)
    in LoadMapAndRender (created by Context.Consumer)
    in Route (created by App)
    in Switch (created by App)
    in Router (created by App)
    in Provider (created by App)
    in EuiContext (created by I18nContext)
    in PseudoLocaleWrapper (created by I18nProvider)
    in IntlProvider (created by I18nProvider)
    in I18nProvider (created by I18nContext)
    in I18nContext (created by App)
    in App
@thomasneirynck thomasneirynck added bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.9.0 v8.0.0 labels Jun 10, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@kindsun
Copy link
Contributor

kindsun commented Jul 2, 2020

I believe this same issue is affecting coordinate & region maps. See #70609

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 [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation regression v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants