gemof

gemof

About Me

Connect

LOCATION
Not Specified
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

Python comand line scripting import hou generates double free/corruption error 2022年2月11日19:50

OK actually just solved this. Follow this guide to setup jemalloc: https://zapier.com/engineering/celery-python-jemalloc/ [zapier.com]

Then if you run external python as suggested importing Hou module won't error about jemalloc. As of writing this latest jemalloc is 5.2.1 so worth getting latest and changing bash commands appropriately:

# installing jemalloc
wget https://github.com/jemalloc/jemalloc/releases/download/5.1.0/jemalloc-5.1.0.tar.bz2
tar xvjf jemalloc-5.1.0.tar.bz2
cd jemalloc-5.1.0
./configure
make
sudo make install

# running your app
LD_PRELOAD=/usr/local/lib/libjemalloc.so python your_app.py

FYI this is the doc showing how to load hou in external py interpreter: https://www.sidefx.com/docs/houdini/hom/commandline.html [www.sidefx.com]

However DLFCN was deprecated in py 3.6, so just change:
import DLFCN
sys.setdlopenflags(old_dlopen_flags | DLFCN.RTLD_GLOBAL)

to:
import ctypes
sys.setdlopenflags(old_dlopen_flags | ctypes.RTLD_GLOBAL)

Python comand line scripting import hou generates double free/corruption error 2022年2月11日19:12

I'm seeing this as well on Houdini 19 / Ubuntu 20.04.

In my case I have to user an external interpreter (Py 3.7.12 from deadsnake)since gRPC won't import into Hython with ctype errors.

Anyone using gRPC with hython/ hou python on linux? 2022年2月8日13:02

Hi all, experimenting with the Dapr library which uses gRPC. Unfortunately there's some weirdness with different gRPC versions and py 3.7.x

Anyone manage to get gRPC working?

Thanks!