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
IE11 Gives Security Error for new FA2 Algorithm #314
Comments
Hello @apitts This is indeed an annoying problem. According to your post, the issue is the
Did you think of anything else? I am having a hard time correcting this one since I don't currently have any IE 10+ to test on. |
I am afraid your knowledge is the same as mine on the issue. And I am with
|
Thanks! I will try it out over the weekend.
|
Potentially useful precedent here: https://github.com/adambom/parallel.js |
@Yomguithereal I'm afraid I've had no luck trying to come up with a solution. Am new to webworkers and tried a few things but not exactly sure what to 'change around' in supervisor.js. |
Hello @apitts I therefore propose you two solutions:
// I let you find a test for IE
var webWorkers = !IE && 'Worker' in window;
if (webWorkers) {
// var blob = this.makeBlob(workerFn);
// Write your own worker.js url here
this.worker = new Worker('path/to/worker.js');
// Post Message Polyfill
this.worker.postMessage =
this.worker.webkitPostMessage || this.worker.postMessage;
} |
1 - Breaks IE: 2 - Breaks all browsers:
|
@Yomguithereal Would really appreciate any further thoughts you may have on this? Unfortunately Internet Explorer still has significant browser share and I haven't been able to find a solution to the webworkers issue so Force Atlas 2 is not currently working in IE. |
Hello @apitts and @patrickmarabeas. I have updated FA2 so it is possible: A) to disable the webworker and B) to specify a path from where to serve an external worker file (the worker file can be used separately now and won't break anymore normally). However, I cannot test in IE for the time being so I would like to know if you could try something and tell me if it does or does not work: Have the worker file and start FA2 with <script src="sigma.layout.forceAtlas2/supervisor.js"></script> s.startForceAtlas2({workerUrl: 'sigma.layout.forceAtlas2/worker.js'}); The non-worker version however should not run in IE because of the lack of custom events in this browser. |
Thanks very much @Yomguithereal! I will test as soon as possible and get back to you. |
@Yomguithereal I just tried it out. What I did was clone the current repo and in the force.html example file I just changed: s.startForceAtlas2(); to s.startForceAtlas2({workerUrl: '../plugins/sigma.layout.forceAtlas2/worker.js'}); The script line is already included in the example. I then tried the force.html example in a VM running Windows 7 and IE11. I'm afraid I get an error - DataCloneError at line 186 column 7 of supervisor.js. This line is: this.worker.postMessage(content, buffers); It would seem that the message postMessage is sending is unsupported by IE11: http://msdn.microsoft.com/en-us/library/ie/jj160614(v=vs.85).aspx Let me know though if you want me to try anything else. |
Perhaps related to this buffers issue: |
Hello @apitts , I'm running into the same problem as you (first Security Error and now DataCloneError), have you managed to find a workaround ? This is really bugging me. |
Unfortunately not @deonclem. It's a really important issue for me as well so if you have any insights, please do share them. |
Ok I might have found something, it's pretty much a hack unfortunately. But I've managed to make it work on IE11 here. Implying you've done all the above, you can change these lines :
in the supervisor and
in the worker, into :
and
This worked for me, tell me if it does for you. |
@deonclem thanks very much for the above! I have also made those changes to the code and can confirm that after the changes ForceAtlas2 is working in Internet Explorer (I have only tested with IE11 at this point). Just a couple of thoughts - and these may be for @Yomguithereal.
I think it's a bit of a hack / messy. But I'm no expert on webworkers and so am assuming that the buffers are there for a reason (perhaps to improve performance?) and so did not want to remove them for non-IE browsers. |
Hi @apitts, I just tried to reproduce the initial bug, and I had the But I also tried this same example, with the WebWorker enabled, on IE11 on Windows 7 and Windows 8.1, and it ran perfectly on both. There is an issue when I disable the WebWorker, due to the fact that IE11 does not support custom events, but it works at least with the WebWorker. So, I am wondering if this |
@jacomyal yes I have this error running force.html on IE11.0.9600.17278 Windows 8, latest updates. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm getting a security error in the console and the layout algorithm doesn't work in Internet Explorer 11. I believe it may be this issue associated with webworkers in IE10 and IE11: http://stackoverflow.com/questions/10343913/how-to-create-a-web-worker-from-a-string
Since I'm on Linux though I run IE11 in a VM and it's a bit difficult for me to debug properly.
The text was updated successfully, but these errors were encountered: