---------- Forwarded message ---------- From: Maxim Torgonskiy <[email protected]> Date: 2017-07-03 13:54 GMT-04:00 Subject: Re: [Paraview] pvbatch rendering issue To: Utkarsh Ayachit <[email protected]>
Ok, I've found the source of the problem. The state has links between views '<CameraLink name=' which somehow cause rendering of everything when I touch a view and the view image I want to write is almost never the right one. I removed these links and now everything works fine. Thank you for your help! Ps. The python script is that I've posted above (just with two hardcoded pathes 'pvsm_file' and 'baseline_path'). The pvsm state won't be reproducible with paraview since it uses many custom plugins. 2017-07-03 12:44 GMT-04:00 Utkarsh Ayachit <[email protected]>: > Mind sending me the script? Not sure what's going on. > > On Mon, Jul 3, 2017 at 11:49 AM, Maxim Torgonskiy <[email protected]> > wrote: > > Hello Utkarsh, > > > > Thank you for your quick reply. Yes, I tried with and without > > `--use-offscreen-rendering`, the result is the same. > > > > 2017-07-03 11:38 GMT-04:00 Utkarsh Ayachit <[email protected] > >: > >> > >> Maxim, > >> > >> Can you try passing `--use-offscreen-rendering` flag to pvbatch. Does > >> that help? I am not sure how you're getting incorrect sizes with > >> osmesa too, but let's focus of the X error to begin with. > >> > >> Utkarsh > >> > >> On Mon, Jul 3, 2017 at 11:36 AM, Maxim Torgonskiy <[email protected]> > >> wrote: > >> > Hello, > >> > > >> > I need to load a heavy pvsm state with pvbatch and render multiple > >> > output > >> > views for my regression tests. The python script which I use is quite > >> > straightforward: > >> > > >> > import paraview.simple as ParaViewSimple > >> > import os > >> > ... > >> > ParaViewSimple.servermanager.LoadState(pvsm_file) > >> > for view in ParaViewSimple.GetRenderViews(): > >> > pxm = ParaViewSimple.servermanager.ProxyManager() > >> > view_name = pxm.GetProxyName("views", view) > >> > ParaViewSimple.SaveScreenshot(os.path.join(baseline_path, "%s.png" > % > >> > view_name), view) > >> > > >> > If I launch it with pvbatch it returns multiple warnings "Warning: In > >> > > >> > /home/kriolog/projects/caboma/SpecifX/VTK/Rendering/OpenGL2/ > vtkXOpenGLRenderWindow.cxx, > >> > line 1080 > >> > vtkXOpenGLRenderWindow (0x556adac32720): warning window did not resize > >> > in > >> > the allotted time" and generates wrong images (10 identical images of > >> > one of > >> > the views and one different instead 11 different images). However, > when > >> > I > >> > launch the same script from ParaView it generates correct images. > When I > >> > launch pvbatch in my docker container (osmesa, no Qt) it silently > >> > generates > >> > the same wrong images. Could you please me give me some advice about > how > >> > to > >> > debug it? > >> > > >> > The version of VTK which I use is 7.1.1 (slightly modified). > >> > > >> > Thanks, > >> > Maxim > >> > > >> > _______________________________________________ > >> > 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 ParaView Wiki at: > >> > http://paraview.org/Wiki/ParaView > >> > > >> > Search the list archives at: http://markmail.org/search/?q=ParaView > >> > > >> > Follow this link to subscribe/unsubscribe: > >> > http://public.kitware.com/mailman/listinfo/paraview > >> > > > > > >
_______________________________________________ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
