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
R.Net 1.9.0 does not seem to work with .Net 5.0 #147
Comments
Same problem with .Net 6 : I already developed a C# .Net 4.8 framework Winform program using R.Net (Nuget package 1.9.0 with R 4.1.2 installed) and this one is working fine. Completely rewritten with .Net 6, and program crash with 3221226505 error code (Stack buffer overflow / overrun) when calling REngine.GetInstance(). |
Does anyone have a solution for how to make it work with .net 6? Am struggeling to find the problem. |
I tried to reproduce this but didn't get a crash. I'm wondering if any of you have a code repo you could point me to that is failing that I could test with? My attempt was a really basic console app, using .NET 6 on Windows 10:
Produces
|
in x64 with built with .net 6: have tried to debug, and it now fails in the CreateInstance() with the following error message: "This 64-bit process failed to load the library R.dll. Native error message is 'The operation completed successfully.'" It looks to be failing inside DynamicInterop 0.9.1 |
Quite the same thing as Irasmus with a simple console app, using .NET 6 and Windows 10 at first, and now Windows 11 : `using RDotNet; Console.WriteLine("Hello, World!"); RDotNet.StartupParameter param = new StartupParameter(); // by default: string dll = null, bool initialize = true, StartupParameter parameter = null, ICharacterDevice device = null // by default: StartupParameter parameter = null, ICharacterDevice device = null, bool setupMainLoop = true Console.ReadKey(); Produces :
Seems that it is the engine.Initialize that fails. |
I am using R 4.1.1, and it worked with rdotnet 1.9 on .net 4.8 |
I'm using R 4.1.2. |
Not sure if this is related, but I am using .Net 6.0.0, R 4.0.5 and the latest R.Net on Windows 10. My app (WPF) crashes when it calls
|
Think I found the error: https://github.com/rdotnet/dynamic-interop-dll needs to be built for .net 6 as well. Have not made it work yet, but hope that will be fixed fast now. |
Was a bit quick yesterday, that did not work, the problem is: in dynamic-interop: var handle = Win32.LoadLibrary(filename); that will not load the dll, even when the path is hardcoded. |
No one has made rdotnet work with .net 5 or 6? I gave up and hoped someone That knows the library would find the issue. |
I have verified that, on my machine:
Since I can get away with just using whichever version of R I want, I'll be doing that. |
I'm looking to upgrade my C# applications to .Net 5.0. One of the breaking points is that R.Net doesn't seem to work with .Net 5.0. I receive the following error when calling REngine.GetInstance():
Unhandled exception at 0x00007FF8C76B0D10 (msvcrt.dll) in TestAndDevelopment2Console.exe: RangeChecks instrumentation code detected an out of range array access.
The text was updated successfully, but these errors were encountered: