OffscreenRenderer and threads #4437
Unanswered
TimTreurniet
asked this question in
Q&A
Replies: 2 comments
-
Hello, from multiprocessing import Process, Manager
manager = Manager()
results = manager.dict()
kwargs = {..., "results": results}
p = Process(target=my_function,
kwargs=kwargs
)
p.start()
p.join() |
Beta Was this translation helpful? Give feedback.
0 replies
-
@TimTreurniet The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a program where I run some code in seperate threads. Within these threads, I create an OffscreenRenderer, add a mesh, and render an image and depth image. This works for the first thread, but fails for the next with the error below when initializing a new renderer within the thread. Initializing the renderer within the main thread causes the same crash when the thread calls the
render_to_image()
function. I believe this issue could be fixed by closing the renderer when the thread finishes, but I do not see a function to do this. Anybody have any ideas?The thread is started like this, and only one pipeline runs at a time
Beta Was this translation helpful? Give feedback.
All reactions