RStudio v. 1.4 and pre-released Build 341 crash every single time on R 4.1.1 32-bit but works fine on 64-bit

Crash Information:

Description of crash -

Steps to reproduce -

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: 2021.09.0 Build 341 and 1.4.1717
  • OS Version: Window 10 Enterprise
  • R Version: R.Version()
    $platform
    [1] "i386-w64-mingw32"

$arch
[1] "i386"

$os
[1] "mingw32"

$system
[1] "i386, mingw32"

$status
[1] ""

$major
[1] "4"

$minor
[1] "1.1"

$year
[1] "2021"

$month
[1] "08"

$day
[1] "10"

$svn rev
[1] "80725"

$language
[1] "R"

$version.string
[1] "R version 4.1.1 (2021-08-10)"

$nickname
[1] "Kick Things"

  • Your sessionInfo():

sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

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

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

loaded via a namespace (and not attached):
[1] compiler_4.1.1 tools_4.1.1

Crash Report:

Also:

  • RStudio diagnostics report:2021-09-15T08:32:01.752132Z [rsession-Chinh Ho] ERROR system error 22 (The device does not recognize the command); OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::crash_handler::initialize(enum rstudio::core::crash_handler::ProgramMode) src/cpp/core/CrashHandler.cpp:358; LOGGED FROM: int __cdecl main(int,char *const ) src/cpp/session/SessionMain.cpp:1866
  • RStudio application log files:

From Troubleshooting Guide: RStudio Crashed

@chinhqho I'm trying to reproduce this issue, but it's working for me.

  1. Can you describe the nature of the crash? A screenshot might help, too.
  2. One thing I notice, even though we're both using Windows 10, is that your sessionInfo() returns

Running under: Windows >= 8 x64 (build 9200)

but mine returns

Running under: Windows 10 x64 (build 19043)

What do you get with win.version() in RStudio and in standlone R?

Thanks!
--Ron

@rblum , yes, win.version() in RStudio returns:
["Windows >= 8 x64 (build 9200)"
Warning message:
R graphics engine version 14 is not supported by this version of RStudio. The Plots tab will be disabled until a newer version of RStudio is installed.
But the same in Rgui returns:
"Windows 10 x64 (build 19043)"

@chinhqho Some more:

  • Is think you have both the 32-bit and 64-bit of R installed, is that correct?
  • If so, what do you get for each in the R GUI with win.version()?
  • And if so, what happens with win.version() in RStudio with each version of R?

Also, I reopened an old issue, https://github.com/rstudio/rstudio/issues/2899, as this might be a regression.
Thanks!
--Ron

@rblum,
Yes, I installed both 32-bit and 64-bit.
Running win.version() on RGUI 32 and 64 bit both return "Windows 10 x64 (build 19043)"
Running win.version() on RStudio with the 32-version and 64-bit version of R both return "Windows >= 8 x64 (build 9200)"
Thanks,
Chinh

RStudio does not support Windows 8, which is probably the problem. Is it possible that you have set RStudio to run in Compatibility Mode? If so, could you turn that off? Basically, the opposite of this:

https://support.microsoft.com/en-us/windows/make-older-apps-or-programs-compatible-with-windows-10-783d6dd7-b439-bdb0-0490-54eea0f45938

@jonathan,
Thanks for the tip. Indeed, I was running Window 8 compatibility to fix the DPI issue on bigger monitor. I have reversed it back to Window 10 and RStudio v1.4.1717 running on 32-bit works for some packages, but not all. In particular, RStudio v1.4.1717 still crashes every time I call the arcgisbiding package to check the product. However, the same call works fine on RStudio v1.2.5042, which give me the following output:
[1] "Windows 10 x64 (build 19043)"
product: ArcGIS Desktop (10.7.0.10450)
license: Advanced
version: 1.0.1.244


```{r}
win.version()
if(!require(arcgisbinding)){
  install.packages("arcgisbinding",
                   repos ="https://r.esri.com",
                   type="win.binary")}

library(arcgisbinding)
arc.check_product()
```

This might be related (?):
I just upgraded from R-4.0.2 and RStudio 1.3.1093 to R-4.1.1 and RSudio 1.4.1717.
I need to use the 32-bit version of R , but RStudio keeps crashing (something like help(mean) beeing enough for that to happen.
Using R 64-bit seems to help, but unfortunately for compatibility reasons that's not an option...

sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 10 x64 (build 18363)

I'm also noticing that RStudio crashes when I open help files if I'm in a 32-bit R, but works just fine with 64-bit R.

RStudio Version 1.4.1717

 devtools::session_info()
- Session info -------------------------------------------------------------
 setting  value                       
 version  R version 4.1.1 (2021-08-10)
 os       Windows 10 x64              
 system   x86_64, mingw32             
 ui       RStudio                     
 language (EN)                        
 collate  English_United States.1252  
 ctype    English_United States.1252  
 tz       America/Chicago             
 date     2021-09-23                  

Works:

> sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Crashes:

> sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 10 x64 (build 18363)

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.