Skip to content

Error in "gui.sh" Script Execution on MacBook Pro M2 with macOS 14.2.1 #418

Description

@Lav000

There appears to be an error when running the "gui.sh" script with a specific argument on a MacBook Pro M2 with macOS 14.2.1 (23C71), leading to an issue in the execution of the "visualizer_drag.py" Python script.

The "gui.sh" script was executed :

sh scripts/gui.sh

The error occurred during the execution of the "visualizer_drag.py" :

File "/DragGAN/visualizer_drag.py", in <module>
    main()

The error is caused by a GLError exception, indicating an invalid operation in the OpenGL library:

OpenGL.error.GLError: GLError(
    err = 1282,
    description = b'invalid operation',
    baseOperation = glGetUniformLocation,
    cArguments = (1, b'Texture\x00'),
    result = -1
)
File "/miniforge3/lib/python3.10/site-packages/imgui/integrations/opengl.py", line 108, in _create_device_objects
    self._attrib_location_tex = gl.glGetUniformLocation(self._shader_handle, "Texture")

Activity

  1. qinliuliuqin commented on Feb 6, 2024

    @qinliuliuqin

    Hi @Lav000 Did you solve this issue? I had the same error when running on Ubuntu.

  2. Harry19s commented on May 7, 2024

    @Harry19s

    try running
    visualizer_drag_gradio.py
    instead of
    visualizer_drag.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions