plotly / plotly/plotly.R

Gtk-Message: GtkDialog mapped without a transient parent

未关闭
#1,746 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
R
星标
2.7k
派生
641
PR 合并指标
30 天内没有已合并 PR

描述

I installed orca 1.3.1 on my RStudio docker (Debian GNU/Linux 9 (stretch)). I am unable to export the image and I keep getting a warning related to Fontconfig + GTK-Message that I don't know if they are related to the issue or not.

sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 9 (stretch)

other attached packages:
[1] webshot_0.5.1 plotly_4.9.2.1 ggplot2_3.3.0 processx_3.4.2

I created a simple plot and when calling orca(),

> today <- Sys.Date()
> tm <- seq(0, 2, by = 1)
> x <- today - tm
> y <- rnorm(length(x))
> fig <- plot_ly(x = ~x, y = ~y, mode = 'lines', text = paste(tm, "days from today"))
> orca(fig, "foo.svg") # No error message but never finish
Unknown element "blank"tc/fonts/fonts.conf", line 100: 
Unable to revert mtime: /usr/local/share/fonts
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
/

What's interesting is that I tried to create another simple figure from a terminal and it did created a png file although the name of the output file is different.

root@ae51f6d6054c:/home/rstudio/doodle# orca graph '{ "data": [{"y": [1,2,1]}] }' -o foo.png
Fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"

done with code 1 in 164.75 ms - failed or incomplete task(s)
root@ae51f6d6054c:/home/rstudio/doodle# ls foo_1.png 
foo_1.png

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 issue 中描述的 R orca() 调用和等效的 orca graph CLI 调用开始,比较它们的输出文件名、退出状态和完成行为。检查 Fontconfig 和 GTK 警告与导出失败之间的关系;当请求的图像导出成功完成且不存在未完成的任务时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, r
领域
cli, data-visualization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。