-
-
Notifications
You must be signed in to change notification settings - Fork 162
gmsh report error "signal only works in main thread" #520
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
Comments
Upvoted. I have the same error calling gmsh from FastAPI endpoints. I'm guessing the server is using the main thread and the error comes about when gmsh is executed in a worker thread. Will let you know if I get anywhere :) |
@thisistheplace were you able to fix the error? |
Hi, I ended up running gmsh in a separate process to the server and using a messaging queue. E.g. gmsh gets called in this line: |
Thanks for the response. I will try that! |
I'm not familiar with gmsh and I want to use pygmsh to subdivide mesh in a grpc request. But it seems gmsh limits multi-threading support in default.
I read http://gmsh.info/doc/texinfo/gmsh.html and tried solutions in #317
But problem's not solved.
Could somebody help?
The text was updated successfully, but these errors were encountered: