# Trying to diagnose an issue with VirtualGL and Slicer

**URL:** <https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685>\
**Category:** Development\
**Created:** [May 19, 2021, 1:46am UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685 "2021-05-19T01:46:26Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [May 28, 2021, 9:11pm UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685/22 "2021-05-28T21:11:08Z")

</div>

I would make the example for you but I’m tied up at least the next week. If you nobody else can help you ping me again and I can give it a shot.

---

<div class="post-metadata">

**Author:** ![DRC](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/drc/32/10979_2.png) [@DRC](https://discourse.slicer.org/u/DRC)\
**Post date:** [May 28, 2021, 10:40pm UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685/23 "2021-05-28T22:40:31Z")

</div>

I’ll be gone for the next week anyhow and working on documentation after that, so there’s no huge rush.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 21, 2021, 5:11pm UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685/24 "2021-06-21T17:11:33Z")

</div>

@muratmaga tells me this issue is bottleneck for SlicerMorph, so it would be great to get to the bottom of it. Unfortunately depth peeling seems to be touching low level in OpenGL driver code that is rarely used and different across platforms.

[Here’s a script](https://gist.github.com/pieper/9d19de1b08f72f50ef29cdb243de4359) that uses pure vtk python to do volume rendering with cropping and depth peeling that should be very similar to what Slicer does. This renders script fine for me on mac and one linux machine but has some artifacts on a different linux machine (no VirtualGL involved). It would be good to know if this can be used to track down the VirtualGL issue at the VTK level.

---

<div class="post-metadata">

**Author:** ![DRC](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/drc/32/10979_2.png) [@DRC](https://discourse.slicer.org/u/DRC)\
**Post date:** [October 16, 2021, 7:52pm UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685/25 "2021-10-16T19:52:54Z")

</div>

I believe that [EGLBE: Test/Fix issues with draw buffer state · VirtualGL/virtualgl@adabbd9 · GitHub](https://github.com/VirtualGL/virtualgl/commit/adabbd912ad0139c6bab698f8c20a18f2b8152e0) accidentally fixed this. I can no longer reproduce the issue after that commit.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [October 17, 2021, 2:44pm UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685/26 "2021-10-17T14:44:45Z")

</div>

That’s great news, thanks for reporting back 👍

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 17, 2021, 5:41pm UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685/27 "2021-10-17T17:41:37Z")

</div>

This is great. What would we need to change in this Slicer docker image for Jupyter/Lab to get this fix?

> <https://github.com/Slicer/SlicerDocker/blob/master/slicer-notebook/Dockerfile>

---

<div class="post-metadata">

**Author:** ![DRC](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/drc/32/10979_2.png) [@DRC](https://discourse.slicer.org/u/DRC)\
**Post date:** [October 19, 2021, 3:08pm UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685/28 "2021-10-19T15:08:52Z")

</div>

@lassoan Unless you are using VirtualGL (and it doesn’t appear that you are), this issue is not relevant to you.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 19, 2021, 6:23pm UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685/29 "2021-10-19T18:23:36Z")

</div>

Could you help with for switching to using VirtualGL? The dockerfile was created by someone else several years ago and I’m not sure what and how would need to be changed.

---

<div class="post-metadata">

**Author:** ![DRC](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/drc/32/10979_2.png) [@DRC](https://discourse.slicer.org/u/DRC)\
**Post date:** [October 19, 2021, 6:29pm UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685/30 "2021-10-19T18:29:58Z")

</div>

@lassoan Using VirtualGL isn’t just a matter of changing the Dockerfile. You would need additional configuration on the host machine. I do such work as a paid consultant, and if you are interested in hiring me, contact me off-list: [VirtualGL | About / Contact](https://virtualgl.org/About/Contact).

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 11, 2021, 4:31am UTC](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685/31 "2021-11-11T04:31:45Z")

</div>

Split this topic on November 11, 2021, 4:31am UTC

11 posts were split to a new topic: [Volume rendering appearance changes if ROI box is shown](https://discourse.slicer.org/t/volume-rendering-appearance-changes-if-roi-box-is-shown/20575)

[Previous page](https://discourse.slicer.org/t/trying-to-diagnose-an-issue-with-virtualgl-and-slicer/17685.md?page=1)
