-
Notifications
You must be signed in to change notification settings - Fork 85
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
Event loop is not working anymore on macOS Sierra #50
Comments
who to fix it? |
This is related to how the event loop is actually implemented by libui-node. Actually, on macOS and linux libui-node spawn a background thread that does a blocking GUI system call to check if there is some GUI event pending. If there are any, it send a message to node main thread, that in turn process these events. This blocking give libui-node a great speed boost compared to a polling one (that is still used on Windows), but it can on be done in a background thread. This used to work until Yosemite, but after that Apple introduces a hard limitation that such a check for GUI event loop status can be done only in main thread. There is a previous, more complicated implementation that used an undocumented macOS feature but work without background threads. I could try to restore it in next relase. |
Works now |
Maybe I'm missing something: cloned the repo, npm i, npm start and I get an nsexception error. Tried to do a standalone hello world, but the same happened - I'm on OSX, Sierra, will give it a try on Arch too. Do I have to install something else, or is my node version unsupported?
Edit: yes, it works fine on Arch :)
The text was updated successfully, but these errors were encountered: