bokeh: [BUG] Google Chrome 130 fails to draw figure, throws `TypeError: Failed to execute 'fill' on 'CanvasRenderingContext2D'`
Software versions
Python version : 3.12.0 (main, Oct 26 2023, 16:32:05) [Clang 15.0.0 (clang-1500.0.40.1)] IPython version : 8.28.0 Tornado version : 6.4 NumPy version : 1.26.4 Bokeh version : 3.6.0 BokehJS static path : /Users/eatas/git_repo/repo_a/venv/lib/python3.12/site-packages/bokeh/server/static node.js version : v18.20.2 npm version : 10.5.0 jupyter_bokeh version : (not installed) Operating system : macOS-14.6.1-arm64-arm-64bit
Browser name and version
Google Chrome 130+ (Reproduced in Version 130.0.6723.19 (Official Build) beta (arm64))
Jupyter notebook / Jupyter Lab version
No response
Expected behavior
Expected to show figure on Chrome
Observed behavior
Bokeh does not work, showing only sidebar and throwing errors on console
Starting from Google 130, we started to observe these javascript errors even on a basic figure example taken from Bokeh docs. Reproduced in multiple laptops.
Example code
from bokeh.plotting import figure, show
plot = figure(width=300, height=300)
plot.annulus(x=[1, 2, 3], y=[1, 2, 3], color="#7FC97F",
inner_radius=0.2, outer_radius=0.5)
show(plot)
Stack traceback or browser console output
bokeh-3.6.0.min.js:185 [bokeh 3.6.0] setting log level to: 'info'
bokeh-3.6.0.min.js:256 Uncaught (in promise) TypeError: Failed to execute 'fill' on 'CanvasRenderingContext2D': The provided value 'undefined' is not a valid enum value of type CanvasFillRule.
at c.apply (bokeh-3.6.0.min.js:256:264)
at o._paint_empty (bokeh-3.6.0.min.js:623:18180)
at o._actual_paint (bokeh-3.6.0.min.js:623:16812)
at o.paint (bokeh-3.6.0.min.js:623:15775)
at o._after_layout (bokeh-3.6.0.min.js:623:15470)
at o.after_layout (bokeh-3.6.0.min.js:588:6020)
at o.compute_layout (bokeh-3.6.0.min.js:588:5400)
at o.invalidate_layout (bokeh-3.6.0.min.js:588:6198)
at o._after_render (bokeh-3.6.0.min.js:588:6074)
at o.after_render (bokeh-3.6.0.min.js:277:2318)
3bokeh-3.6.0.min.js:256 Uncaught (in promise) TypeError: Failed to execute 'fill' on 'CanvasRenderingContext2D': The provided value 'undefined' is not a valid enum value of type CanvasFillRule.
at c.apply (bokeh-3.6.0.min.js:256:264)
at o._paint_empty (bokeh-3.6.0.min.js:623:18180)
at o._actual_paint (bokeh-3.6.0.min.js:623:16812)
at o.paint (bokeh-3.6.0.min.js:623:15775)
at o.repaint (bokeh-3.6.0.min.js:623:15643)
at bokeh-3.6.0.min.js:623:3700
at a (bokeh-3.6.0.min.js:627:187)
apply @ bokeh-3.6.0.min.js:256
_paint_empty @ bokeh-3.6.0.min.js:623
_actual_paint @ bokeh-3.6.0.min.js:623
paint @ bokeh-3.6.0.min.js:623
repaint @ bokeh-3.6.0.min.js:623
(anonymous) @ bokeh-3.6.0.min.js:623
a @ bokeh-3.6.0.min.js:627
requestAnimationFrame
(anonymous) @ bokeh-3.6.0.min.js:627
setTimeout
(anonymous) @ bokeh-3.6.0.min.js:627
r @ bokeh-3.6.0.min.js:627
schedule_paint @ bokeh-3.6.0.min.js:623
request_paint @ bokeh-3.6.0.min.js:623
request_repaint @ bokeh-3.6.0.min.js:623
unpause @ bokeh-3.6.0.min.js:623
update_range @ bokeh-3.6.0.min.js:623
_update @ bokeh-3.6.0.min.js:684
_pan @ bokeh-3.6.0.min.js:684
i @ bokeh-3.6.0.min.js:500
trigger @ bokeh-3.6.0.min.js:500
__trigger @ bokeh-3.6.0.min.js:500
_trigger @ bokeh-3.6.0.min.js:500
on_pan @ bokeh-3.6.0.min.js:500
on_pan @ bokeh-3.6.0.min.js:470
_pointer_move @ bokeh-3.6.0.min.js:470
bokeh-3.6.0.min.js:256 Uncaught (in promise) TypeError: Failed to execute 'fill' on 'CanvasRenderingContext2D': The provided value 'undefined' is not a valid enum value of type CanvasFillRule.
at c.apply (bokeh-3.6.0.min.js:256:264)
at o._paint_empty (bokeh-3.6.0.min.js:623:18180)
at o._actual_paint (bokeh-3.6.0.min.js:623:16812)
at o.paint (bokeh-3.6.0.min.js:623:15775)
at o.repaint (bokeh-3.6.0.min.js:623:15643)
at bokeh-3.6.0.min.js:623:3700
at a (bokeh-3.6.0.min.js:627:187)
apply @ bokeh-3.6.0.min.js:256
_paint_empty @ bokeh-3.6.0.min.js:623
_actual_paint @ bokeh-3.6.0.min.js:623
paint @ bokeh-3.6.0.min.js:623
repaint @ bokeh-3.6.0.min.js:623
(anonymous) @ bokeh-3.6.0.min.js:623
a @ bokeh-3.6.0.min.js:627
requestAnimationFrame
(anonymous) @ bokeh-3.6.0.min.js:627
r @ bokeh-3.6.0.min.js:627
schedule_paint @ bokeh-3.6.0.min.js:623
request_paint @ bokeh-3.6.0.min.js:623
request_repaint @ bokeh-3.6.0.min.js:623
unpause @ bokeh-3.6.0.min.js:623
update_range @ bokeh-3.6.0.min.js:623
_update @ bokeh-3.6.0.min.js:684
_pan @ bokeh-3.6.0.min.js:684
i @ bokeh-3.6.0.min.js:500
trigger @ bokeh-3.6.0.min.js:500
__trigger @ bokeh-3.6.0.min.js:500
_trigger @ bokeh-3.6.0.min.js:500
on_pan @ bokeh-3.6.0.min.js:500
on_pan @ bokeh-3.6.0.min.js:470
_pointer_move @ bokeh-3.6.0.min.js:470
Screenshots
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (14 by maintainers)
Feel better @mattpap I have submitted https://issues.chromium.org/u/1/issues/372907704
ran it such as:
Hope it helps!