-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial 35: ERROR:root:Could not set shader program #325
Comments
Hello @ada-hou, is there more to your Error Message? This looks more like a VTK (PyVista) error than a GemGIS error in the first place |
thank for you reply! My VTK version 9 mycode: import gemgis as gg file_path = '' mesh = pv.read(file_path + 'base.vtk') sargs = dict(fmt="%.0f", color='black') p = pv.Plotter(notebook=False) p.add_mesh(mesh,scalar_bar_args=sargs, clim=[-3500, 2000]) p.set_background('white') data = pd.read_csv(file_path + 'Borehole_Data.csv') list_df = gg.visualization.add_row_to_boreholes(df_groups) list_df[0].head() lines = gg.visualization.create_lines_from_points(df=list_df[0]) tubes, df_groups = gg.visualization.create_borehole_tubes(df=data, labels = gg.visualization.create_borehole_labels(df=data) tubes, labels, df_groups = gg.visualization.create_boreholes_3d(df=data, sargs = dict(fmt="%.0f", color='black') p = pv.Plotter(notebook=False) p.add_mesh(mesh,scalar_bar_args=sargs, clim=[-3500, 2000], opacity=0.7) p.set_background('white') sargs = dict(fmt="%.0f", color='black') p = pv.Plotter(notebook=False) p.add_mesh(mesh,scalar_bar_args=sargs, clim=[-3500, 2000], opacity=0.7) for j in range(len(tubes)): p.set_background('white') all message: ERROR:root:1: #version 150 ERROR:root:ERROR: 0:131: Use of undeclared identifier 'colorTCoordVCVSOutput' ERROR:root:1: #version 150 2024-01-10 19:21:06.030 ( 5.657s) [ 1D030]vtkOpenGLPolyDataMapper:2616 ERR| vtkCompositeMapperHelper2 (0x7fa1ad8a1400): Could not set shader program ERROR:root:1: #version 150 2024-01-10 19:21:06.216 ( 5.843s) [ 1D030]vtkOpenGLPolyDataMapper:2616 ERR| vtkCompositeMapperHelper2 (0x7fa1ad8a1400): Could not set shader program ERROR:root:1: #version 150 2024-01-10 19:21:06.236 ( 5.863s) [ 1D030]vtkOpenGLPolyDataMapper:2616 ERR| vtkCompositeMapperHelper2 (0x7fa1ad8a1400): Could not set shader program ERROR:root:1: #version 150 2024-01-10 19:21:09.361 ( 8.988s) [ 1D030]vtkOpenGLPolyDataMapper:2616 ERR| vtkCompositeMapperHelper2 (0x7fa1ad8a1400): Could not set shader program ERROR:root:1: #version 150 2024-01-10 19:21:09.387 ( 9.014s) [ 1D030]vtkOpenGLPolyDataMapper:2616 ERR| vtkCompositeMapperHelper2 (0x7fa1ad8a1400): Could not set shader program |
@AlexanderJuestel BUT gempy 2.3.1 depends on pyvista version 0.39.1, I am using gempy 2.3.1 in my project. |
Describe the bug
ERROR:root:Could not set shader program
To Reproduce
Steps to reproduce the behavior:
https://gemgis.readthedocs.io/en/latest/getting_started/tutorial/35_plotting_borehole_data_with_pyvista.html
Follow the steps as described.
I got an error on step 16 (all steps before this are fine).
sargs = dict(fmt="%.0f", color='black')
p = pv.Plotter(notebook=True)
p.add_mesh(mesh,scalar_bar_args=sargs, clim=[-3500, 2000], opacity=0.7)
p.add_point_labels(labels, "Labels", point_size=5, font_size=10)
p.add_mesh(tubes, show_scalar_bar=False)
p.set_background('white')
p.show_grid(color='black')
p.set_scale(1,1,5)
p.show()
See error
Falling back to a static output.
warnings.warn(
2024-01-10 15:31:33.962 ( 137.947s) [ 8A6F] vtkShaderProgram.cxx:442 ERR| vtkShaderProgram (0x7fede0f79d40): 1: #version 150
2: #ifdef GL_ES
3: #ifdef GL_FRAGMENT_PRECISION_HIGH
4: precision highp float;
5: precision highp sampler2D;
6: precision highp sampler3D;
7: #else
8: precision mediump float;
9: precision mediump sampler2D;
10: precision mediump sampler3D;
11: #endif
12: #define texelFetchBuffer texelFetch
13: #define texture1D texture
14: #define texture2D texture
15: #define texture3D texture
16: #else // GL_ES
17: #define highp
18: #define mediump
19: #define lowp
...
2024-01-10 15:31:34.736 ( 138.721s) [ 8A6F] vtkShaderProgram.cxx:428 ERR| vtkShaderProgram (0x7fede0f79d40):
ERROR:root:Could not set shader program
2024-01-10 15:31:34.742 ( 138.727s) [ 8A6F]vtkOpenGLPolyDataMapper:2616 ERR| vtkCompositeMapperHelper2 (0x7fedd8b75c00): Could not set shader program
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
pandas.version = 2.0.1 pyvista.version = 0.39.1
The text was updated successfully, but these errors were encountered: