[vtk-developers] segfault with vtkLineIntegralConvolution2D
david.froger.ml at mailoo.org
david.froger.ml at mailoo.org
Mon Dec 12 02:20:41 EST 2016
I made this merge request
https://gitlab.kitware.com/vtk/vtk/merge_requests/2251
that add `#ifndef __WRAP__` `#endif` around methods that should be be
wrapped.
This fix the issue.
I don't know why the wrapping tool does not detect these methods are not
wrappable
(do not inherit from vtkObjectBase). Maybe some code should be changed
so that the
wrapping tool can detect it, without using __WRAP__?
Le 29.11.2016 23:33, Burlen Loring a écrit :
> I took a quick look, vtkPainterCommunicator is a class that is not
> wrapped, and it seems that commit 4d127b1d introduced the bug. // ETX
> and // BTX were removed from the Set/Get methods you mention and a
> number of others in the class. I don't think vtkPainterCommunicator
> should necessarily be promoted to a vtkObject, the comments in the
> Set/Get methods explain why it was not one in the first place. IMO,
> probably best to simply exclude these methods from wrapping, if that's
> still an option.
>
> Burlen
>
> On 11/29/2016 12:28 PM, David Froger wrote:
>
>> Hello VTK devs,
>>
>> I'm looking for help/advices to solve
>> https://gitlab.kitware.com/vtk/vtk/issues/16920 .
>>
>> Does vtkPainterCommunicator needs to inherit vtkObject, as I'm trying
>> to do?
>>
>> If so, I now have errors:
>>
>> ERROR: In /home/vagrant/VTK-7.1.0/Common/Core/vtkObject.cxx, line 156
>> vtkObject (0x18f7140): Trying to delete object with non-zero reference
>> count.
>>
>> Generic Warning: In
>> /home/vagrant/VTK-7.1.0/Common/Core/vtkObjectBase.cxx,
>> line 93
>> Trying to delete object with non-zero reference count.
>>
>> I understand the error message (C++ deletes an object whose reference
>> count is
>> not zero), but I don't know where is come from, and how to solve it.
>> (I tried to
>> put vtkSmartPointers in place of vtkPainterCommunicator*). Anyway, if
>> vtkPainterCommunicator does not need to inherit vtkObject, the problem
>> does not
>> need to be solved...
>>
>> Another problem is the VTK robot that detect trailing whitespace, that
>> a commit
>> already solved.
>>
>> Thanks,
>> David
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Search the list archives at:
>> http://markmail.org/search/?q=vtk-developers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtk-developers
More information about the vtk-developers
mailing list