Jump to content

OpenVDB Grid.h segfaulting when checking tree type


Recommended Posts

I am trying to resurrect an old version of a Houdini plugin that no longer works with newer versions of Houdini. I've tracked down the issue to a segfault happening in the file $HFS/toolkit/include/openvdb/Grid.h , where the function Grid<TreeT>::setTree(TreeBase::Ptr tree) is checking the type of the tree:

tree->type()

I can't figure out what could be causing this to segfault. When I print ouf the tree details with tree->print(std::cout, 4) I see that the tree type is "Tree_float_5_4_3", which seems fine? So why would this cause an issue? Anyone have any ideas?

The full print output is:

Information about Tree:
  Type: Tree_float_5_4_3
  Configuration:
    Root(1 x 1), Internal(1 x 32^3), Internal(6 x 16^3), Leaf(5,207 x 8^3)
  Background value: 0
  Min value: 0
  Max value: 15.9799
  Number of active voxels:       4,927,500
  Number of active tiles:        5,813
  Bounding box of active voxels: [0, 0, 0] -> [299, 224, 72]
  Dimensions of active voxels:   300 x 225 x 73
  Percentage of active voxels:   100%
  Average leaf node fill ratio:  73.2%
  Number of unallocated nodes:   0 (0%)
Memory footprint:
  Actual:               11.099 MB
  Active leaf voxels:    7.443 MB
  Dense equivalent:     18.797 MB
  Actual footprint is 59% of an equivalent dense volume
  Leaf voxel footprint is 67.1% of actual footprint
Tree_float_5_4_3

 

Edited by Kalina
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...