[Paraview] Overlapping ParaView windows obscuring each other in ParaViewWeb visualizer server

Sebastien Jourdain sebastien.jourdain at kitware.com
Thu Oct 12 11:09:20 EDT 2017


Hi Louise,

Another option with the current binaries that you have is to ask for
offscreen rendering in the code (Python). The window will still pop-up but
will be black and the correct rendering pixels will be send to the web
client.

Just add those 2 lines

simple.GetRenderView().UseOffscreenRenderingForScreenshots = 1
simple.GetRenderView().UseOffscreenRendering = 1

After the line
https://github.com/Kitware/visualizer/blob/master/server/pvw-visualizer.py#L200
but in the Python script you use to start Visualizer.

Seb

On Thu, Oct 12, 2017 at 6:48 AM, Shawn Waldon <shawn.waldon at kitware.com>
wrote:

> Hi Louise,
>
> I have seen something like this before when using VTK render windows on
> Linux with NVidia drivers.  There is a bug/feature in the NVidia driver
> where it only renders the part of the window that is shown onscreen.  The
> workaround I used at the time was to enable offscreen rendering (which I
> think ParaView will do by default in the 5.5 when that is released in a few
> months).  In ParaView master/5.5 it will be a command line option too
> --force-offscreen-rendering, but I think for 5.4 and earlier you would need
> to build ParaView with offscreen rendering enabled and then use that
> ParaView for Visualizer.
>
> HTH,
> Shawn
>
> On Thu, Oct 12, 2017 at 5:54 AM, <louise.davies at stfc.ac.uk> wrote:
>
>> Hello all,
>>
>>
>>
>> I seem to be observing odd behaviour on my ParaViewWeb server, in that
>> the server works and a client can see their visualisation window fine
>> provided a window does not overlap the ParaView window that is spawned when
>> the user connects to the server. If a new user connects, a new ParaView
>> window is spawned in the exact same place as the previous one, and the
>> first user now sees the image displayed on the second user’s server –
>> seemingly because the first user’s ParaView window is underneath the new
>> user’s window.
>>
>>
>>
>> It’s not just overlapping ParaView windows either. If I connect to my
>> server via VNC and place any window on top, it also obscures the user’s
>> view, although it just blacks out the screen and doesn’t show the actual
>> window itself to the user. Attached are some screenshots of what I’m trying
>> to describe, showing what is happening on the server desktop and what the
>> result is in the Visualizer window.
>>
>>
>>
>> Any ideas on what could possibly be going wrong would be greatly
>> appreciated.
>>
>>
>>
>> Kind regards,
>>
>>
>>
>> Louise Davies
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171012/eb2ef5bf/attachment.html>


More information about the ParaView mailing list