<div dir="ltr">Hi <span style="font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif;font-size:13px">Simeon,</span><div><span style="font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif;font-size:13px"><br>
</span></div><div style><span style="font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif;font-size:13px">I&#39;ve just tried your code and everything worked as expected, no crash on my end. </span></div>
<div style><span style="font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif;font-size:13px">=&gt; OS X 10.8.3</span></div><div style><span style="font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif;font-size:13px">=&gt; Java </span>1.6.0_45</div>
<div style><br></div><div style>I suspect your VTK build may link to a different version of Java than the one you run your application with.</div><div style><br></div><div style>Seb</div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Fri, May 10, 2013 at 3:11 PM, Simeon Fitch <span dir="ltr">&lt;<a href="mailto:fitch@datamininglab.com" target="_blank">fitch@datamininglab.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi VTK fans,<div><br></div><div><div>After prototyping some cool prototype visualizations with the help of ParaView I&#39;m attempting to implement them in an existing Java-based engineering application. I have burned several couple days trying to get some combination of VTK and Java to play nicely together on MacOS X, running into issues ranging from detached rendering windows to core dumps when trying to use vtkXMLUnstructuredGridReader. </div>


<div><br></div><div>Since I have my client excited about using VTK after seeing the ParaView results, I&#39;m anxious to make a final determination as to whether we can reliably make use of VTK in our engineering app or if I need to look for other options. :-( I&#39;m interesting in hearing from other&#39;s who&#39;ve successfully deployed Java-based VTK apps on MacOS X.</div>


<div><br></div><div>I&#39;ve attempted to use Java 6 and 7 (our app requires 7), as well as VTK version 5.6, 5.8, 5.10.1, and the GitHub master. With Java 6, rendering windows appear where they should, but appear as separate window entities with Java 7. Putting that aside, all the combinations I&#39;ve tried crash when attempting to use vtkXMLUnstructuredGridReader and render the result. I&#39;ve tested with my own .vtu files as well as the VTKData5.10.1/Data/quadraticTetra01.vtu </div>










<div><br></div><div>The test code I&#39;m using is here:</div><div dir="ltr"><a href="https://gist.github.com/metasim/5556435" target="_blank">https://gist.github.com/metasim/5556435</a><br></div><div dir="ltr"><br></div>
<div dir="ltr">

The crash report is here:<br></div><div><a href="https://gist.github.com/metasim/5556553" target="_blank">https://gist.github.com/metasim/5556553</a><br></div><div><br></div><div>I&#39;d appreciate any advice on how to get a basic app working with modern versions of Java and MacOS X, or at least how to help debug and fix the C++ code. I&#39;ve attempted attaching Xcode to the running process and had cases when it crashes in either vtkDataSet::GetBounds() or vtkXMLReaderJava::Java_vtk_vtkXMLReader_SetFileName_12() (the latter in the call to op-&gt;SetFileName()). Given the seeming benign nature of the crash sites, I suspect memory corruption has occurred before then. I tried running with the following environment variables set, but that didn&#39;t render any additional useful info:</div>


<div><br></div><div>* <span style="font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif">DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib</span><br>

</div><div><span style="font-size:13px;font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif">* MallocGuardEdges=1</span><br></div><div><span style="font-size:13px;font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif">* MallocScribble=1</span><span style="font-size:13px;font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif"><br>


</span></div><div><span style="font-size:13px;font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif">Thanks,</span></div>


<div><span style="font-size:13px;font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif">Simeon</span></div>


<div><span style="font-size:13px;font-family:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,Helvetica,Arial,Verdana,sans-serif"><br></span></div><div><br></div><div><br></div>















<div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div>
</div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>