Re: [Paraview] Depth rendering issues on ParaView Desktop 5.1.0

2016-08-09 Thread Júlio Hoffimann
Hi David,

Thank you for your attention. All your comments were really helpful and we
definitely narrowed the location of the bug further. Given that 5.x.x works
well in your Arch Linux, we are for sure talking about driver-related
issues. I don't know to what extent these drivers are being used, but I
will let you know if I figure out something else.

The fact that 4.x.x works on the same machine also confirms that this is a
bug in the way ParaView is manipulating these drivers?

If anyone else has other suggestions besides the bisection of the source
code, which is something I don't have the time to do right now, please let
us know.

Best,
-Júlio

2016-08-09 7:49 GMT-05:00 David Lonie :

> On Mon, Aug 8, 2016 at 9:55 PM, Júlio Hoffimann
>  wrote:
> > According to the Arch Linux documentation
> > (https://wiki.archlinux.org/index.php/xorg#Driver_installation), the
> Intel
> > driver has priority over the others, is it being picked up in the log?
>
> I'm afraid this is going beyond my ability to help, I'm not terribly
> familiar with these details. But it does look to me like the drivers
> are loaded correctly in the log.
>
> > I updated ParaView from AUR, could you confirm that 5.x.x releases are
> > working with Arch? I only have another machine with Ubuntu to test on.
>
> I updated my arch box yesterday, and can confirm the the 5.x branches
> are working correctly, both using the proprietary nVidia drivers and
> the bundled mesa-llvm implementation. I don't have an intel card to
> test on, but the mesa-llvm test rules out the hardware driver.
>
> The only thing left I can think of would be to bisect the source, but
> that can be a very time consuming process. If you locate the commit
> that's causing the error, perhaps it would shed some light on what's
> happening.
>
> I'm out of ideas at this point -- maybe someone else will have some
> suggestions?
>
> Good luck,
> Dave
>
___
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


Re: [Paraview] Depth rendering issues on ParaView Desktop 5.1.0

2016-08-09 Thread David Lonie
On Mon, Aug 8, 2016 at 9:55 PM, Júlio Hoffimann
 wrote:
> According to the Arch Linux documentation
> (https://wiki.archlinux.org/index.php/xorg#Driver_installation), the Intel
> driver has priority over the others, is it being picked up in the log?

I'm afraid this is going beyond my ability to help, I'm not terribly
familiar with these details. But it does look to me like the drivers
are loaded correctly in the log.

> I updated ParaView from AUR, could you confirm that 5.x.x releases are
> working with Arch? I only have another machine with Ubuntu to test on.

I updated my arch box yesterday, and can confirm the the 5.x branches
are working correctly, both using the proprietary nVidia drivers and
the bundled mesa-llvm implementation. I don't have an intel card to
test on, but the mesa-llvm test rules out the hardware driver.

The only thing left I can think of would be to bisect the source, but
that can be a very time consuming process. If you locate the commit
that's causing the error, perhaps it would shed some light on what's
happening.

I'm out of ideas at this point -- maybe someone else will have some suggestions?

Good luck,
Dave
___
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


Re: [Paraview] Depth rendering issues on ParaView Desktop 5.1.0

2016-08-08 Thread Júlio Hoffimann
Hi David,

On my laptop, the command pkgfile doesn't find any repo for the drivers
i965_dri.so and swrast_dri.so.

*This is what I have installed from the list of open-source drivers:*

extra/xf86-video-fbdev 0.4.4-5 (xorg-drivers xorg) [installed]
X.org framebuffer video driver

extra/xf86-video-intel 1:2.99.917+691+ga77397a-1 (xorg-drivers xorg)
[installed]
X.org Intel i810/i830/i915/945G/G965+ video drivers

extra/xf86-video-vesa 2.3.4-2 (xorg-drivers xorg) [installed]
X.org vesa video driver

*This is the relevant section of my /var/log/Xorg.0.log:*

[ 4.483] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 4.483] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 4.483] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200,
6200, P6300
[ 4.483] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 4.483] (II) FBDEV: driver for framebuffer: fbdev
[ 4.483] (II) VESA: driver for VESA chipsets: vesa
[ 4.494] (II) intel(0): Using Kernel Mode Setting driver: i915, version
1.6.0 20160229
[ 4.494] (II) intel(0): SNA compiled from 2.99.917-691-ga77397a
[ 4.494] (WW) Falling back to old probe method for modesetting
[ 4.494] (WW) Falling back to old probe method for fbdev
[ 4.494] (II) Loading sub module "fbdevhw"
[ 4.494] (II) LoadModule: "fbdevhw"
[ 4.494] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 4.495] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 4.495] compiled for 1.18.4, module version = 0.0.2
[ 4.495] ABI class: X.Org Video Driver, version 20.0
[ 4.495] (WW) Falling back to old probe method for vesa

According to the Arch Linux documentation (
https://wiki.archlinux.org/index.php/xorg#Driver_installation), the Intel
driver has priority over the others, is it being picked up in the log?

I updated ParaView from AUR, could you confirm that 5.x.x releases are
working with Arch? I only have another machine with Ubuntu to test on.

-Júlio

2016-08-08 7:46 GMT-05:00 David Lonie :

> Hi Julio,
>
> On Sun, Aug 7, 2016 at 2:01 PM, Júlio Hoffimann
>  wrote:
> > Hi David,
> >
> > I downloaded all 4.x.x releases and everything works as expected. I
> > downloaded ParaView 5.0.1 and ParaView 5.1.2, both give me the following
> > error message about the driver:
> >
> > libGL error: unable to load driver: i965_dri.so
> > libGL error: driver pointer missing
> > libGL error: failed to load driver: i965
> > libGL error: unable to load driver: i965_dri.so
> > libGL error: driver pointer missing
> > libGL error: failed to load driver: i965
> > libGL error: unable to load driver: swrast_dri.so
> > libGL error: failed to load driver: swrast
> > Segmentation fault (core dumped)
> >
> > Based on that outcome, I confirm that this is a bug introduced somewhere
> in
> > between the 4.x.x and 5.x.x releases. How can we go and investigate this
> > further? I can print more information about my system in case it is
> needed.
>
> Are those drivers installed correctly? Looks like they're provided by
> the intel-dri and mesa packages on archlinux:
>
> $ pkgfile i965_dri.so
> extra/intel-dri
> $ pkgfile swrast_dri.so
> extra/mesa
>
> Those errors, and that the 5.x releases are working on other archlinux
> installs, make me think this is a configuration issue with this
> specific machine. The X log file /var/log/Xorg.0.log may have some
> clues if there's a problem initializing the driver support needed for
> the newer paraview. I'm not convinced this is a bug in ParaView just
> yet -- the 5.x versions require different OpenGL contexts than the 4.x
> versions, so it may be that something is not quite right for the newer
> contexts.
>
> Have you tried building from source and setting VTK_RENDERING_BACKEND
> to OpenGL (instead of OpenGL2) in cmake? That would build paraview
> with the older backend used by the 4.x line, and might work better for
> you.
>
> The only other idea that comes to mind would be to grab the
> development branch from git and use 'git bisect' to identify the
> commit that introduced the functionality that's failing on this
> installation:
>
> Getting the sources from git:
> https://gitlab.kitware.com/paraview/paraview/blob/master/
> Documentation/dev/git/develop.md
>
> Git bisect:
> http://stackoverflow.com/questions/4713088/how-to-use-git-bisect
>
> Hope this helps,
> Dave
>
___
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


Re: [Paraview] Depth rendering issues on ParaView Desktop 5.1.0

2016-08-08 Thread David Lonie
Hi Julio,

On Sun, Aug 7, 2016 at 2:01 PM, Júlio Hoffimann
 wrote:
> Hi David,
>
> I downloaded all 4.x.x releases and everything works as expected. I
> downloaded ParaView 5.0.1 and ParaView 5.1.2, both give me the following
> error message about the driver:
>
> libGL error: unable to load driver: i965_dri.so
> libGL error: driver pointer missing
> libGL error: failed to load driver: i965
> libGL error: unable to load driver: i965_dri.so
> libGL error: driver pointer missing
> libGL error: failed to load driver: i965
> libGL error: unable to load driver: swrast_dri.so
> libGL error: failed to load driver: swrast
> Segmentation fault (core dumped)
>
> Based on that outcome, I confirm that this is a bug introduced somewhere in
> between the 4.x.x and 5.x.x releases. How can we go and investigate this
> further? I can print more information about my system in case it is needed.

Are those drivers installed correctly? Looks like they're provided by
the intel-dri and mesa packages on archlinux:

$ pkgfile i965_dri.so
extra/intel-dri
$ pkgfile swrast_dri.so
extra/mesa

Those errors, and that the 5.x releases are working on other archlinux
installs, make me think this is a configuration issue with this
specific machine. The X log file /var/log/Xorg.0.log may have some
clues if there's a problem initializing the driver support needed for
the newer paraview. I'm not convinced this is a bug in ParaView just
yet -- the 5.x versions require different OpenGL contexts than the 4.x
versions, so it may be that something is not quite right for the newer
contexts.

Have you tried building from source and setting VTK_RENDERING_BACKEND
to OpenGL (instead of OpenGL2) in cmake? That would build paraview
with the older backend used by the 4.x line, and might work better for
you.

The only other idea that comes to mind would be to grab the
development branch from git and use 'git bisect' to identify the
commit that introduced the functionality that's failing on this
installation:

Getting the sources from git:
https://gitlab.kitware.com/paraview/paraview/blob/master/Documentation/dev/git/develop.md

Git bisect:
http://stackoverflow.com/questions/4713088/how-to-use-git-bisect

Hope this helps,
Dave
___
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


Re: [Paraview] Depth rendering issues on ParaView Desktop 5.1.0

2016-08-07 Thread Júlio Hoffimann
Hi David,

I downloaded all 4.x.x releases and everything works as expected. I
downloaded ParaView 5.0.1 and ParaView 5.1.2, both give me the following
error message about the driver:

libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Segmentation fault (core dumped)

Based on that outcome, I confirm that this is a bug introduced somewhere in
between the 4.x.x and 5.x.x releases. How can we go and investigate this
further? I can print more information about my system in case it is needed.

-Júlio

2016-08-05 8:44 GMT-05:00 Júlio Hoffimann :

> Thank you David, soon I have access to my workstation I'll try the other
> versions and report the results here.
>
> -Júlio
>
___
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


Re: [Paraview] Depth rendering issues on ParaView Desktop 5.1.0

2016-08-05 Thread Júlio Hoffimann
Thank you David, soon I have access to my workstation I'll try the other
versions and report the results here.

-Júlio
___
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


Re: [Paraview] Depth rendering issues on ParaView Desktop 5.1.0

2016-08-05 Thread David Lonie
The only other thing I can think of is that it might be an issue with
the new depth peeling code, which is used to blend layers of
translucent geometry. However, from the look of the screenshots, it
appears that all of the geometry is opaque, in which case depth
peeling wouldn't be used.

Still, you can try setting the environment variable
"VTK_USE_LEGACY_DEPTH_PEELING" to force the older depth peeling code.
This was added for 5.1.2, so you'll need to test that on the new
release.

Other than that...I'm out of ideas, unfortunately. Maybe try an older
4.x version of paraview?

Maybe someone else will have some idea what may be happening. It
appears that the depth test has been reversed on these builds somehow.

On Fri, Aug 5, 2016 at 9:04 AM, Júlio Hoffimann
 wrote:
> Thank you David, I tried with Mesa and the result is the same. I'm gonna try
> the newer release, but I suspect it won't solve the issue.
>
> Any information that I can export and that can help figure out the root of
> the problem?
>
> -Júlio
___
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


Re: [Paraview] Depth rendering issues on ParaView Desktop 5.1.0

2016-08-05 Thread Júlio Hoffimann
Thank you David, I tried with Mesa and the result is the same. I'm gonna
try the newer release, but I suspect it won't solve the issue.

Any information that I can export and that can help figure out the root of
the problem?

-Júlio
___
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


Re: [Paraview] Depth rendering issues on ParaView Desktop 5.1.0

2016-08-05 Thread David Lonie
That is very odd. I use arch linux as well and don't see this here.

I'm suspecting a graphics driver issue at this point. Try running paraview
with the "--mesa-llvm" command line argument and see if it fares better.
That will force paraview to use a software-based OpenGL implementation and
bypass the GPU and system OpenGL drivers.

You may also want to try the slightly newer 5.1.2 release here:
http://www.paraview.org/download/

Dave
___
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


Re: [Paraview] Depth rendering issues on ParaView Desktop 5.1.0

2016-08-04 Thread David Lonie
This looks like the front faces of the surface have been culled. In the
properties tab, enable advanced properties (the gear button) and locate the
"Backface representation" setting. It's usually set to "Follow Frontface",
but "Cull Frontface" will give results like you're seeing.

Does changing this value help?

On Wed, Aug 3, 2016 at 10:53 PM, Júlio Hoffimann 
wrote:

> Dear all,
>
> I have a depth rendering issue that is now compromising my work on a Arch
> Linux laptop. This is a simple Dell XPS 13 with an integrated Intel(R) HD
> Graphics Skylake ULT GT2 GPU.
>
> The attached figure shows a 3D volume with incorrect depth rendering:
>
>
> ​
> Is this an issue with the graphics card driver? How can I solve it?
>
> I appreciate any guidance.
>
> Sincerely,
> -Júlio
>
> ___
> 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