Ostap Po

Ostap

About Me

INDUSTRY
Film/TV

Connect

LOCATION
New Zealand
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Python's multiprocessing March 23, 2022, 4:33 p.m.

Can you please provide the error you got?

Python's multiprocessing March 23, 2022, 12:19 a.m.

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 Nov. 24, 2021, 10:37 p.m.

Solved in Houdini 19