playlist-dl icon indicating copy to clipboard operation
playlist-dl copied to clipboard

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

Open abrighton opened this issue 1 year ago • 2 comments

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 avatar Dec 26 '23 13:12 abrighton

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.

abrighton avatar Dec 29 '23 20:12 abrighton

Thanks for reporting this issue i will try to investigate.

keshavbhatt avatar Dec 30 '23 19:12 keshavbhatt