plotly / orca

Command line application for generating static images of interactive plotly charts
MIT License
295 stars 39 forks source link

Orca and Gtk - Dialog mapped without a transient parent. This is discouraged. #319

Open rbartosinski opened 4 years ago

rbartosinski commented 4 years ago

Hello,

I would like to use Orca via R/RStudio Pro installed on RHEL7.7 but I'm receiving this error message.

library(plotly) p <- plot_ly(x = 1:10, y = 1:10, color = 1:10) orca(p, "plot.svg") No trace type specified: Based on info supplied, a 'scatter' trace seems appropriate. Read more about this trace type -> https://plot.ly/r/reference/#scatter No scatter mode specifed: Setting the mode to markers Read more about this attribute -> https://plot.ly/r/reference/#scatter-mode Gtk-Message: 09:29:48.774: GtkDialog mapped without a transient parent. This is discouraged.

Orca is in version 1.3.1 and it's working only via xvfb: xvfb-run -a orca "$@"

I wonder about if the issue is on Orca or GTK side.

I tried to reinstall GTK, and Orca but without the effect.

Strange behavior I noticed too because for one user of OS/RStudio it's working. Plot is generating well, for only one user. It is not displayed but file plot.svg exists. For other users tehre is a message about transient parent.

I saw documentation of GTK https://developer.gnome.org/gtk3/stable/GtkWindow.html and that the error message can be related with gtk_window_set_transient_for() option, however I don't know where exactly I should to set this parameter and if it will be work with Orca as well.

Do you maybe know? Did you have earlier messages related with this error?

Best, Radek