jmv crashes RStudio Windows 10

I need to work with the jmv library to create jamovi-output in rexams because of teaching reasons.

Since two or three weeks the call to the jmv library results in a fatal error and RStudio-IDE has to be restarted. The problem exists also on two other PCs with a similar configuration. Unfortunately I can not trace back if this new behaviour is due to a windows update or a package update.

Any idea?

knitr::opts_chunk$set(echo = TRUE)

library(tidyverse)
library(jmv)

sessionInfo()

df <- tibble(x = rnorm(100))
summary(df)
jmv::descriptives(data = df, vars = x)

sessionInfo()-Output:

R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=German_Switzerland.utf8
[2] LC_CTYPE=German_Switzerland.utf8
[3] LC_MONETARY=German_Switzerland.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=German_Switzerland.utf8

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

other attached packages:
[1] jmv_2.3.4 forcats_0.5.1 stringr_1.4.0
[4] dplyr_1.0.9 purrr_0.3.4 readr_2.1.2
[7] tidyr_1.2.0 tibble_3.1.7 ggplot2_3.3.6
[10] tidyverse_1.3.1

loaded via a namespace (and not attached):
[1] tidyselect_1.1.2 xfun_0.31 haven_2.5.0
[4] colorspace_2.0-3 vctrs_0.4.1 generics_0.1.2
[7] htmltools_0.5.2 yaml_2.3.5 utf8_1.2.2
[10] rlang_1.0.3 pillar_1.7.0 withr_2.5.0
[13] glue_1.6.2 DBI_1.1.3 dbplyr_2.2.1
[16] modelr_0.1.8 readxl_1.4.0 lifecycle_1.0.1
[19] jmvcore_2.3.12 munsell_0.5.0 gtable_0.3.0
[22] cellranger_1.1.0 rvest_1.0.2 evaluate_0.15
[25] knitr_1.39 tzdb_0.3.0 fastmap_1.1.0
[28] fansi_1.0.3 broom_0.8.0 scales_1.2.0
[31] backports_1.4.1 jsonlite_1.8.0 fs_1.5.2
[34] hms_1.1.1 digest_0.6.29 stringi_1.7.6
[37] grid_4.2.0 cli_3.3.0 tools_4.2.0
[40] magrittr_2.0.3 crayon_1.5.1 pkgconfig_2.0.3
[43] ellipsis_0.3.2 xml2_1.3.3 reprex_2.0.1
[46] lubridate_1.8.0 assertthat_0.2.1 rmarkdown_2.14
[49] httr_1.4.3 rstudioapi_0.13 R6_2.5.1
[52] compiler_4.2.0

RStudio-Logfile:

2022-06-29T13:10:43.696049Z [rsession-balbu] WARNING findProgramOnPath returns wrong result: C:\Users\balbu\AppData\Roaming\TinyTeX\bin\win32\pdflatex.exe != C:/Users/balbu/AppData/Roaming/TinyTeX/bin/win32/pdflatex.exe; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::session::module_context::findProgram(const class std::basic_string<char,struct std::char_traits,class std::allocator > &) C:\Users\jenkins\workspace\ide\open-source-pipeline\prairie-trillium\src\cpp\session\SessionModuleContext.cpp:1225
2022-06-29T13:10:43.696049Z [rsession-balbu] WARNING findProgramOnPath returns wrong result: C:\Users\balbu\AppData\Roaming\TinyTeX\bin\win32\pdflatex.exe != C:/Users/balbu/AppData/Roaming/TinyTeX/bin/win32/pdflatex.exe; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::session::module_context::findProgram(const class std::basic_string<char,struct std::char_traits,class std::allocator > &) C:\Users\jenkins\workspace\ide\open-source-pipeline\prairie-trillium\src\cpp\session\SessionModuleContext.cpp:1225
2022-06-29T13:10:43.709015Z [rsession-balbu] WARNING findProgramOnPath returns wrong result: C:\Users\balbu\AppData\Roaming\TinyTeX\bin\win32\pdflatex.exe != C:/Users/balbu/AppData/Roaming/TinyTeX/bin/win32/pdflatex.exe; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::session::module_context::findProgram(const class std::basic_string<char,struct std::char_traits,class std::allocator > &) C:\Users\jenkins\workspace\ide\open-source-pipeline\prairie-trillium\src\cpp\session\SessionModuleContext.cpp:1225
2022-06-29T13:10:43.709015Z [rsession-balbu] WARNING findProgramOnPath returns wrong result: C:\Users\balbu\AppData\Roaming\TinyTeX\bin\win32\pdflatex.exe != C:/Users/balbu/AppData/Roaming/TinyTeX/bin/win32/pdflatex.exe; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::session::module_context::findProgram(const class std::basic_string<char,struct std::char_traits,class std::allocator > &) C:\Users\jenkins\workspace\ide\open-source-pipeline\prairie-trillium\src\cpp\session\SessionModuleContext.cpp:1225
2022-06-29T13:10:45.721711Z [rsession-balbu] ERROR CLIENT EXCEPTION (rsession-balbu): (TypeError) : Cannot read property 'O' of null;|||org/rstudio/studio/client/workbench/views/source/editors/text/AceEditor.java#4516::setScrollSpeed|||org/rstudio/studio/client/workbench/views/source/editors/text/AceEditorMonitor.java#46::monitor|||org/rstudio/studio/client/workbench/views/source/editors/text/AceEditorMonitor.java#70::execute|||com/google/gwt/core/client/impl/SchedulerImpl.java#140::execute|||com/google/gwt/core/client/impl/Impl.java#306::apply|||com/google/gwt/core/client/impl/Impl.java#345::entry0|||rstudio-0.js#-1::eval|||com/google/gwt/cell/client/AbstractEditableCell.java#41::viewDataMap|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36
2022-06-29T13:10:45.721711Z [rsession-balbu] ERROR CLIENT EXCEPTION (rsession-balbu): (TypeError) : Cannot read property 'O' of null;|||org/rstudio/studio/client/workbench/views/source/editors/text/AceEditor.java#4516::setScrollSpeed|||org/rstudio/studio/client/workbench/views/source/editors/text/AceEditorMonitor.java#46::monitor|||org/rstudio/studio/client/workbench/views/source/editors/text/AceEditorMonitor.java#70::execute|||com/google/gwt/core/client/impl/SchedulerImpl.java#140::execute|||com/google/gwt/core/client/impl/Impl.java#306::apply|||com/google/gwt/core/client/impl/Impl.java#345::entry0|||rstudio-0.js#-1::eval|||com/google/gwt/cell/client/AbstractEditableCell.java#41::viewDataMap|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

There is a bug in R 4.2.0 that causes a crash on RStudio running on Windows systems when getlocale() is used, maybe this function is used within the package, you can try updating to R 4.2.1 which already has a patch for this bug.

  • C function getlocale no longer attempts to query an unsupported category from the OS, even when requested at R level, which may cause crashes when R 4.2.0 (which uses UCRT) is embedded (reported by Kevin Ushey).

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.