[vtkusers] VTK C++ Exception handling?

Ashika Umanga Umagiliya aumanga at biggjapan.com
Mon Jul 25 23:20:57 EDT 2011


Thanks David,

I was trying to figure out which filter/point the error occurs.But I cannot
get the "gdb" strack trace after crashing the applicaiton.
Here is my error output

"warning: ERROR: In C:\opt\vtk\Common\/vtkDataArrayTemplate.txx, line 142
warning:

warning: vtkIdTypeArray (0x49346c38): Unable to allocate 15362444 elements
of si
ze 4 bytes.
warning:

warning:


This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.

Program exited with code 03.
(gdb) back
No stack.
(gdb)
"


Any tips on this?

thanks

On 25 July 2011 22:34, David Partyka <david.partyka at kitware.com> wrote:

> You're more than welcome to put try/catches in your own code or to locally
> modify you're VTK source tree to try and debug the issue. For the most part,
> VTK doesn't have many exceptions other than in a couple of places where it's
> absolutely necessary.
>
> P.S. if you happen to have discovered a bug and come up with a fix feel
> free to send it to the list.
>
> Thanks!
>
> On Mon, Jul 25, 2011 at 12:43 AM, Ashika Umanga Umagiliya <
> aumanga at biggjapan.com> wrote:
>
>> any tips?
>>
>>
>> On 22 July 2011 18:48, Ashika Umanga Umagiliya <aumanga at biggjapan.com>wrote:
>>
>>> Greetings all,
>>>
>>> I use "vtkVoxelContoursToSurfaceFilter" to generate mesh from stack of
>>> contours.
>>> I use chain of filters during the process.
>>> (vtkTriangleFilter,vtkSmoothPolyDataFilter,vtkDecimatePro)
>>>
>>> But sometimes VTK crash due to memory allocation problems.Is there a way
>>> to catch the exception using "try" "catch" in VTK ?
>>>
>>> Best Regards
>>>
>>>
>>>
>>
>> _______________________________________________
>> 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/20110726/ed14038f/attachment.htm>


More information about the vtkusers mailing list