Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
System.AccessViolationException: Attempted to read or write protected memory. #87
Comments
|
Hello, Meet! Very similar to the old issue (“System.AccessViolationException in JavascriptEngineSwitcher.ChakraCore”). This problem is most likely caused by an error in the native assembly. Try rolling back the JavaScriptEngineSwitcher.ChakraCore and JavaScriptEngineSwitcher.ChakraCore.Native.* packages to version 3.5.6.
Could you show the full error message when using the JavaScriptEngineSwitcher.V8 module. |
|
Thanks for the promt reply ! I have the same issue on v3.5.6 Here's the error reported when I use JavaScriptEngineSwitcher.V8
In case of ChakraCore the exception does not reach the exception handler passed to ReactJS.net, the error is just logged to console and the application exits (running in debug mode on VSCode). Also this is the log for ChakraCore when run Release mode on linux
Thanks. |
|
Try making a demo project that reproduces this error and send me a link to it. |
|
Hi Taritsyn, I was able to reproduce the issue here jsengineswitcher-chakracore-issue I was able to reproduce the issue by setting Please let me know if more info is needed. Thanks. |
|
Hello, Meet! Thank you for the provided demo project! This problem is related to the pre-compilation of scripts. You can disable a pre-compilation of scripts in the public void Configure(IApplicationBuilder app, IHostEnvironment env)
{
// Initialise ReactJS.NET. Must be before static files.
app.UseReact(config =>
{
config
…
.SetAllowJavaScriptPrecompilation(false)
…An error occurs in the When I have free time, I will deal with this problem. |
Hi, I am using ReactJS.net (v5.2.5) with JavaScriptEngineSwitcher.ChakraCore (v3.7.1) in .netcore 3.1 and I am getting the following exception when there is an error in my script.
I tried using JavaScriptEngineSwitcher.V8 and it works with V8 and proper js error is reported. I looked at other issues related to the exception but most of them are for older versions and seem to have been fixed. Let me know if should move this issue to ReactJS.net.
Thanks.