dreamRs / esquisse

RStudio add-in to make plots interactively with ggplot2
https://dreamrs.github.io/esquisse
Other
1.76k stars 227 forks source link

Not working in R Studio Workbench (former Server Pro) (gray overlay) #204

Closed kalaschnik closed 2 years ago

kalaschnik commented 2 years ago

Hey,

I cannot get esquisse to work within an R Studio Workbench (former R Studio Server) environment. I tried installing the package locally in the user lib and also in the system lib. No difference. There is this gray overlay, and I cannot click any buttons apart from the visualization type. But I cannot select any data to work with... any ideas how to debug this?

https://user-images.githubusercontent.com/9831678/154675357-1eaa617c-67b0-4c5a-bbb2-4c8245acffc4.mp4

ncorder-lilly commented 2 years ago

How long are you waiting before exiting the interface? I am experiencing the same grey screen initially, but the new data loader interface appears after waiting (as long as 20 seconds in some instances).

kalaschnik commented 2 years ago

I left the tab actively open for a couple of minutes now... the gray overlay is still present and I cannot interact with the UI

pvictor commented 2 years ago

Yes something is definetely wrong. Can you try to launch esquisse in a browser's tab to see if the result is the same, with :

esquisse::esquisser(viewer = "browser")
kalaschnik commented 2 years ago

Still grayed-out; is there any debug log, I could send?

The console includes some warnings/error; there is a websocket connection error? The server lives behind a corporate firewall, maybe it cannot reach out to a required resource?

image
pvictor commented 2 years ago

Mmh weird, is this specific to esquisse ? can you try both examples below ?

colourpicker:::colourPickerAddin()

# or

library(shiny)
runGadget(
  app = fluidPage(
    tags$h1("HELLO!")
  ), 
  server = function(...) {}, 
  viewer = dialogViewer("Dialog")
)
kalaschnik commented 2 years ago

Good spot, I get gray overlays also on both of your examples. So not an esquisse issue! I will file an issue in the rstudio repo! Thanks for helping investigate!

kalaschnik commented 2 years ago

For reference and help: https://github.com/rstudio/rstudio/issues/3562

kalaschnik commented 2 years ago

FYI; We are using Apache and we were missing the proxy_wstunnel module. After installing it, shiny apps were not grayed-out anymore. Project sharing also works! Install the apache module with sudo a2enmod proxy_wstunnel