Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Houdini Debugger doesn't work out of the box? #14

Open
tlaedre opened this issue Dec 5, 2017 · 1 comment
Open

Houdini Debugger doesn't work out of the box? #14

tlaedre opened this issue Dec 5, 2017 · 1 comment

Comments

@tlaedre
Copy link

tlaedre commented Dec 5, 2017

We had some problem getting the debugger to work from within Unity, and identified a couple of places we had to patch up to get it working.

The first was in initializeSession where a new session (HARS process launched) is always created before trying to connect to it. I'd suggest adding a getSession call above the startProcess call, and return with a useful log entry that connection to existing host was made.
https://github.com/sideeffects/HoudiniEngineForUnity/blob/f3cded3b8f8bd18e8fa523891b45e5768c3809e4/Assets/Houdini/Scripts/HoudiniHostSession.cs#L88

The other issues we had were that the paths passed from Unity to HAPI are all relative, which I guess works in the normal case because a spawned server process inherits Unity's environment including working directory. For a debugging session, it doesn't work though. We ended up patching both the getAllFoldersInPath function used for getting dependency search paths, as well as the prAssetPath path passed to loadOTL.
https://github.com/sideeffects/HoudiniEngineForUnity/blob/f3cded3b8f8bd18e8fa523891b45e5768c3809e4/Assets/Houdini/Scripts/HoudiniHostLinker.cs#L296
https://github.com/sideeffects/HoudiniEngineForUnity/blob/f3cded3b8f8bd18e8fa523891b45e5768c3809e4/Assets/Houdini/Scripts/HoudiniAssetOTL.cs#L188

Lastly, it looks like the unity plugin isn't too good at cleaning up after itself. When running a debug session attached, it only takes a couple of minutes of active Unity work to end up with hundreds of abandoned, procedurally named nodes in the Houdini scene view - which makes it pretty hard to find the nodes you actually want to inspect.

@SeelanV
Copy link

SeelanV commented Dec 15, 2017

Noted. Will look into this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants