Skip to content
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

Regression in 0.4.3 #3

Closed
dfellis opened this issue Nov 21, 2012 · 5 comments
Closed

Regression in 0.4.3 #3

dfellis opened this issue Nov 21, 2012 · 5 comments

Comments

@dfellis
Copy link
Contributor

dfellis commented Nov 21, 2012

On OS X using 0.4.3 every file I try to load gives me Error reading the file some_file.js

This appears to be caused by the most recent commit because running git checkout HEAD~1 && npm install and then ln -s that into the repo, it loads perfectly fine.

I suspect an off-by-one error, here, and will make another PR if I can fix it, but I wouldn't mind a simple revert since the OS failing to provide the entire file means the server is probably going to fail, anyways, and this sort of check is overkill for a dynamic language where the developer has no control over memory usage.

Also, in the future could you increment the version number and keep the old one in NPM, though, even if you think its broken? Starting today I want to use webworker-threads in production, but having what I'm installing change after I've specified a hardwired version number is not fun. (Caught this by dumping my node_modules directory and re-installing with --production from scratch before merging my internal PR.)

I'd rather stick with a version with known issues that I know isn't affecting my code and then upgrade to the better version after testing than be automatically updated and not know about it. :)

Thanks again,

David

@audreyt
Copy link
Owner

audreyt commented Nov 21, 2012

Apologies. Would you mind testing 0.4.4 (just uploaded) to ensure that it worked?

Thanks!

@dfellis
Copy link
Contributor Author

dfellis commented Nov 21, 2012

Unfortunately, no. Still get Error reading the file ./webworker.js in my test repo.

@dfellis
Copy link
Contributor Author

dfellis commented Nov 21, 2012

I put the testing code up on GitHub here so you can see what's happening.

@audreyt
Copy link
Owner

audreyt commented Nov 21, 2012

OK, I see what's going on... It's a misuse of fread() in WebWorkerThreads.cc. Please see of 0.4.5 (just released) fixes it?

@audreyt audreyt closed this as completed Nov 21, 2012
@dfellis
Copy link
Contributor Author

dfellis commented Nov 21, 2012

Back from lunch. 0.4.5 fixes it. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants