[vtkusers] Is VTK 5.10.1 compatible with MacOS 10.8.3 and Java?
Sebastien Jourdain
sebastien.jourdain at kitware.com
Mon May 13 17:23:05 EDT 2013
Hi Marco,
you got it right and unfortunately VTK 6.0 won't have Java 7 support on OS
X.
This might happen later on, but it will certainly not happen when VTK 6.0
get's out, specially as it is not a trivial fix.
But if you want that to be done sooner, you can either contribute it or
fund us to fix it.
Seb
On Mon, May 13, 2013 at 9:47 AM, Marco Sambin <m.sambin at gmail.com> wrote:
> Hi Seb,
>
> thank you for your reply.
>
> Just to ensure I have the correct understanding, regarding my first
> question below, the current build of VTK 6 is still incompatible with Java
> 7 on Mac (according to my understanding, Java 7 on Mac uses CALayer JAWT
> embedding, while Java 6 uses NSView-based JAWT embedding)?
>
> As far as the second point is concerned, yes, I am aware you can specify
> the required JRE version (or versions) inside the JNLP launcher for a Java
> Web Start application. But the reason why I asked the question is that I
> was especially afraid that minor Java releases could break the
> compatibility with VTK. If this was the case, then being able to specify
> the JRE version wouldn't be enough to deliver an acceptable user
> experience. In fact, suppose that I build and link VTK agains Java v7u21
> and I ship my VTK-based Java Web Start application. Then, after a while
> Java 7u22 comes out: if this broke the compatibility with VTK, I could
> require Java v7u21 to my users, but where would they find it, when it has
> become an old version?
>
> In any case, if only major Java releases may break this compatibility,
> this should not be a big issue.
>
> On the other side, issue 1. (if present) is quite critical in my opinion,
> and difficult to workaround. It may be a show-stopper for Java+VTK under
> Mac, and this would be a real pity!
>
> Thanks again for your comments.
> Best regards,
>
> Marco Sambin
>
>
> On Sat, May 11, 2013 at 4:01 PM, Sebastien Jourdain <
> sebastien.jourdain at kitware.com> wrote:
>
>> Hi Marco,
>>
>> I don't know about the first question, but for the second, I would think
>> that the big version number might break compatibility at run time. But they
>> might also work if the ABI didn't change...
>>
>> Regarding JavaWebStart you can be very precise on which JRE you want to
>> run and even provide a set of compatible version.
>>
>> Seb
>>
>>
>> On Sat, May 11, 2013 at 3:36 AM, Marco Sambin <m.sambin at gmail.com> wrote:
>>
>>> Hi all.
>>> I have a couple of questions in this regard:
>>>
>>> 1 - Will VTK 6 work with Java 7 on Mac OS X? According to my experience,
>>> Oracle's JVM (v7) works much better than Apple's one (v6), especially for
>>> web deployments (Java Web Start / Java Applet).
>>>
>>> 2 - How "sensitive" is VTK to the version of the JRE it is linked
>>> against vs the version the application is run with? It must absolutely be
>>> the SAME EXACT version? Or there is some "tolerance"? The crucial point is
>>> the version of the jawt library? Or what else? I ask this question because
>>> especially with web deployments (e.g., Java Web Start) it is very difficult
>>> to control which exact JRE version the client is running.
>>>
>>> Thanks in advance for your comments.
>>>
>>> Regards,
>>>
>>> Marco
>>> Il giorno 11/mag/2013 04:57, "Sebastien Jourdain" <
>>> sebastien.jourdain at kitware.com> ha scritto:
>>>
>>> Hi Simeon,
>>>>
>>>> I've just tried your code and everything worked as expected, no crash
>>>> on my end.
>>>> => OS X 10.8.3
>>>> => Java 1.6.0_45
>>>>
>>>> I suspect your VTK build may link to a different version of Java than
>>>> the one you run your application with.
>>>>
>>>> Seb
>>>>
>>>>
>>>> On Fri, May 10, 2013 at 3:11 PM, Simeon Fitch <fitch at datamininglab.com>wrote:
>>>>
>>>>> Hi VTK fans,
>>>>>
>>>>> After prototyping some cool prototype visualizations with the help of
>>>>> ParaView I'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.
>>>>>
>>>>> Since I have my client excited about using VTK after seeing the
>>>>> ParaView results, I'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'm interesting in hearing from other's who've
>>>>> successfully deployed Java-based VTK apps on MacOS X.
>>>>>
>>>>> I'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've tried crash when
>>>>> attempting to use vtkXMLUnstructuredGridReader and render the result. I've
>>>>> tested with my own .vtu files as well as
>>>>> the VTKData5.10.1/Data/quadraticTetra01.vtu
>>>>>
>>>>> The test code I'm using is here:
>>>>> https://gist.github.com/metasim/5556435
>>>>>
>>>>> The crash report is here:
>>>>> https://gist.github.com/metasim/5556553
>>>>>
>>>>> I'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'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->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't
>>>>> render any additional useful info:
>>>>>
>>>>> * DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib
>>>>> * MallocGuardEdges=1
>>>>> * MallocScribble=1
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Simeon
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>
>>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>>
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130513/4ea909e2/attachment.htm>
More information about the vtkusers
mailing list