r-lib / profvis

Visualize R profiling data
https://profvis.r-lib.org/
Other
305 stars 38 forks source link

Data tab hangs when you use special javascript function names #132

Open giovannic opened 3 years ago

giovannic commented 3 years ago

Systems:

RStudio Server - Version 1.4.1106 - "Tiger Daylily" (2389bc24, 2021-02-11) for Ubuntu Bionic RStudio Desktop - Version 1.4.1106 - "Tiger Daylily" (2389bc24, 2021-02-11) for macOS)

Steps to recreate:

  1. Run the following code and wait for the profile tab to open
work <- function(x) {
  Sys.sleep(1)
}

toString <- function(a) {
  for (x in a) {
    work(x)
  }
}

profvis::profvis(toString(seq(5)))
  1. Click on the "data" tab in the profile

Expected behaviour:

Code tree appears

Actual behaviour:

Tab is blank indefinitely

131 is closed but shows a solution