Ostap Po

Ostap

About Me

業界:
Film/TV

Connect

LOCATION
New Zealand
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

Python's multiprocessing 2022年3月23日16:33

Can you please provide the error you got?

Python's multiprocessing 2022年3月23日0:19

Hi,

I found that python multiprocessing is not starting from the Houdini UI but works from the hython.
For example, this small code snippet:
from multiprocessing import Process
from time import sleep

def foo():
    print("Processing is running")
    sleep(3)
    print("Done")
    
t=Process(target=foo)
t.start()
print("Is Process alive: ",t.is_alive())
t.join()

The same code works as expected (runs debug lines and process is alive) in the hython session but doesn't work in the Python Shell window from the running UI Houdini session.

Python threading works in both cases but in my circumstances, I'm using the multiprocessing approach, and at least would be nice to know why it doesn't work from the Houdini UI (H19.0.546).

Remote Graph and Boost Priority 2021年11月24日22:37

Solved in Houdini 19