RStudio GUI crash by use of manipulateWidget function

crash-report

#1

Hi,

after upgrading Rstudio to the newest version 1.1.453, I experience GUI crash when using the manipulateWidget function with the following code:

manipulateWidget(dygraph(Fdata.dg[as.POSIXct(range[1])<=index(Fdata.dg) & as.POSIXct(range[2]) >= index(Fdata.dg),c("01","02","03")],main="Test",group="TestGroup")
%>% dyAxis("y", label = "Y-Axis Test", valueRange = c(0,100)) %>% dyLegend(width=500) %>%
dyOptions(colors = mycol[which(colnames(Fdata.dg) %in% series)],titleHeight = 60) %>%
dyRoller(rollPeriod=1) %>% dyRangeSelector(),
range = mwDateRange(value=c(index(first(Fdata.dg)),index(last(Fdata.dg))+86400),label="Timerange"),
series = mwSelect(colnames(Fdata.dg),value="01",multiple = T),
.viewer = "window" )

save.image()

Fdata is a xts object containing three columns of numeric data in a time series.
When the save.image statement is active, then sourcing the script crashes the GUI every time.
Without the save.image(), the crash comes frequently after closing the shiny window.

The previous version of Rstudio did not show up any problems with this.

Thanks for help

Environment: Windows 7 SP1 32 bit, R 3.5.0, manipulateWidget 0.9.0


#2

Hi woec. Welcome to community. Sorry about your troubles. In terms of diagnosing your issues, could you provide some additional info from the RStudio IDE team's RStudio Crash Guide?


#3

Good Morning,

below I submit additional infos requested:

Output of sessionInfo() executed in standard R-console:
sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C LC_TIME=German_Germany.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] ggplot2_2.2.1 xlsx_0.5.7 xlsxjars_0.6.1 rJava_0.9-10 latticeExtra_0.6-28 RColorBrewer_1.1-2
[7] lattice_0.20-35

loaded via a namespace (and not attached):
[1] Rcpp_0.12.17 grid_3.5.0 plyr_1.8.4 gtable_0.2.0 scales_0.5.0 pillar_1.2.3 rlang_0.2.1
[8] lazyeval_0.2.1 munsell_0.4.3 compiler_3.5.0 colorspace_1.3-2 tibble_1.4.2

Below, the testcode, which crashes the RStudio GUI

library(xts)
library(dygraphs)
library(manipulateWidget)


mycol<-c("magenta","red","blue","green","grey","brown","orange","purple","cyan","brown")

manipulateWidget(dygraph(Fdata.dg[as.POSIXct(range[1])<=index(Fdata.dg) & as.POSIXct(range[2]) >= index(Fdata.dg),c("01","02","03")],main="Test",group="TestGroup") 
                 %>% dyAxis("y", label = "Y-Axis Test", valueRange = c(0,100)) %>% dyLegend(width=500) %>%
                   dyOptions(colors = mycol[which(colnames(Fdata.dg) %in% series)],titleHeight = 60) %>% 
                   dyRoller(rollPeriod=1)  %>% dyRangeSelector(),
                 range = mwDateRange(value=c(index(first(Fdata.dg)),index(last(Fdata.dg))+86400),label="Timerange"),
                 series = mwSelect(colnames(Fdata.dg),value="01",multiple = T),
                 .viewer = "window" )

save.image()

Below the RStudio GUI crash message:
image

No crashdump is written

Remark: The crash does not appear if the code is executed within a native R-console.

Thank you for help
woec