# Histogram looking horrible inside paraview

**URL:** https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769
**Category:** ParaView Support
**Created:** [July 7, 2020, 6:39am UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769 "2020-07-07T06:39:39Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![cmatija](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@cmatija](https://discourse.paraview.org/u/cmatija)
#### Post date: [July 7, 2020, 6:39am UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/1 "2020-07-07T06:39:39Z")

</div>

Hi All

I’m using paraview on an Arch linux system with Intel HD 5500 graphics, built from the github commit b99817087bd572aa894b67d67708e4d5b78b0676. Everything seems to work fine, except for the histogram, which for some reason looks like this

 ![paraview_histogram](https://discourse.paraview.org/uploads/default/original/2X/5/5a76893c0ee9d89dfbc64c8f321704b17a39d0f9.png)

It looks like this for any color I choose. E.g, when choosing red, it looks like this:

 ![paraview_histogram2](https://discourse.paraview.org/uploads/default/original/2X/8/8dc9b110bc3737e1850c1d8dcb70295ef7c78a08.png)

Does anyone know how to prevent the histogram from having this patchy appearance?

Many thanks!

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [July 7, 2020, 8:47am UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/2 "2020-07-07T08:47:26Z")

</div>

Same issue here (archlinux) with a today master (a5d1ee6). Note it also impact the color map editor.

Works well when using my NVIDIA GPU instead of Intel graphics.

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [July 7, 2020, 12:02pm UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/3 "2020-07-07T12:02:43Z")

</div>

I can’t reproduce this on my machine, however my suspicion is it’s one of these two VTK commits:

- 2f824a5b59 Rename some OpenGL methods add some docs
- 13956bf0d4 clean up some old opengl es stuff

Can someone who can reproduce this try to isolate which commit it is and let the author know?

---

<div class="post-metadata">

### Author: ![cmatija](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@cmatija](https://discourse.paraview.org/u/cmatija)
#### Post date: [July 7, 2020, 12:32pm UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/4 "2020-07-07T12:32:54Z")

</div>

Just a quick sidenote: when installing paraview using pacman (paraview 5.8.0-7), it looks fine.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [July 7, 2020, 5:49pm UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/5 "2020-07-07T17:49:48Z")

</div>

I can’t replicate on Linux, Intel graphics, builtin server, disk\_out\_ref.exo/ Histogram, master as of v5.8.1-RC1-960-ga608a3c

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [July 8, 2020, 7:15am UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/6 "2020-07-08T07:15:24Z")

</div>

I’m on it !

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [July 8, 2020, 10:24am UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/7 "2020-07-08T10:24:38Z")

</div>

This seems to be due to this MR : [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/6989](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/6989)

Thanks @utkarsh.ayachit for pointing out the commit, it saved some compute time on my machine !

---

<div class="post-metadata">

### Author: ![martink](https://discourse.paraview.org/user_avatar/discourse.paraview.org/martink/32/2082_2.png) [@martink](https://discourse.paraview.org/u/martink)
#### Post date: [July 9, 2020, 6:22pm UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/8 "2020-07-09T18:22:59Z")

</div>

I cannot reproduce this (windows nvidia and intel) which isn’t that surprising at it is probably a driver bug. So if someone can help out maybe we can remotely narrow down the issue. A first test would be to update vtkOpenGLRenderWindow around line 950 and 1015

```auto
// if we have a MSAA buffer we have to resolve it using a shader as opposed to
    // a normal blit due to linear/gamma colorspace issues
    if (this->MultiSamples > 1 && this->RenderFramebuffer->GetColorAttachmentAsTextureObject(0))
    {

```

and make this always false e.g. if (false && …) and see if that fixes the issue.

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [July 10, 2020, 8:32am UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/9 "2020-07-10T08:32:08Z")

</div>

Indeed, making this line always false does the trick!

---

<div class="post-metadata">

### Author: ![cmatija](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@cmatija](https://discourse.paraview.org/u/cmatija)
#### Post date: [July 10, 2020, 8:48am UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/10 "2020-07-10T08:48:05Z")

</div>

can confirm

---

<div class="post-metadata">

### Author: ![martink](https://discourse.paraview.org/user_avatar/discourse.paraview.org/martink/32/2082_2.png) [@martink](https://discourse.paraview.org/u/martink)
#### Post date: [July 10, 2020, 4:50pm UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/11 "2020-07-10T16:50:59Z")

</div>

Can someone on an impacted system do Help -\> About in paraview and copy paste the last three lines that show the OpenGL version/Vendor/Renderer ?

---

<div class="post-metadata">

### Author: ![cmatija](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@cmatija](https://discourse.paraview.org/u/cmatija)
#### Post date: [July 11, 2020, 6:34am UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/12 "2020-07-11T06:34:09Z")

</div>

OpenGL Vendor: Intel  
OpenGL Version: 4.6 (Core Profile) Mesa 20.1.3  
OpenGL Renderer: Mesa Intel® HD Graphics 5500 (BDW GT2)

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [July 13, 2020, 8:33am UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/13 "2020-07-13T08:33:44Z")

</div>

OpenGL Vendor: Intel  
OpenGL Version: 4.6 (Core Profile) Mesa 20.1.3  
OpenGL Renderer: Mesa Intel® HD Graphics 630 (KBL GT2)

---

<div class="post-metadata">

### Author: ![martink](https://discourse.paraview.org/user_avatar/discourse.paraview.org/martink/32/2082_2.png) [@martink](https://discourse.paraview.org/u/martink)
#### Post date: [July 13, 2020, 2:15pm UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/14 "2020-07-13T14:15:38Z")

</div>

[https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/7100](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7100) in testing

---

<div class="post-metadata">

### Author: ![martink](https://discourse.paraview.org/user_avatar/discourse.paraview.org/martink/32/2082_2.png) [@martink](https://discourse.paraview.org/u/martink)
#### Post date: [July 13, 2020, 5:30pm UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/15 "2020-07-13T17:30:01Z")

</div>

Any chance someone could try out these changes in their local PV build that shows this issue. Just to make sure I have it correct?

---

<div class="post-metadata">

### Author: ![cmatija](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@cmatija](https://discourse.paraview.org/u/cmatija)
#### Post date: [July 14, 2020, 1:20pm UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/16 "2020-07-14T13:20:09Z")

</div>

Seems to work, histogram looks nice. Thanks so much for the effort!

---

<div class="post-metadata">

### Author: ![martink](https://discourse.paraview.org/user_avatar/discourse.paraview.org/martink/32/2082_2.png) [@martink](https://discourse.paraview.org/u/martink)
#### Post date: [July 14, 2020, 1:25pm UTC](https://discourse.paraview.org/t/histogram-looking-horrible-inside-paraview/4769/17 "2020-07-14T13:25:39Z")

</div>

Awesome, merged to VTK master. Will probably be a week or two before it gets pulled into PV master as they update their VTK hash about that often.
