Harm
August 26, 2020, 9:51am
1
Hi, we just upgraded to Bokeh 2.2 and our application does not render all components in the UI. We see no error in the console, but in the front end we get the following error:
We have no idea what could be the cause or how to debug this. Does anyone have any suggestions?
In Bokeh 2.1 everything runs fine.
Thanks!
Looks like a bug, because whatever you do, bokehjs shouldn’t fail like this. However, without more specifics, e.g. browser platform, and especially a reproducible test case, it will be hard for us to help you out.
Harm
August 26, 2020, 1:19pm
3
Thanks, it is helpful to know that the cause may be in bokehjs.
Some additional info: Windows 10, Edge (Chromium version).
Test case will be hard to extract, but we will try to pinpoint it some more.
Harm
March 1, 2021, 11:03am
4
Managed to find a repro. Issue filed here:
opened 11:00AM - 01 Mar 21 UTC
type: bug
tag: component: bokehjs
#### ALL software version info (bokeh, python, notebook, OS, browser, any other … relevant packages)
bokeh 2.3, python 3.7, OS windows, browser chromium
#### Description of expected behavior and the observed behavior
I expect the code below not to lead to an error in the front-end, which was the case up to Bokeh 2.1.1
Since Bokeh 2.2 it gives an error, see screenshot below.
@mattpap mentioned on the discourse page it should not give this error in any case: https://discourse.bokeh.org/t/bokeh-2-2-page-does-not-render-need-help-debugging/6221
When this error occurs it stops rendering the rest of the page.
I guess the dict does not have the structure that the columndatasource component expects, but I would expect an error on the backend side then.
#### Complete, minimal, self-contained example code that reproduces the issue
```
from bokeh.plotting import curdoc, figure
from bokeh.models import ColumnDataSource
source = ColumnDataSource(data={'xs': [1, 1, 1],
'ys': [3, 3, 3],
'labels': ['one', 'two', 'three']})
p = figure(title="Plot", name="p",
match_aspect=False, sizing_mode="stretch_both")
p = figure(width=600, height=300)
p.multi_line(xs='xs', ys='ys', legend_group='labels', source=source)
curdoc().add_root(p)
```
#### Stack traceback and/or browser JavaScript console output & screenshots or screencasts of the bug in action
![image](https://user-images.githubusercontent.com/7702207/109487942-2f6f6280-7a85-11eb-9199-ccb6bbbb1afb.png)
Bryan
March 1, 2021, 5:16pm
5
This was fixed in the latest 2.3 version, released earlier this week. The solution is to upgrade.