RStudio encounters fatal error and restarts on EVERY error in R

I recently changed employers and only have local administrator privileges on a virtual machine. I installed R and RStudio, which works fine, UNTIL I commit an error—any error. Once that happens, RStudio gives the dreaded "fatal error" message and restarts. The reprex is simple. Start RStudio and type as.Date('a'). This will give an error and cause Rstudio to shut down. The pertinent information is posted below.

There have been many requests for help with crashes related to (TypeError) : Cannot read property 'M' of null; which have not been answered. I hope this does not end up similarly. RStudio is unusable if every error crashes the instance. Thank you.

SessionInfo

R Under development (unstable) (2022-02-04 r81652 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                           LC_TIME=English_United States.utf8    

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

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

Logs

2022-02-09T17:56:41.573000Z [rsession-AvrahamAdler] WARNING findProgramOnPath returns wrong result: C:\Users\AVRAHA~1\AppData\Local\Programs\MiKTeX\miktex\bin\x64\pdflatex.exe != C:/Users/AvrahamAdler/AppData/Local/Programs/MiKTeX/miktex/bin/x64/pdflatex.exe; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::session::module_context::findProgram(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) src/cpp/session/SessionModuleContext.cpp:1206
2022-02-09T17:56:41.573000Z [rsession-AvrahamAdler] WARNING findProgramOnPath returns wrong result: C:\Users\AVRAHA~1\AppData\Local\Programs\MiKTeX\miktex\bin\x64\pdflatex.exe != C:/Users/AvrahamAdler/AppData/Local/Programs/MiKTeX/miktex/bin/x64/pdflatex.exe; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::session::module_context::findProgram(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) src/cpp/session/SessionModuleContext.cpp:1206
2022-02-09T17:56:41.577000Z [rsession-AvrahamAdler] WARNING findProgramOnPath returns wrong result: C:\Users\AVRAHA~1\AppData\Local\Programs\MiKTeX\miktex\bin\x64\pdflatex.exe != C:/Users/AvrahamAdler/AppData/Local/Programs/MiKTeX/miktex/bin/x64/pdflatex.exe; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::session::module_context::findProgram(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) src/cpp/session/SessionModuleContext.cpp:1206
2022-02-09T17:56:41.577000Z [rsession-AvrahamAdler] WARNING findProgramOnPath returns wrong result: C:\Users\AVRAHA~1\AppData\Local\Programs\MiKTeX\miktex\bin\x64\pdflatex.exe != C:/Users/AvrahamAdler/AppData/Local/Programs/MiKTeX/miktex/bin/x64/pdflatex.exe; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::session::module_context::findProgram(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) src/cpp/session/SessionModuleContext.cpp:1206
2022-02-09T17:56:43.063059Z [rsession-AvrahamAdler] ERROR CLIENT EXCEPTION (rsession-AvrahamAdler): (TypeError) : Cannot read property 'M' of null;|||org/rstudio/studio/client/workbench/views/source/editors/text/AceEditor.java#4487::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-02-09T17:56:43.063059Z [rsession-AvrahamAdler] ERROR CLIENT EXCEPTION (rsession-AvrahamAdler): (TypeError) : Cannot read property 'M' of null;|||org/rstudio/studio/client/workbench/views/source/editors/text/AceEditor.java#4487::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

What version of RStudio are you using? There's this news item

RStudio now supports the experimental UTF-8 UCRT builds of R (#9824)

in version 2022.02.0 .

1 Like

Hello, Dr. Murdoch. Long time no email :slight_smile:

Thank you; yes, that was the issue as pointed out to me here. I still see errors in the log, but RStudio isn't crashing every time!

Thank you!!

This topic was automatically closed 7 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.