On Aug 2, 2018, at 12:13, peng wang <pmjz.wang@gmail.com> wrote:
So far, after many tests, I can tell that websocket issue is from Bokeh.
If I just run Flask project on Windows IIS, no problem. As this screenshot shown.
but if I run slider.py in the same environment, problem appears.
So, I just assume the issue is a kind of root Bokeh problem.
Thanks
On Wednesday, August 1, 2018 at 4:47:24 PM UTC-6, peng wang wrote:
Yes, same problem is there, if I use Chrome. Around 3 minutes, websocket is lost automatically.
On Wednesday, August 1, 2018 at 4:40:59 PM UTC-6, Bryan Van de ven wrote:
Great, that will make hopefully make this simple to reproduce. Can you clarify whether the problem also happens when viewing with Chrome?
Thanks,
Bryan
> On Aug 1, 2018, at 15:37, peng wang <pmjz...@gmail.com> wrote:
>
> Sorry, Server is not from CherryPy, I just run slider.py on windows.
>
> Thanks
>
>
> On Wednesday, August 1, 2018 at 4:35:42 PM UTC-6, peng wang wrote:
> I did a test based on your suggestion, environmentis Flask(CherryPy Server, not default flask server ) + Bokeh + IIS(CGI, FastWCGI) + Chrome & IE. I Run slider.py. the issue is still there, please refer to the screenshot below.
>
> Thanks a lot
>
>
>
>
>
> On Wednesday, August 1, 2018 at 4:05:16 PM UTC-6, Bryan Van de ven wrote:
> Additionally:
>
> I believe the first three errors are currently a harmless nuisance, don't worry about them for now (there is an open issue to deal with them).
>
> Also, in the GH issue you make, can you confirm whether this problem happens with other browsers on windows?
>
> Thanks,
>
> Bryan
>
> > On Aug 1, 2018, at 15:03, Bryan Van de ven <bry...@anaconda.com> wrote:
> >
> > Hi,
> >
> > It appears that this network error 12030 is something specific to IE/Edge:
> >
> > javascript - Microsoft Edge Websockets: "SCRIPT12030" error after 30secs - Stack Overflow
> >
> > We will have to try and investigate. Can you do the following things:
> >
> > * see if this same problem happens with the simple sliders.py example
> >
> > https://github.com/bokeh/bokeh/blob/master/examples/app/sliders.py
> >
> > If it does NOT happen with sliders.py, please try to provide a complete minimal script that does exhibit the problem. Being able to reproduce this will be crucial to investigating this. There is basically on chance we will be able to solve this without a way to reproduce the problem.
> >
> > * Make a GitHub issue with all of this information and a link to this thread:
> >
> > Issues · bokeh/bokeh · GitHub
> >
> > Thanks,
> >
> > Bryan
> >
> >> On Aug 1, 2018, at 14:55, peng wang <pmjz...@gmail.com> wrote:
> >>
> >> Thanks for response,
> >>
> >> I run my web application(Flask + Bokeh + IIS + IE ), the info from console is below. I update sourcedata in different threads and CustomJS, some codes are post below.
> >>
> >> About very first 3 errors, I assume that errors are generated because I created several figures and ColumnSourceDatas in different threads, and use queues to update its' sourcedata, but I can not sure. please help me clarify if all figures and ColumnSourceData should be in same *.py.
> >>
> >> Sorry for those codes and thanks for your efforts.
> >>
> >>
> >>
> >> ### code from file01.py
> >>
> >> taptool.callback = CustomJS(args=dict(allSource=mainplot_source, \
> >> novosSource=novos_source, \
> >> subplotSource=subplot_source, \
> >> subplotColorsLength=subplot_colors_length, \
> >> novosLength=novos_length, \
> >> subplot=sub_plot \
> >> ),\
> >> code = """
> >> selection = require("core/util/selection")
> >> indices = selection.get_indices(allSource)
> >> if (novosSource.data['type'][i] === 'OffBottom')
> >> {
> >> if (novosSource.data['status'][i] === null)
> >> continue
> >>
> >> if (novosSource.data['status'][i] === 'Active')
> >> {
> >> subplotSource.data['B2SColors'][6] = 'green'
> >> subplotSource.data['Text'][6] = 'Offbottom-Active'
> >> } else if (novosSource.data['status'][i] === 'Completed')
> >> {
> >> subplotSource.data['B2SColors'][11] = 'green'
> >> subplotSource.data['Text'][11] = 'Offbottom-Completed'
> >> } else
> >> {
> >> if (subplotSource.data['B2SColors'][6] != 'green'){
> >> subplotSource.data['B2SColors'][6] = 'yellow'
> >> subplotSource.data['Text'][6] = 'Offbottom-Active'
> >> }
> >> if (subplotSource.data['B2SColors'][11] != 'green'){
> >> subplotSource.data['B2SColors'][11] = 'yellow'
> >> subplotSource.data['Text'][11] = 'Offbottom-Completed'
> >> }
> >> }
> >> subplotSource.change.emit()
> >> continue
> >> }
> >>
> >>
> >> ## file02.py ####
> >>
> >> @gen.coroutine
> >> def update_main_plot_source(main_plot, main_plot_dict, depth_list, mainplot_data_all, mainplot_source):
> >> mainplot_source.data['HoleDepth'] = update_holeDepth_list(main_plot_dict, mainplot_data_all, depth_list)
> >> mainplot_source.data['VBarTop'] = updateSourceData('VBarTop', main_plot_dict, mainplot_source.data)
> >> mainplot_source.data['VBarBottom'] = updateSourceData('VBarBottom', main_plot_dict, mainplot_source.data)
> >> mainplot_source.data['VBarColors'] = updateSourceData('VBarColors', main_plot_dict, mainplot_source.data)
> >> vBarType_list = updateSourceData('VBarType', main_plot_dict, mainplot_source.data)
> >> mainplot_source.data['VBarType'] = vBarType_list
> >> main_plot.x_range.factors =
> >> main_plot.x_range.factors = depth_list
> >>
> >> @without_document_lock
> >> def update_main_plot_chart( doc, \
> >> update_main_plot_event, \
> >> mainplot_source, \
> >> main_plot, \
> >> mainplot_data_all, \
> >> checkbox_group_1_selections, \
> >> checkbox_group_2_selections,\
> >> checkbox_group_3_selections, \
> >> all_connection_dict,\
> >> rig, \
> >> job, \
> >> from_comboBx_group):
> >> update_main_plot_event.wait()
> >>
> >> main_plot_dict = {}
> >> depth_list =
> >> }
> >>
> >>
> >> ###### file01.py
> >>
> >> update_main_plot_thread = Thread(name='update_main_plot_thread', \
> >> target = lambda q, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12: q.put(all_main_plot.update_main_plot_chart(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12)), \
> >> args = (update_main_plot_queue, \
> >> doc, \
> >> update_main_plot_event, \
> >> mainplot_source, \
> >> main_plot, \
> >> mainplot_data_all, \
> >> checkbox_group_1_selections, \
> >> checkbox_group_2_selections,\
> >> checkbox_group_3_selections, \
> >> all_connection_dict,\
> >> rig, \
> >> job, \
> >> from_comboBx_group))
> >> update_main_plot_thread.start()
> >> update_main_plot_event.set()
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> On Wednesday, August 1, 2018 at 2:59:25 PM UTC-6, Bryan Van de ven wrote:
> >> Hi,
> >>
> >> I can't reproduce any issue on OSX/Safari, I left a tab open and unused for 10 minutes and it worked fine after I returned to it. As far as I know, 1006 if for when the browser itself abnormally terminates a websocket connection for some reason. What platform/browser are you seeing this on? Can you reproduce this effect with any other browsers? Is there any error output in the server console when the session terminates, if you run the server with --log-level=trace?
> >>
> >> Thanks,
> >>
> >> Bryan
> >>
> >>> On Aug 1, 2018, at 13:28, peng wang <pmjz...@gmail.com> wrote:
> >>>
> >>> Hi Guys,
> >>>
> >>> Currently, I stuck on the issue which the websocket keeps alive around 3 mintue, and then I get this message
> >>>
> >>> "[bokeh] Lost websocket 0 connection, 1006 ()"
> >>> "connection.js:95 [bokeh] Websocket connection 0 disconnected, will not attempt to reconnect"
> >>>
> >>> What could I do if I like to keep wbsocket always open? I spend lot of tome on it and still have no any ideas.
> >>>
> >>> Welcome any suggestions
> >>>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> >>> To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.
> >>> To post to this group, send email to bo...@continuum.io.
> >>> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2a37f65d-df49-42a6-82ff-1c5296cd8ce2%40continuum.io\.
> >>> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
> >>
> >>
> >> --
> >> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.
> >> To post to this group, send email to bo...@continuum.io.
> >> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/0fe72aef-653a-4193-b490-7a7cae3562f8%40continuum.io\.
> >> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
> >
>
>
> --
> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/6b2c614a-82e8-4843-bbe0-aa838b9568a2%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4a35f3df-4c38-4e10-a7bf-c7b71860b910%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.