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

[Lens] editor crashes when switching quick function #161988

Closed
drewdaemon opened this issue Jul 14, 2023 · 3 comments · Fixed by #161881
Closed

[Lens] editor crashes when switching quick function #161988

drewdaemon opened this issue Jul 14, 2023 · 3 comments · Fixed by #161881
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@drewdaemon
Copy link
Contributor

Kibana version:
main (unreleased)

Describe the bug:
Sometimes the Lens editor disappears completely when changing a quick function.

Steps to reproduce:

  1. Set time range to last one second (I'm not sure if this is necessary but seems to help)
  2. Build a visualization
  3. Start switching quick functions

Expected behavior:
The editor doesn't crash

Screenshots (if relevant):

Screen.Recording.2023-07-14.at.10.05.17.AM.mov

Errors in browser console (if relevant):

lens#/?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-1s,to:now)):286 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.

redux.js:196 Uncaught Error: You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.
    at getState (redux.js:196:1)
    at redux-toolkit.cjs.development.js:372:1
    at Object.measureTime (redux-toolkit.cjs.development.js:211:1)
    at redux-toolkit.cjs.development.js:371:1
    at workspace_panel.tsx:210:1
    at invokePassiveEffectCreate (react-dom.development.js:23487:1)
    at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)
    at invokeGuardedCallback (react-dom.development.js:4056:1)
    at flushPassiveEffectsImpl (react-dom.development.js:23574:1)
getState @ redux.js:196
(anonymous) @ redux-toolkit.cjs.development.js:372
measureTime @ redux-toolkit.cjs.development.js:211
(anonymous) @ redux-toolkit.cjs.development.js:371
(anonymous) @ workspace_panel.tsx:210
invokePassiveEffectCreate @ react-dom.development.js:23487
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
flushPassiveEffectsImpl @ react-dom.development.js:23574
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushPassiveEffects @ react-dom.development.js:23447
performSyncWorkOnRoot @ react-dom.development.js:22269
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ dimension_editor.tsx:115
setState.isDimensionComplete.isDimensionComplete @ dimension_editor.tsx:148
updater @ config_panel.tsx:63
lens/updateDatasourceState @ lens_slice.ts:480
(anonymous) @ redux-toolkit.cjs.development.js:677
Immer.produce @ immer.cjs.development.js:792
(anonymous) @ redux-toolkit.cjs.development.js:676
reducer @ redux-toolkit.cjs.development.js:655
combination @ redux.js:568
dispatch @ redux.js:296
(anonymous) @ redux-logger.js:1
(anonymous) @ fullscreen_middleware.ts:15
(anonymous) @ index.ts:32
(anonymous) @ optimizing_middleware.ts:19
(anonymous) @ index.ts:21
(anonymous) @ index.js:27
(anonymous) @ redux-toolkit.cjs.development.js:377
(anonymous) @ config_panel.tsx:62
(anonymous) @ config_panel.tsx:75
setTimeout (async)
(anonymous) @ config_panel.tsx:74
(anonymous) @ layer_panel.tsx:179
(anonymous) @ dimension_editor.tsx:132
onClick @ dimension_editor.tsx:450
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4070
executeDispatch @ react-dom.development.js:8243
processDispatchQueueItemsInOrder @ react-dom.development.js:8275
processDispatchQueue @ react-dom.development.js:8288
dispatchEventsForPlugins @ react-dom.development.js:8299
(anonymous) @ react-dom.development.js:8508
batchedEventUpdates$1 @ react-dom.development.js:22396
batchedEventUpdates @ react-dom.development.js:3745
dispatchEventForPluginEventSystem @ react-dom.development.js:8507
attemptToDispatchEvent @ react-dom.development.js:6005
dispatchEvent @ react-dom.development.js:5924
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
discreteUpdates$1 @ react-dom.development.js:22413
discreteUpdates @ react-dom.development.js:3756
dispatchDiscreteEvent @ react-dom.development.js:5889
redux.js:196 Uncaught Error: You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.
    at Object.getState (redux.js:196:1)
    at useSelectorWithStoreAndSubscription (useSelector.js:34:1)
    at useSelector (useSelector.js:139:1)
    at App (app.tsx:74:1)
    at renderWithHooks (react-dom.development.js:14985:1)
    at updateFunctionComponent (react-dom.development.js:17356:1)
    at beginWork (react-dom.development.js:19063:1)
    at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)
    at invokeGuardedCallback (react-dom.development.js:4056:1)
