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

panel.widgets.Debugger causes Bokeh javascript TypeError: Cannot read properties of undefined (reading 'offsetWidth') #6416

Closed
1 task
giftculture opened this issue Feb 29, 2024 · 0 comments · Fixed by #6423

Comments

@giftculture
Copy link

ALL software version info

pn.version
Out[3]: '1.3.8'

bokeh.version
Out[5]: '3.3.4'

panel.min.js version 1.3.8
bokeh min js version 3.3.4

Chrome version Version 117.0.5938.149 (Official Build) (arm64)
Safari version Version 17.1 (19616.2.9.11.7)

Description of expected behavior and the observed behavior

Debugger panel caused javascript errors which break rendering and further interaction with location.sync

bokeh-3.3.4.min.js:163 Error rendering Bokeh items: TypeError: Cannot read properties of undefined (reading 'offsetWidth')
at c.fit (panel.min.js:148:1381)
at c.after_layout (panel.min.js:148:1790)
at n.after_layout (bokeh-3.3.4.min.js:560:6174)
at n.compute_layout (bokeh-3.3.4.min.js:560:5574)
at n.invalidate_layout (bokeh-3.3.4.min.js:560:6901)
at n.after_render (bokeh-3.3.4.min.js:560:6594)
at n.after_render (panel.min.js:52:1505)
at n.r_after_render (bokeh-3.3.4.min.js:560:6521)
at n.render_to (bokeh-3.3.4.min.js:560:6357)
at bokeh-3.3.4.min.js:218:834

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn
import logging
logger = logging.getLogger(__name__)

pn.extension('terminal', console_output='disable')

pn.widgets.Debugger(
    name='Debugger', level=logging.INFO
).servable()

Stack traceback and/or browser JavaScript console output

bokeh-3.3.4.min.js:163 Error rendering Bokeh items: TypeError: Cannot read properties of undefined (reading 'offsetWidth')
at c.fit (panel.min.js:148:1381)
at c.after_layout (panel.min.js:148:1790)
at n.after_layout (bokeh-3.3.4.min.js:560:6174)
at n.compute_layout (bokeh-3.3.4.min.js:560:5574)
at n.invalidate_layout (bokeh-3.3.4.min.js:560:6901)
at n.after_render (bokeh-3.3.4.min.js:560:6594)
at n.after_render (panel.min.js:52:1505)
at n.r_after_render (bokeh-3.3.4.min.js:560:6521)
at n.render_to (bokeh-3.3.4.min.js:560:6357)
at bokeh-3.3.4.min.js:218:834
Screenshot 2024-02-29 at 15 29 34

Screenshots or screencasts of the bug in action

  • I may be interested in making a pull request to address this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant