Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs' tutorial "Hello world" will not run on Windows. #146

Open
rummelsworth opened this issue Oct 6, 2021 · 3 comments
Open

Docs' tutorial "Hello world" will not run on Windows. #146

rummelsworth opened this issue Oct 6, 2021 · 3 comments

Comments

@rummelsworth
Copy link

rummelsworth commented Oct 6, 2021

Repro:

  1. Install R 4.1.1 for Windows with all default settings.
  2. Create a new C# console app (.NET 5.0) in Visual Studio (2019 if it might matter).
  3. Install R.NET 1.9.0 from NuGet.
  4. Replace the content of Program.Main with the "Hello world" example code, adding usings as required.
  5. Build & run/debug.

Expected behavior:

At least the appearance of "Hi there .NET, from the R engine" in the console output.

Actual behavior:

No console output at all, and no exceptions thrown. Program runs and exits with a non-zero exit code, -1073740791 on my machine.

@rummelsworth
Copy link
Author

Not sure this is actually helpful, but here's the error in Event Viewer:

Faulting application name: RDotNetTestDrive.exe, version: 1.0.0.0, time stamp: 0x6115a200
Faulting module name: msvcrt.dll, version: 7.0.18362.1, time stamp: 0xf5bdefd7
Exception code: 0xc0000409

Maybe it's just my bad search-fu, but I can't find any cogent posts or solutions on the web related to that exception code for the C runtime.

@lrasmus
Copy link
Contributor

lrasmus commented Oct 6, 2021

Thanks for reporting @rummelsworth . This is related to #139, and unfortunately the only solution right now is to use R 4.0.2 or prior.

@rummelsworth
Copy link
Author

I tried R 4.0.2, and the tutorial code worked. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants