[Insight-users] Java troubles
Luis Ibanez
luis.ibanez at kitware.com
Fri Jun 25 11:20:55 EDT 2004
Daniel, Jarek,
This bug was fixed last week.
You may want to do a CVS update in your ITK checkout.
The problem was due to the fact that the RTTI tables are
defined locally inside every shared library. Therefore
dynamic casting do not work by default accross different
shared libraries.
Brad corrected this by forcing the loader to merge the
RTTI tables before they are loaded by Java.
Please let us know if you find any further problems,
Thanks
Luis
--------------------
Jarek Sacha wrote:
> This seems to be the same Linux bug as #741 reported back in April:
> http://www.vtk.org/Bug/bug.php?op=show&bugid=741
>
> Jarek
>
> --- "Blezek, Daniel J (Research)" <blezek at crd.ge.com> wrote:
>
>>Hi all,
>>
>> I've been wanting to use ITK inside Java for various reasons. I did a
>>fresh checkout yesterday, and built with Java wrapping on. I compiled
>>the
>>cannyEdgeDetectionImageFilter.java class and ran. The program promptly
>>seg-faulted inside the JNI wrappers (see log below). I'm running RedHat
>>8.0, GCC 3.2 and Java 1.4.1_02.
>>
>> This bug was reported as #893
>>(http://www.vtk.org/Bug/bug.php?op=show&bugid=893&pos=8), has anyone
>>made
>>any progress, or could give me some direction?
>>
>>Thanks,
>>-dan
>>
>>
>>{practical:Java}1106:javac -classpath InsightToolkit.jar
>>cannyEdgeDetectionImageFilter.java
>>{practical:Java}1108:java -classpath InsightToolkit.jar:.
>>cannyEdgeDetectionImageFilter
>>
>>An unexpected exception has been detected in native code outside the VM.
>>Unexpected Signal : 11 occurred at PC=0x835CBA3
>>Function=[Unknown.]
>>Library=(N/A)
>>
>>NOTE: We are unable to locate the function name symbol for the error
>> just occurred. Please refer to release documentation for possible
>> reason and solutions.
>>
>>
>>Current Java thread:
>> at
>>
>
> InsightToolkit.itkImageFileWriter_2DJNI.itkImageFileWriterUS2_Pointer_Update
>
>>(Native Method)
>> at
>>
>
> InsightToolkit.itkImageFileWriterUS2_Pointer.Update(itkImageFileWriterUS2_Po
>
>>inter.java:119)
>> at
>>
>
> cannyEdgeDetectionImageFilter.main(cannyEdgeDetectionImageFilter.java:22)
>
>>--
>>Daniel Blezek, Ph.D.
>>blezek at crd.ge.com
>>Visualization and Computer Vision Lab, Imaging Technologies
>>GE Corporate Research & Development
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
>>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list