-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
WebWorker not working anymore (from v0.8.4 to 0.9.1) #1575
Comments
I tried a simple example and it works fine: "full example" in http://www.html5rocks.com/en/tutorials/workers/basics/ |
O damn, of course your are right. Excuse me for posting this too early without checking twice. With 0.8.4 this code was working (windows) var fork = require("child_process").fork; With 0.9.1 this part is not working anymore. Any suggestions. Cheers Gunnar |
I checked this with a minimal test set (index.html, worker.js in same folder like all the runtime files of node plus node.exe (win) in same folder). index.html
worker.js
Running this with libs from 0.8.4 and running testFork() from the dev console, I get
Running this example with 0.9.1 and running testFork() I get
So something is wrong here, isn't it? Or I am doing something wrong, ... Cheers Gunnar |
child_process.fork has issues, please see #213 |
Sorry, but this is a new issue, because the workaround described in #213 has worked until the switch from 0.8.4 to 0.9.1. Now even that workaround (having an additional node binary file and addressing this via execPath parameter in fork) isn't working anymore. That's sad. Since my program (and surely some others) has to do some work in workers, I am stuck completely and need to stop programming with node-webkit. That's sad, since node-webkit is a realy cool idea and works stable... |
I saw in code that they add '.exe' on Windows automatically, maybe this may work
|
@as3boyan: Thanks, I tried that too, but this feature seams to be broken completely. I tried it in a lot of ways. I switched now to a WebSocket-Server for the heavy computational stuff instead of WebWorkers or forks... |
@gunnar-t Light Table does it somehow It should be possible to do this somehow. |
@as3boyan Look at this https://github.com/LightTable/LightTable/blob/master/deploy/core/version.json |
@gunnar-t Oh, that's makes me sad. Sorry. |
I can confirm that this seems to be an issue in 0.9.2 for us as well. @rogerwang I understand why fork would be broken when spinning up another instance of NW, but why would it be broken if we're pointing to our own node executable? |
I'll look to fix this soon. |
Hi Roger, It looks like you've resolved this issue. Do you think you'll be releasing a build anytime soon with this fix? Some of our development is stuck over here because our code needs 0.9.2 branch, and doesn't work with 0.8.6. We would need this fix in order to proceed. If you wont be releasing an intermediate release. Do you have a date for the 1.0 release? Sorry for the huge pile of questions. |
Can somebody verify, that this issue is really fixed in 0.10.1 ? |
Is it fixed ? |
Hi Roger,
my project heavily depends on WebWorkers for long running tasks. I figured out that with change to v.0.9.1 none of my web workers are working anymore.
The web worker is created (as far as I can see) and immediately sends diconnect and close events.
I switched back to 0.8.4 and everything works fine again.
Did I miss some changes in the release notes?! Maybe the switch to chromium 32?
This feature is crucial for my app (and maybe for some other people too).
Thanks again for your work :)
The text was updated successfully, but these errors were encountered: