# NEED help~ An error in linux

**URL:** https://discourse.vtk.org/t/need-help-an-error-in-linux/7838
**Category:** Support
**Created:** [February 14, 2022, 8:38am UTC](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838 "2022-02-14T08:38:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Clifford](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/e56c9b/32.png) [@Clifford](https://discourse.vtk.org/u/Clifford)
#### Post date: [February 14, 2022, 8:38am UTC](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838/1 "2022-02-14T08:38:24Z")

</div>

When I run a python program (use vtk) in my pc, it works successfully, however, when I post it on my server then comes with this error, does anybody knows how to fix it?  
Thanks so much! I truly have no idea with this.

 ![c7a700053e7cab8e73a1bcf0cbb8512](https://discourse.vtk.org/uploads/default/original/2X/5/573cf2b84fe2ab019183c045cebeed17fb0f239a.png)  
 ![7e017691ea69898605edc36bfcead33](https://discourse.vtk.org/uploads/default/original/2X/a/a669786cd69c9d9cb3ba716c071aba326a924dae.png)

```auto
2022-02-14 08:12:09.970 ( 41.609s) [A172F640] vtkShaderProgram.cxx:452 ERR| vtkShaderProgram (0x7f239c710280): 1: 
2: #version 140
3: #ifdef GL_ES
4: #ifdef GL_FRAGMENT_PRECISION_HIGH
5: precision highp float;
6: precision highp sampler2D;
7: precision highp sampler3D;
8: #else
9: precision mediump float;
10: precision mediump sampler2D;
11: precision mediump sampler3D;
12: #endif
13: #define texelFetchBuffer texelFetch
14: #define texture1D texture
15: #define texture2D texture
16: #define texture3D texture
17: #else // GL_ES
18: #define highp
19: #define mediump
20: #define lowp
21: #if __VERSION__ == 150
22: #define texelFetchBuffer texelFetch
23: #define texture1D texture
24: #define texture2D texture
25: #define texture3D texture
26: #endif
27: #endif // GL_ES
28: #define varying in
29: 
30: in vec2 texCoord;
31: uniform sampler2DMS tex;
32: uniform int samplecount;
33: out vec4 fragOutput0;
34: 
35: 
36: void main()
37: {
38: float gamma = 2.2;
39: 
40: // for each sample in the multi sample buffer...
41: ivec2 itexcoords = ivec2(floor(textureSize(tex) * texCoord));
42: vec3 accumulate = vec3(0.0,0.0,0.0);
43: float alpha = 0.0;
44: 
45: for (int i = 0; i < samplecount; i++)
46: {
47: vec4 sample = texelFetch(tex, itexcoords, i);
48: // apply gamma correction and sum
49: accumulate += pow(sample.rgb, vec3(gamma));
50: alpha += sample.a;
51: }
52: 
53: // divide and reverse gamma correction
54: accumulate /= float(samplecount);
55: fragOutput0 = vec4(pow(accumulate, vec3(1.0/gamma)), alpha/float(samplecount));
56: }
57:   

2022-02-14 08:12:09.970 ( 41.609s) [A172F640] vtkShaderProgram.cxx:453 ERR| vtkShaderProgram (0x7f239c710280): 0:31(22): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{'

2022-02-14 08:12:09.970 ( 41.609s) [A172F640]vtkOpenGLVertexArrayObj:265 ERR| vtkOpenGLVertexArrayObject (0x7f239ccf3e20): attempt to add attribute without a program for attribute ndCoordIn
2022-02-14 08:12:09.970 ( 41.609s) [A172F640]vtkOpenGLQuadHelper.cxx:62 WARN| Error binding ndCoords to VAO.
2022-02-14 08:12:09.970 ( 41.609s) [A172F640]vtkOpenGLRenderWindow.c:1102 ERR| vtkXOpenGLRenderWindow (0x7f239c066830): Couldn't build the shader program for resolving msaa.

```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [February 14, 2022, 9:47am UTC](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838/2 "2022-02-14T09:47:13Z")

</div>

What is the output of glxinfo ?

---

<div class="post-metadata">

### Author: ![Clifford](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/e56c9b/32.png) [@Clifford](https://discourse.vtk.org/u/Clifford)
#### Post date: [February 15, 2022, 1:24am UTC](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838/3 "2022-02-15T01:24:53Z")

</div>

> [@mwestphal](#):
>
> glxinfo

Do you mean this?  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/7/72c642bd90754960ba765ca4597e2861df8fbec5.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [February 15, 2022, 8:59am UTC](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838/4 "2022-02-15T08:59:07Z")

</div>

Looks like your server is using osmesa for rendering, is that intended ?

---

<div class="post-metadata">

### Author: ![Clifford](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/e56c9b/32.png) [@Clifford](https://discourse.vtk.org/u/Clifford)
#### Post date: [February 16, 2022, 1:41am UTC](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838/5 "2022-02-16T01:41:19Z")

</div>

> [@mwestphal](#):
>
> osmesa

no it doesn’t, actually I have no idea what oamesa for

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [February 23, 2022, 8:45am UTC](https://discourse.vtk.org/t/need-help-an-error-in-linux/7838/6 "2022-02-23T08:45:16Z")

</div>

Its a CPU graphic driver, which does not have the same capabilities as NVIDIA graphic driver and such.
