Giter Club home page Giter Club logo

Comments (7)

Taritsyn avatar Taritsyn commented on July 23, 2024

Hello, Aaron!

I have seen several related issues on different repos but I have not seen this specific one, sorry if this is a duplicate.

This is a completely new error. Previously, AccessViolationExceptionoccurred only in CallFunction method, but now it occurs in JsSetCurrentContext method. Main problem is that it is very difficult to reproduce this error.

How often does this error occur?

from msiejavascriptengine.

aaron-hardin avatar aaron-hardin commented on July 23, 2024

We saw it 5 times the day I posted the issue, over about an hour.
I don't see it in any of the logs over the weekend though. The stack trace looks the same each time.

I have not seen the other AccessViolationException since updating to the latest version of React.AspNet/MsieJavaScriptEngine

from msiejavascriptengine.

aaron-hardin avatar aaron-hardin commented on July 23, 2024

I can get this consistently on Windows 7 and Windows Server 2012 R2. At the moment I am not seeing it on Windows 10.
Even when all of the React objects are set to render client side only I am seeing this.
I even tried to remove the MsieJsEngine after ReactJS.Net initializes it
JavaScriptEngineSwitcher.Core.JsEngineSwitcher.Instance.EngineFactories.Remove(JavaScriptEngineSwitcher.Msie.MsieJsEngine.EngineName);
None of this has fixed it. Unfortunately, VS2015 debugging profiling tools do not work properly on Windows 7 so I can't get any detailed information there.

from msiejavascriptengine.

Taritsyn avatar Taritsyn commented on July 23, 2024

I can get this consistently on Windows 7 and Windows Server 2012 R2.

What version of Internet Explorer installed on these machines?

At the moment I am not seeing it on Windows 10.

On Windows 10 installed a Microsoft Edge browser, and therefore the MSIE JavaScript Engine working in ChakraEdgeJsRt mode.

I even tried to remove the MsieJsEngine after ReactJS.Net initializes it
JavaScriptEngineSwitcher.Core.JsEngineSwitcher.Instance.EngineFactories.Remove(JavaScriptEngineSwitcher.Msie.MsieJsEngine.EngineName);

I recommend you to read this comment. If you decide to abandon usage of the MSIE JavaScript Engine, then I recommend you to use the JavaScriptEngineSwitcher.ChakraCore.

from msiejavascriptengine.

aaron-hardin avatar aaron-hardin commented on July 23, 2024

What version of Internet Explorer installed on these machines?

My local machine and the server are both IE11

Registering ChakraCore seems to work for me. I had issues trying to do that previously, in case anyone else runs into similar issues, you need to add these packages to your project:

  • JavaScriptEngineSwitcher.ChakraCore.Native.win-x64
  • JavaScriptEngineSwitcher.ChakraCore.Native.win-x86

And add this to your Startup.cs
JsEngineSwitcher.Instance.EngineFactories.AddChakraCore();

You can close this issue if you want, I will be using ChakraCore unless I run into any issues with it, thanks!

from msiejavascriptengine.

Taritsyn avatar Taritsyn commented on July 23, 2024

I had issues trying to do that previously, in case anyone else runs into similar issues, you need to add these packages to your project:

  • JavaScriptEngineSwitcher.ChakraCore.Native.win-x64
  • JavaScriptEngineSwitcher.ChakraCore.Native.win-x86

These packages are not needed for Linux and Mac users, therefore everyone should install only necessary packages. About this is written in the documentation and package description. My position about the React.NET is the following - reactjs/React.NET#360 (comment).

And add this to your Startup.cs
JsEngineSwitcher.Instance.EngineFactories.AddChakraCore();

I already have the corresponding line - https://github.com/Taritsyn/JavaScriptEngineSwitcher/blob/master/samples/JavaScriptEngineSwitcher.Sample.AspNetCore1.Mvc1/Startup.cs#L56.

from msiejavascriptengine.

aaron-hardin avatar aaron-hardin commented on July 23, 2024

Thanks for the additional information, I guess before I was only checking the React.NET repository.
I really appreciate all the help and the links to the documentation!

from msiejavascriptengine.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.