getState @ redux.js:196
useSelectorWithStoreAndSubscription @ useSelector.js:34
useSelector @ useSelector.js:139
App @ app.tsx:74
renderWithHooks @ react-dom.development.js:14985
updateFunctionComponent @ react-dom.development.js:17356
beginWork @ react-dom.development.js:19063
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
beginWork$1 @ react-dom.development.js:23964
performUnitOfWork @ react-dom.development.js:22776
workLoopSync @ react-dom.development.js:22707
renderRootSync @ react-dom.development.js:22670
performSyncWorkOnRoot @ react-dom.development.js:22293
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ dimension_editor.tsx:115
setState.isDimensionComplete.isDimensionComplete @ dimension_editor.tsx:148
updater @ config_panel.tsx:63
lens/updateDatasourceState @ lens_slice.ts:480
(anonymous) @ redux-toolkit.cjs.development.js:677
Immer.produce @ immer.cjs.development.js:792
(anonymous) @ redux-toolkit.cjs.development.js:676
reducer @ redux-toolkit.cjs.development.js:655
combination @ redux.js:568
dispatch @ redux.js:296
(anonymous) @ redux-logger.js:1
(anonymous) @ fullscreen_middleware.ts:15
(anonymous) @ index.ts:32
(anonymous) @ optimizing_middleware.ts:19
(anonymous) @ index.ts:21
(anonymous) @ index.js:27
(anonymous) @ redux-toolkit.cjs.development.js:377
(anonymous) @ config_panel.tsx:62
(anonymous) @ config_panel.tsx:75
setTimeout (async)
(anonymous) @ config_panel.tsx:74
(anonymous) @ layer_panel.tsx:179
(anonymous) @ dimension_editor.tsx:132
onClick @ dimension_editor.tsx:450
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4070
executeDispatch @ react-dom.development.js:8243
processDispatchQueueItemsInOrder @ react-dom.development.js:8275
processDispatchQueue @ react-dom.development.js:8288
dispatchEventsForPlugins @ react-dom.development.js:8299
(anonymous) @ react-dom.development.js:8508
batchedEventUpdates$1 @ react-dom.development.js:22396
batchedEventUpdates @ react-dom.development.js:3745
dispatchEventForPluginEventSystem @ react-dom.development.js:8507
attemptToDispatchEvent @ react-dom.development.js:6005
dispatchEvent @ react-dom.development.js:5924
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
discreteUpdates$1 @ react-dom.development.js:22413
discreteUpdates @ react-dom.development.js:3756
dispatchDiscreteEvent @ react-dom.development.js:5889
redux.js:244 Uncaught Error: You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.
    at unsubscribe (redux.js:244:1)
    at Object.tryUnsubscribe (Subscription.js:114:1)
    at Provider.js:44:1
    at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)
    at invokeGuardedCallback (react-dom.development.js:4056:1)
    at safelyCallDestroy (react-dom.development.js:20450:1)
    at commitUnmount (react-dom.development.js:20932:1)
    at unmountHostComponents (react-dom.development.js:21311:1)
    at commitDeletion (react-dom.development.js:21347:1)
unsubscribe @ redux.js:244
tryUnsubscribe @ Subscription.js:114
(anonymous) @ Provider.js:44
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
safelyCallDestroy @ react-dom.development.js:20450
commitUnmount @ react-dom.development.js:20932
unmountHostComponents @ react-dom.development.js:21311
commitDeletion @ react-dom.development.js:21347
commitMutationEffects @ react-dom.development.js:23407
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
commitRootImpl @ react-dom.development.js:23121
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
commitRoot @ react-dom.development.js:22990
performSyncWorkOnRoot @ react-dom.development.js:22329
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ dimension_editor.tsx:115
setState.isDimensionComplete.isDimensionComplete @ dimension_editor.tsx:148
updater @ config_panel.tsx:63
lens/updateDatasourceState @ lens_slice.ts:480
(anonymous) @ redux-toolkit.cjs.development.js:677
Immer.produce @ immer.cjs.development.js:792
(anonymous) @ redux-toolkit.cjs.development.js:676
reducer @ redux-toolkit.cjs.development.js:655
combination @ redux.js:568
dispatch @ redux.js:296
(anonymous) @ redux-logger.js:1
(anonymous) @ fullscreen_middleware.ts:15
(anonymous) @ index.ts:32
(anonymous) @ optimizing_middleware.ts:19
(anonymous) @ index.ts:21
(anonymous) @ index.js:27
(anonymous) @ redux-toolkit.cjs.development.js:377
(anonymous) @ config_panel.tsx:62
(anonymous) @ config_panel.tsx:75
setTimeout (async)
(anonymous) @ config_panel.tsx:74
(anonymous) @ layer_panel.tsx:179
(anonymous) @ dimension_editor.tsx:132
onClick @ dimension_editor.tsx:450
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4070
executeDispatch @ react-dom.development.js:8243
processDispatchQueueItemsInOrder @ react-dom.development.js:8275
processDispatchQueue @ react-dom.development.js:8288
dispatchEventsForPlugins @ react-dom.development.js:8299
(anonymous) @ react-dom.development.js:8508
batchedEventUpdates$1 @ react-dom.development.js:22396
batchedEventUpdates @ react-dom.development.js:3745
dispatchEventForPluginEventSystem @ react-dom.development.js:8507
attemptToDispatchEvent @ react-dom.development.js:6005
dispatchEvent @ react-dom.development.js:5924
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
discreteUpdates$1 @ react-dom.development.js:22413
discreteUpdates @ react-dom.development.js:3756
dispatchDiscreteEvent @ react-dom.development.js:5889
react-dom.development.js:20085 The above error occurred in the <App> component:

    at App (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:17361:3)
    at Provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.2.js:4297:20)
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:19015:97
    at EditorRoute (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:19105:22)
    at Route (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:366377:29)
    at Route (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16509:3)
    at Switch (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:366579:29)
    at Routes (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16641:3)
    at RenderedRoute (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:364544:5)
    at Routes (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365105:5)
    at Router (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365043:15)
    at CompatRouter (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:363070:5)
    at Router (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365996:30)
    at HashRouter (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365469:35)
    at HashRouter (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16586:3)
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2215:7)
    at Provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:1822:15)
    at PseudoLocaleWrapper (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14199:5)
    at IntlProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:149497:5)
    at I18nProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14130:3)
    at CurrentEuiBreakpointProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:151824:23)
    at EuiThemeProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:156786:22)
    at EuiCacheProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:129070:20)
    at EuiProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:129170:25)
    at KibanaThemeProvider (http://localhost:5601/bir/9007199254740991/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:4551:3)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
overrideMethod @ console.js:213
logCapturedError @ react-dom.development.js:20085
update.callback @ react-dom.development.js:20118
callCallback @ react-dom.development.js:12318
commitUpdateQueue @ react-dom.development.js:12339
commitLifeCycles @ react-dom.development.js:20736
commitLayoutEffects @ react-dom.development.js:23426
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
commitRootImpl @ react-dom.development.js:23151
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
commitRoot @ react-dom.development.js:22990
performSyncWorkOnRoot @ react-dom.development.js:22329
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ dimension_editor.tsx:115
setState.isDimensionComplete.isDimensionComplete @ dimension_editor.tsx:148
updater @ config_panel.tsx:63
lens/updateDatasourceState @ lens_slice.ts:480
(anonymous) @ redux-toolkit.cjs.development.js:677
Immer.produce @ immer.cjs.development.js:792
(anonymous) @ redux-toolkit.cjs.development.js:676
reducer @ redux-toolkit.cjs.development.js:655
combination @ redux.js:568
dispatch @ redux.js:296
(anonymous) @ redux-logger.js:1
(anonymous) @ fullscreen_middleware.ts:15
(anonymous) @ index.ts:32
(anonymous) @ optimizing_middleware.ts:19
(anonymous) @ index.ts:21
(anonymous) @ index.js:27
(anonymous) @ redux-toolkit.cjs.development.js:377
(anonymous) @ config_panel.tsx:62
(anonymous) @ config_panel.tsx:75
setTimeout (async)
(anonymous) @ config_panel.tsx:74
(anonymous) @ layer_panel.tsx:179
(anonymous) @ dimension_editor.tsx:132
onClick @ dimension_editor.tsx:450
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4070
executeDispatch @ react-dom.development.js:8243
processDispatchQueueItemsInOrder @ react-dom.development.js:8275
processDispatchQueue @ react-dom.development.js:8288
dispatchEventsForPlugins @ react-dom.development.js:8299
(anonymous) @ react-dom.development.js:8508
batchedEventUpdates$1 @ react-dom.development.js:22396
batchedEventUpdates @ react-dom.development.js:3745
dispatchEventForPluginEventSystem @ react-dom.development.js:8507
attemptToDispatchEvent @ react-dom.development.js:6005
dispatchEvent @ react-dom.development.js:5924
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
discreteUpdates$1 @ react-dom.development.js:22413
discreteUpdates @ react-dom.development.js:3756
dispatchDiscreteEvent @ react-dom.development.js:5889
Show 1 more frame
react-dom.development.js:11340 Uncaught Error: You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.
    at Object.getState (redux.js:196:1)
    at useSelectorWithStoreAndSubscription (useSelector.js:34:1)
    at useSelector (useSelector.js:139:1)
    at App (app.tsx:74:1)
    at renderWithHooks (react-dom.development.js:14985:1)
    at updateFunctionComponent (react-dom.development.js:17356:1)
    at beginWork (react-dom.development.js:19063:1)
    at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)
    at invokeGuardedCallback (react-dom.development.js:4056:1)
