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

playlist-dl crashes with: "Failed to create OpenGL context for format QSurfaceFormat" #1

Open
abrighton opened this issue Dec 26, 2023 · 2 comments

Comments

@abrighton
Copy link

On Linux (Pop!_OS 22.04 LTS), which is based on Ubuntu:

It was working fine until I tried it today and now it crashes when I click on Downloads or Player. This is the message it prints out before it crashes:

Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
Abort (core dumped)

I assume an OS update changed some shared library version that playlist-dl depends on:

The full log is:

> playlist-dl
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: iris
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: iris
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Qt: Session management error: None of the authentication protocols specified are supported
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
QGLXContext: Failed to create dummy context
checking local engine version information
checking for engine updates...
"installed version: 2023.11.16 remote version: 2023.11.16"
js: Uncaught SecurityError: Failed to set the 'cookie' property on 'Document': Cookies are disabled inside 'data:' URLs.
js: Uncaught SecurityError: Failed to set the 'cookie' property on 'Document': Cookies are disabled inside 'data:' URLs.
"installed engine version: 2023.11.16\n"
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
Abort (core dumped)

Version Info:
Playlist DL

Version: 2.1
Build Date: Jan 29 2023
Build Time: 07:05:12
Qt Runtime Version: 5.15.4
Qt Compiled Version: 5.15.4
System: Ubuntu Core 20
Architecture: x86_64

Any suggestions on how to fix this?

@abrighton
Copy link
Author

Note: Switching from Intel to NVIDIA graphics card (laptop has both) causes the problem to go away.
Previously it worked with the Intel card also, so I am not sure what changed.

@keshavbhatt
Copy link
Owner

Thanks for reporting this issue i will try to investigate.

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