Closed ghost closed 9 years ago
That's not good! I can't think of a reason why this would happen and what it would have to do with rbokeh. I tried unsuccessfully to replicate this on OS X and Ubuntu 12.04 with various packages from your list above. It appears you are using RStudio (I see rstudioapi package)? That might have something to do with it. Could you provide the sequence in which your libraries are loaded?
Also, if you are using RStudio, could you try the same thing from running R in the console?
here is the library loading sequence:
data.table, zoo, lubridate, reshape2, ggplot2, treemap, stringr, gdata, scales, knitr,plyr,
DMwR, corrgram, psych, mi, Hmisc, DescTools, jsonlite, RCurl, gridExtra, qcc, vcd
Using RStudio 0.99.335.
Very good idea to check from the command line. I just sourced from RStudio and it crashed, then sourced from the command line and from there rbokeh runs without any problem.
Interesting. Now I'm interested to know if this happens with any other htmlwidgets. Also, can you get some kind of log from RStudio? This might be an issue to report to them.
No fun that you can't create rbokeh plots though. I wonder if you could single out a package that when mixed with rbokeh makes things crash.
I just tried library(DT) and the same thing happens.
There is a utility to get crash logs from Rstudio [https://support.rstudio.com/hc/en-us/articles/200488528-RStudio-Backtrace-Utility], but it just creates sessionInfo(). Maybe because I have to xkill it because it hangs completely.
My solution sofar has been to create the data, save them and then start a new session in a separate project. That works fine. I will let the RStudio people know.
Phew - glad it's not specific to rbokeh as I would have no idea what's causing it. Hopefully RStudio can shed some light.
Thanks! We'll follow up on the support forum.
It looks like the following will also reproduce this:
library(DescTools)
library(dygraphs)
dygraph(ldeaths)
Note that DescTools loads the Tcl/Tk package.
The stack in RStudio at the time of the hang is:
This looks like a hang of the TclTk event loop and it also appears to be somewhat timing related. Note that RStudio on Linux isn't generally compatible with TclTk GUI components (due to event loop issues like this one). I'm not sure whether there is anything we can do to resolve this other than to warn away from using TclTk within RStudio.
So to make sure I understand, the issue is that having a completely non-related package loaded that uses Tcl/Tk is the culprit?
Yes that's exactly right. That package + any htmlwidget + the right timing will produce the crash. This is not an rbokeh issue at all.
On Thu, May 7, 2015 at 12:24 PM, hafen notifications@github.com wrote:
So to make sure I understand, the issue is that having a completely non-related package loaded that uses Tcl/Tk is the culprit?
— Reply to this email directly or view it on GitHub https://github.com/bokeh/rbokeh/issues/67#issuecomment-99927393.
Closing this as it is not an rbokeh issue. Thanks!
In a new R session I can repeatedly run this:
However when I run this in an environment where I have my packages loaded, rbokeh crashes either immediately or after 1-2 times. "Crash" = hang so badly that I have to xkill R.
What would be the best method to find the problem?
Here is my session info. Also included is the rbokeh startup message for ggplot2.
Thanks!