getState @ redux.js:196
useSelectorWithStoreAndSubscription @ useSelector.js:34
useSelector @ useSelector.js:139
App @ app.tsx:74
renderWithHooks @ react-dom.development.js:14985
updateFunctionComponent @ react-dom.development.js:17356
beginWork @ react-dom.development.js:19063
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
beginWork$1 @ react-dom.development.js:23964
performUnitOfWork @ react-dom.development.js:22776
workLoopSync @ react-dom.development.js:22707
renderRootSync @ react-dom.development.js:22670
performSyncWorkOnRoot @ react-dom.development.js:22293
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ dimension_editor.tsx:115
setState.isDimensionComplete.isDimensionComplete @ dimension_editor.tsx:148
updater @ config_panel.tsx:63
lens/updateDatasourceState @ lens_slice.ts:480
(anonymous) @ redux-toolkit.cjs.development.js:677
Immer.produce @ immer.cjs.development.js:792
(anonymous) @ redux-toolkit.cjs.development.js:676
reducer @ redux-toolkit.cjs.development.js:655
combination @ redux.js:568
dispatch @ redux.js:296
(anonymous) @ redux-logger.js:1
(anonymous) @ fullscreen_middleware.ts:15
(anonymous) @ index.ts:32
(anonymous) @ optimizing_middleware.ts:19
(anonymous) @ index.ts:21
(anonymous) @ index.js:27
(anonymous) @ redux-toolkit.cjs.development.js:377
(anonymous) @ config_panel.tsx:62
(anonymous) @ config_panel.tsx:75
setTimeout (async)
(anonymous) @ config_panel.tsx:74
(anonymous) @ layer_panel.tsx:179
(anonymous) @ dimension_editor.tsx:132
onClick @ dimension_editor.tsx:450
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4070
executeDispatch @ react-dom.development.js:8243
processDispatchQueueItemsInOrder @ react-dom.development.js:8275
processDispatchQueue @ react-dom.development.js:8288
dispatchEventsForPlugins @ react-dom.development.js:8299
(anonymous) @ react-dom.development.js:8508
batchedEventUpdates$1 @ react-dom.development.js:22396
batchedEventUpdates @ react-dom.development.js:3745
dispatchEventForPluginEventSystem @ react-dom.development.js:8507
attemptToDispatchEvent @ react-dom.development.js:6005
dispatchEvent @ react-dom.development.js:5924
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
discreteUpdates$1 @ react-dom.development.js:22413
discreteUpdates @ react-dom.development.js:3756
dispatchDiscreteEvent @ react-dom.development.js:5889
react-dom.development.js:67 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 a useEffect cleanup function.
    at ChangeDataView (http://localhost:5601/bir/9007199254740991/bundles/plugin/unifiedSearch/1.0.0/unifiedSearch.chunk.9.js:116:3)
    at DataViewPicker (http://localhost:5601/bir/9007199254740991/bundles/plugin/unifiedSearch/1.0.0/unifiedSearch.chunk.9.js:470:3)
    at Suspense
    at EuiErrorBoundary (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:97501:81)
    at div
    at http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:160980:73
    at EuiFlexItem (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:99070:23)
    at div
    at http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:160980:73
    at http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:98845:23
    at QueryBarTopRow (http://localhost:5601/bir/9007199254740991/bundles/plugin/unifiedSearch/1.0.0/unifiedSearch.chunk.5.js:742:96)
    at div
    at http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:160980:73
    at SearchBarUI (http://localhost:5601/bir/9007199254740991/bundles/plugin/unifiedSearch/1.0.0/unifiedSearch.chunk.7.js:1477:5)
    at EnhancedType (http://localhost:5601/bir/9007199254740991/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:1807:20)
    at Render (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:156629:17)
    at InjectIntl (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:149136:7)
    at Suspense
    at WrappedSearchBar
    at EuiContext (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:78100:24)
    at PseudoLocaleWrapper (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14199:5)
    at IntlProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:149497:5)
    at I18nProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14130:3)
    at I18nContext (http://localhost:5601/bir/9007199254740991/bundles/core/core.entry.js:16623:9)
    at Provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:1822:15)
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/unifiedSearch/1.0.0/unifiedSearch.plugin.js:2351:7
    at TopNavMenu (http://localhost:5601/bir/9007199254740991/bundles/plugin/navigation/1.0.0/navigation.plugin.js:841:5)
    at PseudoLocaleWrapper (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14199:5)
    at IntlProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:149497:5)
    at I18nProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14130:3)
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/navigation/1.0.0/navigation.plugin.js:750:27
    at LensTopNavMenu (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:18147:3)
    at div
    at App (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:17361:3)
    at Provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.2.js:4297:20)
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:19015:97
    at EditorRoute (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:19105:22)
    at Route (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:366377:29)
    at Route (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16509:3)
    at Switch (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:366579:29)
    at Routes (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16641:3)
    at RenderedRoute (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:364544:5)
    at Routes (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365105:5)
    at Router (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365043:15)
    at CompatRouter (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:363070:5)
    at Router (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365996:30)
    at HashRouter (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365469:35)
    at HashRouter (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16586:3)
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2215:7)
    at Provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:1822:15)
    at PseudoLocaleWrapper (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14199:5)
    at IntlProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:149497:5)
    at I18nProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14130:3)
    at CurrentEuiBreakpointProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:151824:23)
    at EuiThemeProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:156786:22)
    at EuiCacheProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:129070:20)
    at EuiProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:129170:25)
    at KibanaThemeProvider (http://localhost:5601/bir/9007199254740991/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:4551:3)
overrideMethod @ console.js:213
printWarning @ react-dom.development.js:67
error @ react-dom.development.js:43
warnAboutUpdateOnUnmountedFiberInDEV @ react-dom.development.js:23914
scheduleUpdateOnFiber @ react-dom.development.js:21840
dispatchAction @ react-dom.development.js:16139
fetchDataViews @ change_dataview.tsx:88
await in fetchDataViews (async)
(anonymous) @ change_dataview.tsx:90
invokePassiveEffectCreate @ react-dom.development.js:23487
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
flushPassiveEffectsImpl @ react-dom.development.js:23574
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushPassiveEffects @ react-dom.development.js:23447
performSyncWorkOnRoot @ react-dom.development.js:22269
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ dimension_editor.tsx:115
setState.isDimensionComplete.isDimensionComplete @ dimension_editor.tsx:148
updater @ config_panel.tsx:63
lens/updateDatasourceState @ lens_slice.ts:480
(anonymous) @ redux-toolkit.cjs.development.js:677
Immer.produce @ immer.cjs.development.js:792
(anonymous) @ redux-toolkit.cjs.development.js:676
reducer @ redux-toolkit.cjs.development.js:655
combination @ redux.js:568
dispatch @ redux.js:296
(anonymous) @ redux-logger.js:1
(anonymous) @ fullscreen_middleware.ts:15
(anonymous) @ index.ts:32
(anonymous) @ optimizing_middleware.ts:19
(anonymous) @ index.ts:21
(anonymous) @ index.js:27
(anonymous) @ redux-toolkit.cjs.development.js:377
(anonymous) @ config_panel.tsx:62
(anonymous) @ config_panel.tsx:75
setTimeout (async)
(anonymous) @ config_panel.tsx:74
(anonymous) @ layer_panel.tsx:179
(anonymous) @ dimension_editor.tsx:132
onClick @ dimension_editor.tsx:450
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4070
executeDispatch @ react-dom.development.js:8243
processDispatchQueueItemsInOrder @ react-dom.development.js:8275
processDispatchQueue @ react-dom.development.js:8288
dispatchEventsForPlugins @ react-dom.development.js:8299
(anonymous) @ react-dom.development.js:8508
batchedEventUpdates$1 @ react-dom.development.js:22396
batchedEventUpdates @ react-dom.development.js:3745
dispatchEventForPluginEventSystem @ react-dom.development.js:8507
attemptToDispatchEvent @ react-dom.development.js:6005
dispatchEvent @ react-dom.development.js:5924
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
discreteUpdates$1 @ react-dom.development.js:22413
discreteUpdates @ react-dom.development.js:3756
dispatchDiscreteEvent @ react-dom.development.js:5889
Show 1 more frame
react-dom.development.js:20085 The above error occurred in the <Provider> component:

    at Provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.2.js:4297:20)
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:19015:97
    at EditorRoute (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:19105:22)
    at Route (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:366377:29)
    at Route (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16509:3)
    at Switch (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:366579:29)
    at Routes (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16641:3)
    at RenderedRoute (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:364544:5)
    at Routes (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365105:5)
    at Router (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365043:15)
    at CompatRouter (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:363070:5)
    at Router (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365996:30)
    at HashRouter (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365469:35)
    at HashRouter (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16586:3)
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2215:7)
    at Provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:1822:15)
    at PseudoLocaleWrapper (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14199:5)
    at IntlProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:149497:5)
    at I18nProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14130:3)
    at CurrentEuiBreakpointProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:151824:23)
    at EuiThemeProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:156786:22)
    at EuiCacheProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:129070:20)
    at EuiProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:129170:25)
    at KibanaThemeProvider (http://localhost:5601/bir/9007199254740991/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:4551:3)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
overrideMethod @ console.js:213
logCapturedError @ react-dom.development.js:20085
update.callback @ react-dom.development.js:20118
callCallback @ react-dom.development.js:12318
commitUpdateQueue @ react-dom.development.js:12339
commitLifeCycles @ react-dom.development.js:20736
commitLayoutEffects @ react-dom.development.js:23426
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
commitRootImpl @ react-dom.development.js:23151
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
commitRoot @ react-dom.development.js:22990
performSyncWorkOnRoot @ react-dom.development.js:22329
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
batchedEventUpdates$1 @ react-dom.development.js:22403
batchedEventUpdates @ react-dom.development.js:3745
dispatchEventForPluginEventSystem @ react-dom.development.js:8507
attemptToDispatchEvent @ react-dom.development.js:6005
dispatchEvent @ react-dom.development.js:5924
unstable_runWithPriority @ scheduler.development.js:468
dispatchUserBlockingUpdate @ react-dom.development.js:5894
Show 1 more frame
react-dom.development.js:11340 Uncaught Error: You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.
    at unsubscribe (redux.js:244:1)
    at Object.tryUnsubscribe (Subscription.js:114:1)
    at Provider.js:44:1
    at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)
    at invokeGuardedCallback (react-dom.development.js:4056:1)
    at safelyCallDestroy (react-dom.development.js:20450:1)
    at commitUnmount (react-dom.development.js:20932:1)
    at unmountHostComponents (react-dom.development.js:21311:1)
    at commitDeletion (react-dom.development.js:21347:1)
unsubscribe @ redux.js:244
tryUnsubscribe @ Subscription.js:114
(anonymous) @ Provider.js:44
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
safelyCallDestroy @ react-dom.development.js:20450
commitUnmount @ react-dom.development.js:20932
unmountHostComponents @ react-dom.development.js:21311
commitDeletion @ react-dom.development.js:21347
commitMutationEffects @ react-dom.development.js:23407
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
commitRootImpl @ react-dom.development.js:23121
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
commitRoot @ react-dom.development.js:22990
performSyncWorkOnRoot @ react-dom.development.js:22329
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ dimension_editor.tsx:115
setState.isDimensionComplete.isDimensionComplete @ dimension_editor.tsx:148
updater @ config_panel.tsx:63
lens/updateDatasourceState @ lens_slice.ts:480
(anonymous) @ redux-toolkit.cjs.development.js:677
Immer.produce @ immer.cjs.development.js:792
(anonymous) @ redux-toolkit.cjs.development.js:676
reducer @ redux-toolkit.cjs.development.js:655
combination @ redux.js:568
dispatch @ redux.js:296
(anonymous) @ redux-logger.js:1
(anonymous) @ fullscreen_middleware.ts:15
(anonymous) @ index.ts:32
(anonymous) @ optimizing_middleware.ts:19
(anonymous) @ index.ts:21
(anonymous) @ index.js:27
(anonymous) @ redux-toolkit.cjs.development.js:377
(anonymous) @ config_panel.tsx:62
(anonymous) @ config_panel.tsx:75
react-dom.development.js:67 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 a useEffect cleanup function.
    at InnerFormBasedDataPanel (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:20873:3)
    at FormBasedDataPanel (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:20801:3)
    at div
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.2.js:15915:100
    at ErrorBoundary (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.2.js:19353:5)
    at section
    at div
    at http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:160980:73
    at EuiPageBody (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:123899:23)
    at div
    at http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:160980:73
    at EuiPage (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:123753:23)
    at div
    at http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:160980:73
    at EuiFlexItem (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:99070:23)
    at div
    at http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:160980:73
    at http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:98845:23
    at FrameLayout (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.2.js:16414:97)
    at ChildDragDropProvider (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.2.js:9787:3)
    at RootDragDropProvider (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.2.js:9715:3)
    at EditorFrame (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.2.js:16120:5)
    at div
    at EditorFrameContainer (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:44036:11)
    at EditorFrameWrapper (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:17803:3)
    at div
    at App (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:17361:3)
    at Provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.2.js:4297:20)
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:19015:97
    at EditorRoute (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:19105:22)
    at Route (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:366377:29)
    at Route (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16509:3)
    at Switch (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:366579:29)
    at Routes (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16641:3)
    at RenderedRoute (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:364544:5)
    at Routes (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365105:5)
    at Router (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365043:15)
    at CompatRouter (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:363070:5)
    at Router (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365996:30)
    at HashRouter (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365469:35)
    at HashRouter (http://localhost:5601/bir/9007199254740991/bundles/plugin/lens/1.0.0/lens.chunk.5.js:16586:3)
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2022:7
    at provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/presentationUtil/1.0.0/presentationUtil.plugin.js:2215:7)
    at Provider (http://localhost:5601/bir/9007199254740991/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:1822:15)
    at PseudoLocaleWrapper (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14199:5)
    at IntlProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:149497:5)
    at I18nProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:14130:3)
    at CurrentEuiBreakpointProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:151824:23)
    at EuiThemeProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:156786:22)
    at EuiCacheProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:129070:20)
    at EuiProvider (http://localhost:5601/bir/9007199254740991/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:129170:25)
    at KibanaThemeProvider (http://localhost:5601/bir/9007199254740991/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:4551:3)
overrideMethod @ console.js:213
printWarning @ react-dom.development.js:67
error @ react-dom.development.js:43
warnAboutUpdateOnUnmountedFiberInDEV @ react-dom.development.js:23914
scheduleUpdateOnFiber @ react-dom.development.js:21840
dispatchAction @ react-dom.development.js:16139
(anonymous) @ use_existing_fields.ts:110
await in (anonymous) (async)
(anonymous) @ use_existing_fields.ts:130
(anonymous) @ use_existing_fields.ts:130
(anonymous) @ use_existing_fields.ts:139
invokePassiveEffectCreate @ react-dom.development.js:23487
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
flushPassiveEffectsImpl @ react-dom.development.js:23574
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushPassiveEffects @ react-dom.development.js:23447
performSyncWorkOnRoot @ react-dom.development.js:22269
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ dimension_editor.tsx:115
setState.isDimensionComplete.isDimensionComplete @ dimension_editor.tsx:148
updater @ config_panel.tsx:63
lens/updateDatasourceState @ lens_slice.ts:480
(anonymous) @ redux-toolkit.cjs.development.js:677
Immer.produce @ immer.cjs.development.js:792
(anonymous) @ redux-toolkit.cjs.development.js:676
reducer @ redux-toolkit.cjs.development.js:655
combination @ redux.js:568
dispatch @ redux.js:296
(anonymous) @ redux-logger.js:1
(anonymous) @ fullscreen_middleware.ts:15
(anonymous) @ index.ts:32
(anonymous) @ optimizing_middleware.ts:19
(anonymous) @ index.ts:21
(anonymous) @ index.js:27
(anonymous) @ redux-toolkit.cjs.development.js:377
(anonymous) @ config_panel.tsx:62
(anonymous) @ config_panel.tsx:75
setTimeout (async)
(anonymous) @ config_panel.tsx:74
(anonymous) @ layer_panel.tsx:179
(anonymous) @ dimension_editor.tsx:132
onClick @ dimension_editor.tsx:450
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4070
executeDispatch @ react-dom.development.js:8243
processDispatchQueueItemsInOrder @ react-dom.development.js:8275
processDispatchQueue @ react-dom.development.js:8288
dispatchEventsForPlugins @ react-dom.development.js:8299
(anonymous) @ react-dom.development.js:8508
batchedEventUpdates$1 @ react-dom.development.js:22396
batchedEventUpdates @ react-dom.development.js:3745
dispatchEventForPluginEventSystem @ react-dom.development.js:8507
attemptToDispatchEvent @ react-dom.development.js:6005
dispatchEvent @ react-dom.development.js:5924
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
discreteUpdates$1 @ react-dom.development.js:22413
discreteUpdates @ react-dom.development.js:3756
dispatchDiscreteEvent @ react-dom.development.js:5889
Show 1 more frame

Any additional context:
The error appears to be thrown from Redux. The logs mention reading store.getState() while a reducer is executing. I'm thinking this may be due to one of the new lensStore.getState() calls (example) we added (at my recommendation) to the config panel being executed asynchronously...

@drewdaemon drewdaemon added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jul 14, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

@stratoula
Copy link
Contributor

@mbondyra it seems very similar with the bug you are trying to solve here #161881, right?

@stratoula
Copy link
Contributor

Yes I think this bug is going to be fixed with Marta's PR, I checked out on her branch and I cant replicate it. @mbondyra can you also confirm? ❤️

mbondyra added a commit that referenced this issue Jul 17, 2023
## Summary

Fixes #161759
Fixes #161854
Fixes #161988
Fixes #161666

This bug surfaced by my change with NativeRenderer removal PR. It
happens because sometimes there are two updates happening at the same
time, in this case
*`setState` coming from optimizing middleware to update the relative
timerange in a call to es
* updating datasource. 
 
Two updates is not a problem and works correctly for the same case for
visualizations etc, but for the `updateDatasourceState` we break one of
the fundamental rules of redux by passing non-serializable prop to
action (an `updater` function that is then called internally with the
previous state). The problem is that in the meantime the state gets
updated from the previous `setState` call. To avoid this problem I
rewrote the `updateDatasourceState` action to not accept updater
function. To avoid these problems in the future I've also included a
`serializableCheck` that ignores dataViews and some other properties
(they contain some non-serializable data, I hope we'll take care of them
in the future)

```
 serializableCheck: {
        ignoredActionPaths: ['lens.dataViews.indexPatterns'],
        ignoredPaths: ['lens.dataViews.indexPatterns'],
      },
```

I also fixed a few small issues, will leave comments in the code.

### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Stratoula Kalafateli <[email protected]>
@mbondyra mbondyra self-assigned this Jul 17, 2023
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 Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants