[vtkusers] VTK Render Window Crashes after 6 hours of running

Andras Lasso lasso at queensu.ca
Sat Sep 9 07:52:44 EDT 2017


Jay, could you please test this with the latest VTK master version, OpenGL2 backend, latest graphics card drivers, GPU threaded optimization disabled, on at least 3-4 different computers, and let us know what you find?

Andras

-----Original Message-----
From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Bill Lorensen
Sent: Friday, September 8, 2017 7:47 PM
To: Jay <jayavardhanravi at outlook.com>
Cc: VTK Users <vtkusers at vtk.org>
Subject: Re: [vtkusers] VTK Render Window Crashes after 6 hours of running

Normally we don't create OpenGL classes. Try using vtkPolyDataMapper and vtkActor.


On Fri, Sep 8, 2017 at 6:38 PM, Jay <jayavardhanravi at outlook.com> wrote:
> I created a simple project to render the sphere to render window. The 
> rendering works fine with no issues. vtkTransform is used to rotate 
> the sphere. The rendering is left to run for a long time. After 6 
> hours 40 minutes the VTK application crashes with error message shown below:
>
> ERROR :/ *Exception thrown at 0xeqwewqeqwe (nvoglv32.dll) in XXXX.exe:
> 0xC0000005: Access violation reading location 0x00000020.*/
>
> My system uses the NVIDIA Graphic card. And my memory usage is low at 
> the time of crashing.
> NVIDIA Memory usage :
> /<fb_memory_usage>
>         <total>4096 MiB</total>
>         <used>387 MiB</used>
>         <free>3709 MiB</free>
> </fb_memory_usage>
> <bar1_memory_usage>
>         <total>256 MiB</total>
>         <used>4 MiB</used>
>         <free>252 MiB</free>
> </bar1_memory_usage>/
>
> Code used:
>
> /#include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> 
> #include <vtkOpenGLActor.h> #include <vtkOpenGLPolyDataMapper.h> 
> #include <vtkSphereSource.h> #include <vtkTransform.h> #include 
> <vtkRenderer.h> #include <vtkRenderWindow.h>
>
> int main()
> {
>         vtkSmartPointer<vtkSphereSource> src = 
> vtkSmartPointer<vtkSphereSource>::New();
>         src->SetRadius(5);
>         src->Update();
>         vtkSmartPointer<vtkTransform> tran = vtkSmartPointer<vtkTransform>::New();
>         vtkSmartPointer<vtkOpenGLPolyDataMapper> maper = 
> vtkSmartPointer<vtkOpenGLPolyDataMapper>::New();
>         maper->SetInputConnection(src->GetOutputPort());
>         vtkSmartPointer<vtkOpenGLActor> act = 
> vtkSmartPointer<vtkOpenGLActor>::New();
>         act->SetMapper(maper);
>         act->SetUserTransform(tran);
>         vtkSmartPointer<vtkRenderer> rer = vtkSmartPointer<vtkRenderer>::New();
>         vtkSmartPointer<vtkRenderWindow> rew = 
> vtkSmartPointer<vtkRenderWindow>::New();
>         vtkSmartPointer<vtkRenderWindowInteractor> rei = 
> vtkSmartPointer<vtkRenderWindowInteractor>::New();
>         rer->AddActor(act);
>         rew->AddRenderer(rer);
>         rew->SetInteractor(rei);
>         rei->Initialize();
>         while (true)
>         {
>                 tran->RotateX(90);
>                 rer->Modified();
>                 rew->Render();
>         }
> }/
>
>
>
> --
> Sent from: 
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.10
> 45678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40q
> ueensu.ca%7Cf118edbc4b864378c1d108d4f713faf3%7Cd61ecb3b38b142d582c4efb
> 2838b925c%7C1%7C0%7C636405112563407632&sdata=sXA4F1S0SwlogOiI8Vq3jb3I%
> 2BFgNZzvCzFw5818cVbc%3D&reserved=0
> _______________________________________________
> Powered by 
> https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&dat
> a=02%7C01%7Classo%40queensu.ca%7Cf118edbc4b864378c1d108d4f713faf3%7Cd6
> 1ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636405112563407632&sdata=Y%2F
> AdOsYG5yTpedbydlqYNqBy3BCe%2B4VYSaqHXDUnhYE%3D&reserved=0
>
> Visit other Kitware open-source projects at 
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ki
> tware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queens
> u.ca%7Cf118edbc4b864378c1d108d4f713faf3%7Cd61ecb3b38b142d582c4efb2838b
> 925c%7C1%7C0%7C636405112563407632&sdata=aNNwwpayx8a1lbfJtZrXZ6wzgxuaUB
> aEHRtbOJyfAZw%3D&reserved=0
>
> Please keep messages on-topic and check the VTK FAQ at: 
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vt
> k.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Cf118edbc4b8
> 64378c1d108d4f713faf3%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636
> 405112563407632&sdata=13phBQMsH%2BgCX7xDfUImboWQihKwEOqXtOz7fAKeku4%3D
> &reserved=0
>
> Search the list archives at: 
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkma
> il.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7C
> f118edbc4b864378c1d108d4f713faf3%7Cd61ecb3b38b142d582c4efb2838b925c%7C
> 1%7C0%7C636405112563407632&sdata=ht3rFrGBPrvFT%2FI6B4lqJLb1ll5qBXvaH3i
> MUPUw2fo%3D&reserved=0
>
> Follow this link to subscribe/unsubscribe:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpublic
> .kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40qu
> eensu.ca%7Cf118edbc4b864378c1d108d4f713faf3%7Cd61ecb3b38b142d582c4efb2
> 838b925c%7C1%7C0%7C636405112563407632&sdata=mk67BvOrAjURO9xSipkCEWdgK%
> 2BYcDlmuxyDMZ2LttQo%3D&reserved=0



--
Unpaid intern in BillsBasement at noware dot com _______________________________________________
Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Cf118edbc4b864378c1d108d4f713faf3%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636405112563407632&sdata=Y%2FAdOsYG5yTpedbydlqYNqBy3BCe%2B4VYSaqHXDUnhYE%3D&reserved=0

Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Cf118edbc4b864378c1d108d4f713faf3%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636405112563407632&sdata=aNNwwpayx8a1lbfJtZrXZ6wzgxuaUBaEHRtbOJyfAZw%3D&reserved=0

Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Cf118edbc4b864378c1d108d4f713faf3%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636405112563407632&sdata=13phBQMsH%2BgCX7xDfUImboWQihKwEOqXtOz7fAKeku4%3D&reserved=0

Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cf118edbc4b864378c1d108d4f713faf3%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636405112563407632&sdata=ht3rFrGBPrvFT%2FI6B4lqJLb1ll5qBXvaH3iMUPUw2fo%3D&reserved=0

Follow this link to subscribe/unsubscribe:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cf118edbc4b864378c1d108d4f713faf3%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636405112563407632&sdata=mk67BvOrAjURO9xSipkCEWdgK%2BYcDlmuxyDMZ2LttQo%3D&reserved=0


More information about the vtkusers mailing list