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

MacOS - cannot fetch event from a worker thread (OS X restriction) #114

Open
salman451 opened this issue Jul 14, 2017 · 1 comment
Open
Labels

Comments

@salman451
Copy link

sweep firmware version

1.4

libsweep version + affected bindings

1.2.1 libsweep/examples/viewer.cc

operating system

macOS Sierra 10.12.5

Platform/Hardware Setup

MacBook pro 12,5 (2015)

Description:

In /libsweep/examples/ when i run example-viewer, it repeatedly gives me the message:

"cannot fetch event from a worker thread (OS X restriction)"

@daniel-j-h daniel-j-h added the Bug label Jul 14, 2017
@daniel-j-h
Copy link
Collaborator

Seems like a macOS limitation we're hitting with sfml2 here:

https://github.com/SFML/SFML/blob/bd479c4454c0322f60386e5644495400703e41f3/src/SFML/Window/OSX/SFViewController.mm#L243-L261

which means we can not handle events in the worker thread here. We could work around that by scanning in the worker thread and doing all event polling and rendering in the main thread.

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

No branches or pull requests

2 participants