[vtkusers] vtkOpenGLRenderWindow::GetFrontBuffer throw system access violation when using vtkCaptionWidget
Liu_tj
tjlp at netease.com
Sun Sep 25 21:16:22 EDT 2016
Hi,David,
These caption widgets are used for 3d model text annotation.
My code architecture is as follow:
Dicom3DVolumeRenderer class (derived from C# UserControl) defines a RenderWindowControl, calls TextAnnocation class which is responsible for generate the caption widget for 3d model.
UserControl_Unloaded() is added for Dicom3DVolumeRenderer to remove all these widgets. But the crash happened before this method is called.
Thanks
在2016-09-26,"David Cole" <DLRdave at aol.com> 写道: -----原始邮件-----
发件人:"David Cole" <DLRdave at aol.com>
发送时间:2016年09月26日 星期一
收件人:"Liu_tj" <tjlp at netease.com>
抄送:"vtkusers" <vtkusers at vtk.org>
主题:Re: [vtkusers] vtkOpenGLRenderWindow::GetFrontBuffer throw system access violation when using vtkCaptionWidget
Try removing all your caption widgets from your list as the window is closing.
David
On Sep 25, 2016, at 12:25 PM, Liu_tj <tjlp at netease.com> wrote:
Hi,
I am using Activiz .NET 7.1. In my application, I use a C# List to store the vtkCaptionWidget objects. When the application is closed, then system access violation exception is thrown. In Visual Stuido debugger, no call stack can be tracked. Then I used windbg to debug the application. Windbg show below message:
** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Personal\Code\Dev\Chaos3D.UI.Application.FE\bin\Debug\vtkInteractionWidgets-7.1.dll -
vtkRenderingOpenGL_7_1!vtkOpenGLRenderWindow::GetFrontBuffer+0x1b51ce:
00007ff9`20d1b50c 488b00 mov rax,qword ptr [rax] ds:00000000`00000000=????????????????
The call stack is:
vtkRenderingOpenGL_7_1!vtkOpenGLRenderWindow::GetFrontBuffer+0x1b51ce
vtkInteractionWidgets_7_1!vtkBalloonWidget::vtkBalloonWidget+0x98b7d
vtkRenderingCore_7_1!vtkTransformInterpolator::InterpolateTransform+0x150ba9
vtkRenderingCore_7_1!vtkTransformInterpolator::InterpolateTransform+0x150f73
vtkCommonCore_7_1!vtkAnimationCue::Finalize+0x26ed1f
vtkCommonCore_7_1!vtkAnimationCue::Finalize+0x44c356
vtkCommonCore_7_1!vtkAnimationCue::Finalize+0x44ca96
vtkCommonCore_7_1!vtkAnimationCue::Finalize+0x44d3cb
vtkCommonCore_7_1!vtkAnimationCue::Finalize+0x44a082
vtkRenderingCore_7_1!vtkTransformInterpolator::InterpolateTransform+0x20c52b
vtkRenderingCore_7_1!vtkTransformInterpolator::InterpolateTransform+0x2069c2
Kitware_VTK_vtkRenderingCore_Unmanaged!vtkColorTransferFunction_GetIndexedColor_35+0x4c844
What might be the problem? What I can guess is it is about some unmanaged VTK resource release issue.
Thanks.
Liu Peng
_______________________________________________
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
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160926/59880767/attachment.html>
More information about the vtkusers
mailing list