Comments (7)
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, AccessViolationException
occurred 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.
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.
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.
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.
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.
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.
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)
- Parsing JSLint HOT 2
- Async/Await / Promises support HOT 6
- Движок имеет ограничение на количество include файлов в Less HOT 6
- Anonymous Host Objects HOT 1
- What's the purpose of using MsieJavaScriptEngine? HOT 3
- crash in windows 8 / VS 2015 HOT 9
- Error in DateTime? type. HOT 4
- Block finalizer solved? HOT 8
- Documentation? HOT 10
- execute code from different threads HOT 6
- Binaries in source folders HOT 5
- Pass in JavaScript object reference to CallFunction HOT 2
- JsEngineLoadException: During loading of MSIE JavaScript engine error has occurred. HOT 11
- "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." HOT 21
- How to get data back from JS to C#? HOT 1
- Engine is crashing after Windows 10 anniversary update HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msiejavascriptengine.