Skip to content

GLError (invalid operation) in phy when running via RDP on Windows Server 2019 #1328

Description

@MtKana

Description

I am encountering a GLError (invalid operation) when running phy (installed via Conda) on Windows Server 2019 through RDP. The error occurs during OpenGL operations such as glClearColor, and I suspect it may be related to the remote desktop environment.

The error message I receive is:

An error has been encountered at line 1 of <internal MIME data>: Premature end of document.

Steps to Reproduce
1. Connect to Windows Server 2019 using Remote Desktop (RDP).
2. Install phy via Conda.
3. Launch phy.
4. The error occurs during execution.

What I’ve tried

Since my issue closely resembles #1018 #737 #945, I have attempted the suggested solutions there, including:
• Installing GLView (tested both version 4.x and 7.x) to verify OpenGL support.
• Modifying the RDP graphics configuration as per the recommended settings.

Unfortunately, the issue persists.

Debug log output

Running phy in –debug mode provides the following log:

04:25:53.852 [D] base:675             Exception in initializeGL: GLError(
        err = 1282,
        description = b'invalid operation',
        baseOperation = glClearColor,
        cArguments = (0, 0, 0, 0)
)
04:25:53.852 [D] base:702             Exception in paintGL: GLError(
        err = 1282,
        description = b'invalid operation',
        baseOperation = glClearColor,
        cArguments = (0, 0, 0, 10)
)
QMimeDatabase: Error loading internal MIME data
An error has been encountered at line 1 of <internal MIME data>: Premature end of document.
04:25:54.135 [D] supervisor:817       Clusters selected: [73] (72)
04:25:54.484 [D] base:702             Exception in paintGL: GLError(
        err = 1282,
        description = b'invalid operation',
        baseOperation = glClearColor,
        cArguments = (0, 0, 0, 10)
)

Questions
1. Is there any additional software or dependencies I need to install to resolve this issue?
2. Could this be related to OpenGL rendering over RDP?
• If so, is there a way to force phy to use a software OpenGL implementation (like Mesa)?
3. Are there specific environment variables I should set for OpenGL compatibility in this setup?

Any insights or suggestions would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: installationInstallation, packaging, and platform setuppriority: lowLow prioritystatus: confirmedReproduced or supported by strong evidencetype: bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions