Calling hou.fileReferences from hython crashes

   2354   8   3
User Avatar
Member
45 posts
Joined: May 2019
Offline
This issue was discussed a while ago on the Deadline forum, but now it seems it is a Houdini problem:
https://forums.thinkboxsoftware.com/t/houdini-renderer-returned-non-zero-error-code-139/28108/14 [forums.thinkboxsoftware.com]

In short, Deadline has a python script for rendering the scene, and it collects file references to map them between filesystems.
This script is run with `hython`.
Calling `hou.fileReferences` in the script with certain scenes causes a 100% crash. Calling `hou.fileReferences` inside a gui Houdini does not.

Seems like it is related to specific parameters, like geometry masks, though I have not worked out all details yet.
The top of the trace is
+0x27699265 [PRM_Template::buildChannelNames] C:\Program Files\Houdini19.5.569NoVray\bin\libPRM.dll
+0x2762e879 [PRM_Template::getChannelToken] C:\Program Files\Houdini19.5.569NoVray\bin\libPRM.dll
+0x18013f822 [HOMF_Module::fileReferences] C:\Program Files\Houdini19.5.569NoVray\bin\libHOMF.dll
+0x4de87323 C:\PROGRA~1\HOUDIN~1.569\houdini\python3.9libs\_hou.pyd
+0x7ff8643612ad [PyCFunction_GetFlags] C:\Program Files\Houdini19.5.569NoVray\bin\python39.dll
...

We have seen this in 19.5.569, 19.5.605, and some older ones (I think 18.5.x).
Any ideas?
Edited by monomon - May 31, 2023 09:03:41
User Avatar
Member
2658 posts
Joined: June 2008
Offline
As you mentioned, the gui doesn't exist. Can you move your code to one of the other python files where the gui might already be established?

Where is your calling code right now?
Edited by Enivob - May 31, 2023 10:29:42
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
User Avatar
Member
45 posts
Joined: May 2019
Offline
It is a headless program, normally running on the render farm. But why would that be necessary?
User Avatar
Member
45 posts
Joined: May 2019
Offline
Managed to break in Visual Studio:
(5d40.6370): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** WARNING: Unable to verify checksum for C:\Program Files\Houdini19.5.569NoVray\bin\libPRM.dll
*** WARNING: Unable to verify checksum for C:\Program Files\Houdini19.5.569NoVray\bin\libHOMF.dll
libPRM!UT_StringRef::{ctor} [inlined in libPRM!PRM_Template::buildChannelNames+0xe5]:
00000000`25b49265 488b08 mov rcx,qword ptr [rax] ds:00000000`00000000=????????????????
User Avatar
Member
25 posts
Joined: Dec. 2015
Offline
I'm experiencing this as well except calling `hou.fileReferences` also crashes in the GUI.
Was a solution ever found?
Tested in Houdini 19.5.773 on Windows 10.
Edited by erikcarlson - Aug. 7, 2024 00:28:43
User Avatar
Member
45 posts
Joined: May 2019
Offline
Try a newer version, 19.5 is old.
User Avatar
Member
25 posts
Joined: Dec. 2015
Offline
Tried in Houdini 20.0.688 and although it doesn't crash now, it seems to cook invisibly forever until I hit the escape key.
User Avatar
Member
8071 posts
Joined: July 2005
Offline
If you have a hip file and with specific python command that reproduces, please submit a bug. (preferably trying it against the latest 20.5 production build)
User Avatar
Member
45 posts
Joined: May 2019
Offline
The command is right there in the original post - `hou.fileReferences`.
This was crashing our Deadline farm jobs for a while before we figured it out. At least on headless, this function consistently crashes. We have reported it to support before.
  • Quick Links