-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
Describe your context
dash 1.20.0
dash-bootstrap-components 0.12.2
dash-core-components 1.16.0
dash-html-components 1.1.3
dash-renderer 1.9.1
dash-table 4.11.3
-
if frontend related, tell us your Browser, Version and OS
- OS: macOS Big Sur
- Browser: Chrome
- Version: 90.0.4430.212 (Official Build) (x86_64)
Describe the bug
When clicking the green box in the callback graph for a specific callback with circular dependencies, the callback graph crashes with the following stack trace:
RangeError: Maximum call stack size exceeded
at RegExp.exec (<anonymous>)
at RegExp.[Symbol.replace] (<anonymous>)
at String.replace (<anonymous>)
at cleanMetaChars (http://127.0.0.1:8080/_dash-component-suites/dash_renderer/dash_renderer.v1_9_1m1617985068.dev.js:16216:14)
at Object.populate (http://127.0.0.1:8080/_dash-component-suites/dash_renderer/dash_renderer.v1_9_1m1617985068.dev.js:16315:14)
at Selector.parse (http://127.0.0.1:8080/_dash-component-suites/dash_renderer/dash_renderer.v1_9_1m1617985068.dev.js:16723:31)
at new Selector (http://127.0.0.1:8080/_dash-component-suites/dash_renderer/dash_renderer.v1_9_1m1617985068.dev.js:17209:15)
at Collection.filter (http://127.0.0.1:8080/_dash-component-suites/dash_renderer/dash_renderer.v1_9_1m1617985068.dev.js:19727:14)
at getEdgeTypes (http://127.0.0.1:8080/_dash-component-suites/dash_renderer/dash_renderer.v1_9_1m1617985068.dev.js:97032:21)
at ascend (http://127.0.0.1:8080/_dash-component-suites/dash_renderer/dash_renderer.v1_9_1m1617985068.dev.js:97057:19)
The above error occurred in the <CallbackGraph> component:
in CallbackGraph (created by UnconnectedCallbackGraphContainer)
in UnconnectedCallbackGraphContainer (created by ConnectFunction)
in ConnectFunction (created by DebugMenu)
in div (created by DebugMenu)
in div (created by DebugMenu)
in div (created by DebugMenu)
in DebugMenu (created by UnconnectedGlobalErrorContainer)
in div (created by UnconnectedGlobalErrorContainer)
in UnconnectedGlobalErrorContainer (created by withRadiumContexts(UnconnectedGlobalErrorContainer))
in withRadiumContexts(UnconnectedGlobalErrorContainer) (created by ConnectFunction)
in ConnectFunction (created by UnconnectedContainer)
in UnconnectedContainer (created by ConnectFunction)
in ConnectFunction (created by UnconnectedAppContainer)
in UnconnectedAppContainer (created by ConnectFunction)
in ConnectFunction (created by AppProvider)
in Provider (created by AppProvider)
in AppProvider
React will try to recreate this component tree from scratch using the error boundary you provided, UnconnectedCallbackGraphContainer.
So far I haven't reproduced this bug individually so I don't know if it's caused by the circular dependency - I will update this issue with more information if I manage to reproduce it.
Confirmed that it is reproducible with the simple circular callback example from the Dash docs.
Expected behavior
Should show stats for that callback when clicking the box.
Screenshots
astrowonk and Aaron-Wrote-This
Metadata
Metadata
Assignees
Labels
No labels

