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 on ubuntu #28

Open
zty2004 opened this issue Feb 22, 2024 · 1 comment
Open

error on ubuntu #28

zty2004 opened this issue Feb 22, 2024 · 1 comment

Comments

@zty2004
Copy link

zty2004 commented Feb 22, 2024

I type

$ poetry run shadow /media/fztym/E/screen/sunflowergirl.mp4 -m background

and then the terminal returns

DEBUG:shadow.shadow:requiring modern OpenGL without any legacy features
DEBUG:shadow.shadow:creating window
DEBUG:shadow.shadow:making created window opengl context
/home/fztym/.cache/pypoetry/virtualenvs/shadow_engine-PLsjlACQ-py3.10/lib/python3.10/site-packages/glfw/__init__.py:916: GLFWError: (65544) b'Wayland: Window position setting not supported'
  warnings.warn(message, GLFWError)
DEBUG:shadow.shadow:creating and binding the vertex array (VAO)
DEBUG:shadow.shadow:creating and binding the vertex buffer (VBO)
DEBUG:shadow.shadow:setting the vertex attributes
DEBUG:shadow.shadow:creating framebuffers
DEBUG:shadow.shadow:loading shaders and locations
DEBUG:shadow.shader:creating the shader program
DEBUG:shadow.shader:compiling the GL_VERTEX_SHADER (GL_VERTEX_SHADER) shader
DEBUG:shadow.shader:compiling the GL_FRAGMENT_SHADER (GL_FRAGMENT_SHADER) shader
DEBUG:shadow.shader:linking shader program
DEBUG:shadow.shader:installing shader program into rendering state
DEBUG:shadow.shadow:initializing components
DEBUG:shadow.shader:creating the shader program
DEBUG:shadow.shader:compiling the GL_VERTEX_SHADER (GL_VERTEX_SHADER) shader
DEBUG:shadow.shader:compiling the GL_FRAGMENT_SHADER (GL_FRAGMENT_SHADER) shader
DEBUG:shadow.shader:linking shader program
DEBUG:shadow.shader:installing shader program into rendering state
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/fztym/shadow/shadow/main.py", line 86, in main
    show = ShadowBackground(monitor, files)
  File "/home/fztym/shadow/shadow/shadow.py", line 240, in __init__
    set_window_to_background(conn, glfw.get_x11_window(self.window))
AttributeError: module 'glfw' has no attribute 'get_x11_window'
DEBUG:shadow.shadow:cleaning up components
DEBUG:shadow.shader:cleaning up shader program
DEBUG:shadow.shadow:cleaning up vertex buffer
DEBUG:shadow.shadow:cleaning up vertex array
DEBUG:shadow.shadow:deleting framebuffer and texture
DEBUG:shadow.shadow:closing glfw
Segmentation fault (core dumped)
@danielfvm
Copy link
Owner

Yes I can replicate the error. This seams to be a problem with Wayland. Either use x11 or try running the program with this env variable:

$ PYOPENGL_PLATFORM="glx" poetry run shadow /media/fztym/E/screen/sunflowergirl.mp4 -m background

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

2 participants