Skip to content

Allow using software opengl in wsl2/linux #310

@herbsal

Description

@herbsal

issue
When using the matlab vscode extension in wsl2 I'm facing issues with graphics when trying to open the desktop due to the Windows d3d12 being used. After intermediate loss of the monitors there is a segmentation fault, which is a known issue but not really of relevance here. I have tried matlab 2023b so far.

Solution suggestion
If I open matlab from the wsl2 command line, I can either use the -softwareopengl option or set the env variable LIBGL_ALWAYS_SOFTWARE. In either case I can use matlab quite normally.

That's why it would be nice if things like that were possible in order to add more flexibility on how Matlab is started by the extension.

I have tried setting the env variable in the vscode terminal before connecting Matlab with the extension, didn't help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions