View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005234ITKpublic2007-06-25 18:262010-11-06 23:56
ReporterJulia Smith 
Assigned ToLuis Ibanez 
PriorityurgentSeverityminorReproducibilityalways
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005234: Problem with Image deallocation under Java in WrapITK
DescriptionThere seems to be systemic reference counting bug under Java.

The test case:

Use extract-image-filter to split an image-f3 into
a series of image-f2 slcies.

When the extract-image-filters are garbage collected, each output image's reference count sinks to zero and the native side deletes the object, while the java side is unawares and for any image itkImageXYZ the cPtr is no longer pointing to a valid piece of memory.

In the flow of this particular piece of code (an edited version of the code actually run):

A series of image-f2 are generated from an image-f3 by a series of extract-image filters and stored in an ArrayList. Debug is turn On for each image object after it is created. Once the filters have done their job, System.gc() is called. What should happen is the filters should get cleaned up, but the image generated by them should still sit around. References to them exist in the ArrayList. However, the debug printout shows the images being destructed.

Seems like GetOutput() isn't quite performing the correct construction of an itkImage on the Java side.

--- debug from eclipse running a vm with -verbose:gc and -verbose:jni. An image-f3 has just been sliced up into a stack of image-f2 by a set of extract-image filters. gc is then called. --

[Dynamic-linking native method java.lang.Runtime.gc ... JNI]
[GC 7864K->320K(753664K), 0.0025320 secs]
[Full GC 320K->269K(753664K), 0.0145000 secs]
Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7eecbc0): disconnecting source 0x2ad7ee87f0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7eecbc0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7eecbc0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7ee41d0): disconnecting source 0x2ad7edfe00, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7ee41d0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7ee41d0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7edb7b0): disconnecting source 0x2ad7ed73a0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7edb7b0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7edb7b0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7ed2de0): disconnecting source 0x2ad7ecea10, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7ed2de0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7ed2de0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7eca3f0): disconnecting source 0x2ad7ec6020, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7eca3f0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7eca3f0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7ec1a00): disconnecting source 0x2ad7ebd630, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7ec1a00): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7ec1a00): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7eb9010): disconnecting source 0x2ad7eb4c40, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7eb9010): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7eb9010): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7eb0620): disconnecting source 0x2ad7eac250, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7eb0620): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7eb0620): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7ea7c30): disconnecting source 0x2ad7ea3860, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7ea7c30): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7ea7c30): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e9f240): disconnecting source 0x2ad7e9ae70, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e9f240): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e9f240): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e96800): disconnecting source 0x2ad7e923f0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e96800): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e96800): Destructing!

slicing done.
[Dynamic-linking native method java.lang.ref.Finalizer.invokeFinalizeMethod ... JNI]
[Dynamic-linking native method InsightToolkit.itkExtractImageFilterJNI.delete_itkExtractImageFilterIF3IF2_Pointer ... JNI]
Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e8de50): disconnecting source 0x2ad7e89a80, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e8de50): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e8de50): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e85460): disconnecting source 0x2ad7e81090, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e85460): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e85460): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e7ca70): disconnecting source 0x2ad7e786a0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e7ca70): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e7ca70): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e74080): disconnecting source 0x2ad7e6fcb0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e74080): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e74080): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e6b690): disconnecting source 0x2ad7e672c0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e6b690): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e6b690): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e62ca0): disconnecting source 0x2ad7e5e8d0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e62ca0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e62ca0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e5a2b0): disconnecting source 0x2ad7e55ee0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e5a2b0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e5a2b0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e518c0): disconnecting source 0x2ad7e4d4b0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e518c0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e518c0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e48ed0): disconnecting source 0x2ad7e44b00, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e48ed0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e48ed0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e404e0): disconnecting source 0x2ad7e3c110, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e404e0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e404e0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e37af0): disconnecting source 0x2ad7e33720, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e37af0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e37af0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e2f100): disconnecting source 0x2ad7e2ad30, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e2f100): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e2f100): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e26710): disconnecting source 0x2ad7e22340, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e26710): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e26710): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e1dd20): disconnecting source 0x2ad7e19950, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e1dd20): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e1dd20): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e15330): disconnecting source 0x2ad7e10f60, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e15330): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e15330): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad7e0ca40): disconnecting source 0x2ad7e08670, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad7e0ca40): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad7e0ca40): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad5afccf0): disconnecting source 0x2ad5afcba0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad5afccf0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad5afccf0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad5af8600): disconnecting source 0x2ad5af4230, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad5af8600): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad5af8600): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad5aefc90): disconnecting source 0x2ad5aeb8c0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad5aefc90): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad5aefc90): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad5ae7320): disconnecting source 0x2ad5ae2f50, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad5ae7320): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad5ae7320): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad5ade9b0): disconnecting source 0x2ad5ada5e0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad5ade9b0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad5ade9b0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad5ad6040): disconnecting source 0x2ad5ad1c70, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad5ad6040): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad5ad6040): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f29c0): disconnecting source 0x2ad57f2870, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f29c0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f29c0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f2610): disconnecting source 0x2ad57f24c0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f2610): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f2610): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f2260): disconnecting source 0x2ad57f2110, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f2260): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f2260): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f1eb0): disconnecting source 0x2ad57f1d60, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f1eb0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f1eb0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f1b00): disconnecting source 0x2ad57f19b0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f1b00): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f1b00): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f1750): disconnecting source 0x2ad57f1600, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f1750): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f1750): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f13a0): disconnecting source 0x2ad57f1250, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f13a0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f13a0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f0ff0): disconnecting source 0x2ad57f0ea0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f0ff0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f0ff0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f0c40): disconnecting source 0x2ad57f0af0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f0c40): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f0c40): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f0890): disconnecting source 0x2ad57f0740, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f0890): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f0890): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f04e0): disconnecting source 0x2ad57f0390, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f04e0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f04e0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f0130): disconnecting source 0x2ad57effe0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f0130): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f0130): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57efd80): disconnecting source 0x2ad57efc30, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57efd80): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57efd80): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57ef9d0): disconnecting source 0x2ad57ef880, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57ef9d0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57ef9d0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57ef620): disconnecting source 0x2ad57ef4d0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57ef620): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57ef620): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57ef270): disconnecting source 0x2ad57ef120, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57ef270): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57ef270): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57eeec0): disconnecting source 0x2ad57eed70, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57eeec0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57eeec0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57eeb10): disconnecting source 0x2ad57ee9c0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57eeb10): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57eeb10): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f6e80): disconnecting source 0x2ad57f6d30, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f6e80): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f6e80): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f6ad0): disconnecting source 0x2ad57f6980, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f6ad0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f6ad0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f6720): disconnecting source 0x2ad57f65d0, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f6720): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f6720): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f6370): disconnecting source 0x2ad57f6220, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f6370): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f6370): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad57f5fc0): disconnecting source 0x2ad57f5e70, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad57f5fc0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad57f5fc0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad5781cb0): disconnecting source 0x2ad5781b60, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad5781cb0): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad5781cb0): Destructing!

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkDataObject.cxx, line 245
Image (0x2ad5781770): disconnecting source 0x2ad5781620, source output index 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 328
Image (0x2ad5781770): UnRegistered, ReferenceCount = 0

Debug: In /home/dev/workspace/itk/v3.2.0/InsightToolkit-3.2.0/Code/Common/itkObject.cxx, line 512
Object (0x2ad5781770): Destructing!

[Dynamic-linking native method InsightToolkit.itkBinaryDilateImageFilterJNI.itkBinaryDilateImageFilterIF2IF2SE2_itkBinaryDilateImageFilterIF2IF2SE2_New ... JNI]
[Dynamic-linking native method InsightToolkit.itkBinaryDilateImageFilterJNI.itkBinaryDilateImageFilterIF2IF2SE2_Pointer_GetKernel ... JNI]
[Dynamic-linking native method InsightToolkit.itkFlatStructuringElementJNI.SWIGitkFlatStructuringElement2ToitkNeighborhoodB2 ... JNI]
[Dynamic-linking native method InsightToolkit.itkSizeJNI.new_itkSize2__SWIG_1 ... JNI]
[Dynamic-linking native method InsightToolkit.itkSizeJNI.itkSize2_SetElement ... JNI]
[Dynamic-linking native method InsightToolkit.itkNeighborhoodJNI.itkNeighborhoodB2_SetRadius__SWIG_0 ... JNI]
[Dynamic-linking native method InsightToolkit.itkBinaryDilateImageFilterJNI.itkBinaryDilateImageFilterIF2IF2SE2_Pointer_SetInput__SWIG_0 ... JNI]
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000002ad57b8120, pid=20411, tid=1076017504
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_01-b06 mixed mode)
# Problematic frame:
# C 0x0000002ad57b8120
#
# An error report file with more information is saved as hs_err_pid20411.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp [^]
TagsNo tags attached.
Resolution Date
Sprint
Sprint Statusbacklog
Attached Files? file icon stackwhack.java [^] (12,188 bytes) 1969-12-31 19:00

 Relationships

  Notes
(0007932)
Julia Smith (reporter)
2007-06-25 18:29

There are work arounds such as incrementing the reference count by hand, although I suspect this will still mean the cptr value is referring to a destroyed smart pointer.

The safer bet is to save the reference to the source filter or copy the data from the image into a image constructed in Java-land. The latter option is terribly clunky.
(0007970)
Luis Ibanez (manager)
2007-07-02 11:01

Looking at the source code, it seems to me that the source of the problem
is that the ArrayList is not composed of SmartPointers to ITK image but
of itk images directly.

That is, instead of:

    ArrayList<itkImageF2> m_2d;

you probably should use


    ArrayList<itkImageF2_Pointer> m_2d;


In this way, the smart pointers will keep the image alive once the filter
that produced the images is destroyed.
(0022947)
Luis Ibanez (manager)
2010-11-06 23:56

closed due to inactivity.

 Issue History
Date Modified Username Field Change
2010-11-06 23:56 Luis Ibanez Sprint Status => backlog
2010-11-06 23:56 Luis Ibanez Note Added: 0022947
2010-11-06 23:56 Luis Ibanez Status assigned => closed
2010-11-06 23:56 Luis Ibanez Resolution open => won't fix


Copyright © 2000 - 2018 MantisBT Team