<html><body>
<p>New issue 1212: SPH and Octree AMR Datasets Failing in volume rendering, OAProj, Interactive Data Viz <a href="https://bitbucket.org/yt_analysis/yt/issues/1212/sph-and-octree-amr-datasets-failing-in">https://bitbucket.org/yt_analysis/yt/issues/1212/sph-and-octree-amr-datasets-failing-in</a></p>
<p>Cameron Hummels:</p>
<p>This similar to Issues #788, #986, #1008, #1183, but I think this description generalizes and distills all of these problems.</p>
<p>It appears that all particle-based (or Octree-based) datasets are segfaulting when one attempts to do anything involving the KDTree with them.  The following three scripts all fail with the same result:</p>
<p>``` #!python</p>
<p>import yt ds = yt.load("gizmo_cosmology_plus/snap_N128L16_151.hdf5") L = ds.arr([1,0,0], ‘unitary’) yt.OffAxisProjectionPlot(ds, L, 'density').save() ```</p>
<p>``` #!python</p>
<p>import yt ds = yt.load("gizmo_cosmology_plus/snap_N128L16_151.hdf5") im, sc = yt.volume_render(ds, ‘density’, fname='rendering.png')</p>
<p>```</p>
<p>``` #!python</p>
<p>import yt ds = yt.load("gizmo_cosmology_plus/snap_N128L16_151.hdf5") yt.interactive_render(ds) ```</p>
<p>These all fail with some variation on this output:</p>
<p>``` #!python</p>
<p>Failed to split grids. Failed to split grids. Segmentation fault ```</p>
<p>The above scripts each use the publicly available dataset `gizmo_cosmology_plus`, but one gets similar results by using the same simple commands on any of the SPH datasets on <a href="http://yt-project.org/data/">http://yt-project.org/data/</a> e.g. `TipsyGalaxy`, `snapshot_033`, `GadgetDiskGalaxy`.</p>
<p>Notably, however, when you run the same script with Octree-based AMR outputs, you get similar results.  Example datasets that do this are Ramses (e.g. `output_00080`), and ART (e.g. `D9p_500`).</p>
<p>These scripts were run on an OS X installation with the tip of yt-dev (843a342ee510).</p>

<img src="http://link.bitbucket.org/wf/open?upn=JlBWjyZTyKwhM1rBKe-2BcAdFPwdECN4PBooLGVSVl7EJfqk5QhwY5lRPDbSMSe63-2BQaO9MoJXm2yELYoxstiZq6V1yuKecL-2B-2FS7RUQ6qbyp1P-2BP98SNRNNLwIMCASQMmsaxpcZa-2FPeEDBG2EajgFG33PlBYjkebNKiVVxUnNnX7ZycKPRzcnBlIA2a2SvaOMaCXLDpnycBVGg2xcDpsdXkhFgnzxU81gZITDxGWyh1W0-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>