Skip to content
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

Error occurred while loading shaders #333

Open
harumo11 opened this issue Oct 7, 2024 · 0 comments
Open

Error occurred while loading shaders #333

harumo11 opened this issue Oct 7, 2024 · 0 comments

Comments

@harumo11
Copy link

harumo11 commented Oct 7, 2024

Hello SPlisHSPlasH developer.
Thank you for good library.

I got a following error when I execute splash command and choose json file.

Failed to open file: /usr/bin/output/Beam/log/SPH_log.txt
SPlisHSPlasH version: 2.13.1
Output directory: /usr/bin/output/Beam
Load scene file: /home/harumo/repos/python/splash/.venv/bin/data/Scenes/Beam.json
Initialize static boundary simulation
Initialize fluid particles
Number of fluid particles: 8982
OpenGL version 4.6
Vendor: Intel
Renderer: Mesa Intel(R) Graphics (RPL-U)
Version: 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
Error occurred while loading shader: /usr/bin/resources/shaders/vs_points_vector.glsl
Error occurred while loading shader: /usr/bin/resources/shaders/fs_points.glsl
Error occurred while loading shader: /usr/bin/resources/shaders/vs_points_scalar.glsl
Error occurred while loading shader: /usr/bin/resources/shaders/fs_points.glsl
Error occurred while loading shader: /usr/bin/resources/shaders/vs_points_scalar.glsl
Error occurred while loading shader: /usr/bin/resources/shaders/fs_points_colormap.glsl
Error occurred while loading shader: /usr/bin/resources/shaders/vs_smooth.glsl
Error occurred while loading shader: /usr/bin/resources/shaders/fs_smooth.glsl
Object 0 - fixed particles: 1133
Non zero elements (H^T * K * H): 593848
Non zero elements (A): 516623
Segmentation fault (core dumped)

This error seems to be caused because the shader files are not under /usr/bin/resources/shaders.
I think it is difficult to put those file under /usr/bin/resources/shaders with pip.

So, the solution is copy those files to /usr/bin/resources/

cd .venv/bin
sudo cp -r resources /usr/bin/

Could you change the path of the referenced directory to not system but inside package, so that user can install it and start using it right away?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant