VMTK 1.4 Installation : openGL problem

2,273 views
Skip to first unread message

DP

unread,
May 30, 2018, 7:55:06 AM5/30/18
to vmtk-users

Hi,

I just tried to install VMTK 1.4 on my new computer (Linux, Centos7).

As requested, I :


- installed  glew

- installed  mesa-libOSMesa

- installed  Anaconda

- installed anaconda-client

- updated conda and anaconda-client

- created my python environment with adequate libraries (conda create -n foo -c vmtk python=3.6 itk vtk vmtk)


Everything seemed to be fine, but when I launched my script, I got :

ERROR: In ../Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 797
vtkOSOpenGLRenderWindow (0x2c2f23e0): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.


Do you have any idea what might be wrong ?


Some more information on my setup :

- my graphic card : OpenGL version string: 4.6.0 NVIDIA 390.59 (which supports GL_EXT_gpu_shader4)

- librairies installed when creating anaconda environment :


The following NEW packages will be INSTALLED:


ca-certificates: 2018.03.07-0

certifi: 2018.4.16-py36_0

freetype: 2.8-hab7d2ae_1

future: 0.16.0-py36_1

h5py: 2.7.1-py36h9b8c120_0

hdf5: 1.8.18-h6792536_1

intel-openmp: 2018.0.0-8

itk: 4.13.0-h2f4ac57_1 vmtk

jpeg: 9b-h024ee3a_2

libgcc-ng: 7.2.0-hdf63c60_3

libgfortran-ng: 7.2.0-hdf63c60_3

libpng: 1.6.34-hb9fc6fc_0

libstdcxx-ng: 7.2.0-hdf63c60_3

libtiff: 4.0.9-he85c1e1_1

llvm: 3.3-0

mesa: 10.5.4-0                                < = could it be the problem ?

mkl: 2018.0.2-1

numpy: 1.12.1-py36he24570b_1

olefile: 0.45.1-py36_0

openssl: 1.0.2o-h20670df_0

pillow: 4.2.1-py36h9119f52_0

pip: 10.0.1-py36_0

python: 3.6.1-2

readline: 6.2-2

setuptools: 39.1.0-py36_0

six: 1.11.0-py36h372c433_1

sqlite: 3.13.0-0

system: 5.8-2

tk: 8.5.18-0

vmtk: 1.4.0-py36hfe14cac_1 vmtk

vtk: 8.1.0-py36h67b79b7_1 vmtk

wheel: 0.31.1-py36_0

xz: 5.2.4-h14c3975_4

zlib: 1.2.11-ha838bed_2


Thanks for your help, any idea or workaround appreciated !

David

Rick Izzo

unread,
May 30, 2018, 8:11:59 AM5/30/18
to vmtk-users
Hi David, 

You're the second person to report an issue like this, let me take a look and get back to you in a day or two once I can find a linux box to work on. 

Best,
Rick Izzo

DP

unread,
May 30, 2018, 8:25:09 AM5/30/18
to vmtk-users
Hi Rick,

Thanks for your quick reply, I am waiting for you to investigate then.
Really appreciate your work,

David

Fraser Callaghan

unread,
Jun 8, 2018, 3:52:57 AM6/8/18
to vmtk-users
Hi, 

I can confirm this behaviour on Linux Mint 18.3. 
Same anaconda setup as DP. 
Similar GPU and driver:
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro P2000/PCIe/SSE2
OpenGL core profile version string: 4.5.0 NVIDIA 384.130

This error occurs at VTK level. 
Running VTK apps from a locally built VTK v8.1.0 with python2 wrapping does not give this error. 

Cheers,
Fraser

Mi

unread,
Jun 12, 2018, 7:22:12 AM6/12/18
to vmtk-users
Hi,

I get the same error message on Ubuntu 18.04:

ERROR: In ../Rendering/OpenGL2/
vtkOpenGLRenderWindow.cxx, line 797
vtkOSOpenGLRenderWindow (0x158be80): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.

Rick, appreciate if you can let us know how we can fix it. Thank you :)

Mi

unread,
Jun 12, 2018, 7:52:04 AM6/12/18
to vmtk-users
Hi,

A very simple fix:

0. Activate the virtual environment where vmtk is installed in (if not base):
source activate py36vmtk

1. Remove vmtk 1.4 and vtk 8.1 that is installed from vmtk anaconda channel:
conda uninstall vmtk vtk

2. Install vtk 8.1 from a channel other than vmtk:
conda install -c anaconda vtk

3. Install vmtk again:
conda install -c vmtk vmtk

Things should be working now. Based on this, it seems like the issue is with the vtk installation in vmtk anaconda channel. Hope this helps!

DP

unread,
Jun 28, 2018, 3:57:20 AM6/28/18
to vmtk-users
Hi,

Thank you for this workaround, it is working like a charm!

David

Mi

unread,
Jul 2, 2018, 6:29:41 AM7/2/18
to vmtk-users
Hi Rick,

Could you please let me know if there's been a fix on this issue? The workaround I found is okay for running VMTK, but it is creating problems with a PyQT GUI. I think the community would benefit a lot using VMTK in anaconda with Python 3, so it'd be great if you can do a fix.

Thanks a lot!

Rick Izzo

unread,
Jul 3, 2018, 3:42:28 AM7/3/18
to vmtk-users
Hi Mi, 

I'm looking into the feasibility of using the anaconda conda-forge channel's VTK package. Using that package has had some success for me. Will update here soon. Sorry about the delayed replies here!

Best,
Rick

Mi

unread,
Jul 12, 2018, 10:57:08 PM7/12/18
to vmtk-users
Thanks Rick! Looking forward to it! :)

Simeon Skopalik

unread,
Aug 8, 2018, 12:21:33 PM8/8/18
to vmtk-users
Hi,

I tried the workaround and I am still getting the same issue.

I am running Ubuntu 16.04 LTS.

Any help would be appreciated.

Thanks

Simeon

ramin mohammadi

unread,
Sep 25, 2018, 12:03:59 PM9/25/18
to vmtk-users
I am getting the same error on ubuntu 16.4. Any update on this? 

Javier Dottori

unread,
Oct 1, 2018, 2:38:38 PM10/1/18
to vmtk-users
Hi, same problem with Ubuntu 18. I think it is relates with make parameters "-DVTK_USE_X=OFF" and "-DVTK_OPENGL_HAS_OSMESA:BOOL=ON" 

Javier Dottori

unread,
Oct 7, 2018, 6:37:17 PM10/7/18
to vmtk-users
Hello everybody, 
The proposed workaround does not work for me. 

I had other problems with anaconda VTK version. In this  comment, author said that VTK7 can toogle offscreen rendering at runtime. 
So it is recommended to set -DVTK_USE_X to ON and use explicit offscreen rendering when it is desired.

I have no actual time to build conda recipes with this change now, but I hope will try it the next week.

Jonas Lamy

unread,
Feb 21, 2019, 9:25:56 AM2/21/19
to vmtk-users
Hello,

Is there any news about this issue ?

The quick fix didn't work for me either.

Distributor ID:    Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:    bionic

vmtk : 1.4.0
vtk : 8.1.0

glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 400 (Braswell)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 18.2.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.2.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

Simone Manini

unread,
Mar 4, 2019, 3:30:08 AM3/4/19
to vmtk-...@googlegroups.com
Hello,
we're waiting for the new conda-VTK release which will fix the issue
Simone

--
You received this message because you are subscribed to the Google Groups "vmtk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vmtk-users+...@googlegroups.com.
To post to this group, send email to vmtk-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Simone Manini, Eng
Engineer, OROBIX Srl
via Camozzi 144, 24121 Bergamo, Italy

orobix:  www.orobix.com
web:     daron1337.github.io
phone:  +39 035 0273786
             +39 035 0170561

La presente e-mail è indirizzata solamente al destinatario e potrebbe contenere informazioni riservate e protette dal segreto professionale. Qualora fosse stata ricevuta per errore, si prega di fornirne notizia rispondendo a questo indirizzo e di cancellare il messaggio. 
E' fatto divieto l'uso, la copia o la diffusione dei contenuti ai sensi del GDPR 679/2016 e dell'art. 616 del C.P.
 
The information in this e-mail is confidential and may also be legally privileged. It is intended for the addressee only. If you have received this e-mail by mistake, please notify us immediately and destroy any copies. Any use, dissemination, forwarding, printing or copying of this e-mail is prohibited pursuant to GDPR 679/2016 and art. 616 of the Italian Law (Penal Code).

Zihao Zhang

unread,
Jan 7, 2020, 11:18:45 PM1/7/20
to vmtk-users
The error was because the vtk from vmtk channel seek for the mesa driver. So Mi's answer should works. But currently another problem is that the vtk version in anaconda channel is 8.2.0. If you run `conda install -c vmtk vmtk` after `conda install -c anaconda vtk`, vtk will be downgraded and reinstalled from vmtk channel again. So the solution is pretty obvious (by making a tiny change to Mi's 2nd step):

2. Install vtk 8.1 from a channel other than vmtk:
conda install -c anaconda vtk=8.1.0

Check your packages via `conda list` after installing vmtk. If it works you will find:

vmtk                      1.4.0            py36hfe14cac_1    vmtk
vtk                       8.1.0           py36h969b564_201    anaconda

在 2018年8月9日星期四 UTC+8上午12:21:33,Simeon Skopalik写道:

Tianyi Zhou

unread,
Jan 29, 2020, 1:24:15 PM1/29/20
to vmtk-users
Hi,

I am hitting the same error and Mi's workaround actually solves the problem.

Here is my setup info:

OS: Ubuntu 18.04.3 LTS
OpenGL version string: 4.6.0 NVIDIA 430.50
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 430.50

I installed itk, vtk, vmtk through Anaconda vmtk channel in my local vmtk conda environment. Here is the error message:

ERROR: In ../Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 797
vtkOSOpenGLRenderWindow (0x2d60970): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.

To solve this, simply ninstall vtk and vmtk (which were installed through vmtk channel) in your local conda environment, and reinstall vtk from anaconda channel, then install vmtk back. See Mi's post for step-by-step instructions(https://groups.google.com/d/msg/vmtk-users/IbVEv2p64Tc/XWNDt88RAwAJ)
Reply all
Reply to author
Forward
0 new messages