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

Python segfault: Failed to load opengl32sw.dll #6938

Closed
dhirschfeld opened this issue Apr 11, 2018 · 5 comments
Closed

Python segfault: Failed to load opengl32sw.dll #6938

dhirschfeld opened this issue Apr 11, 2018 · 5 comments

Comments

@dhirschfeld
Copy link
Contributor

Not sure if this is a qt or a spyder problem but after updating qt spyder no longer loads

λ conda list qt
# packages in environment at C:\Miniconda3:
#
# Name                    Version                   Build  Channel
pyqt                      5.9.2            py36h1aa27d4_0
qt                        5.9.4            vc14hd9fb3db_0
qtawesome                 0.4.4                    py36_0    
qtconsole                 4.3.1            py36h99a29a9_0
qtpy                      1.4.0                    py36_0

Note: I'm using bootstrap.py from the latest master

λ python .\bootstrap.py
Executing Spyder from source checkout
Revision cf6cbaec0, Branch: master
01. Patched sys.path with C:\dev\src\spyder
02. PyQt5 is detected, selecting
03. Imported Spyder 4.0.0.dev0
    [Python 3.6.5 64bits, Qt 5.9.4, PyQt5 5.9.2 on Windows]
04. Running Spyder
Bootstrap completed in 00:00:01.6862
QWindowsEGLStaticContext::create: Could not initialize EGL display: error 0x3001
QWindowsEGLStaticContext::create: When using ANGLE, check if d3dcompiler_4x.dll is available
Failed to load opengl32sw.dll (The specified module could not be found.)
Failed to load and resolve WGL/OpenGL functions
QWindowsEGLStaticContext::create: Could not initialize EGL display: error 0x3001
QWindowsEGLStaticContext::create: When using ANGLE, check if d3dcompiler_4x.dll is available
Failed to load opengl32sw.dll (The specified module could not be found.)
Failed to load and resolve WGL/OpenGL functions
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
QWindowsEGLStaticContext::create: Could not initialize EGL display: error 0x3001
QWindowsEGLStaticContext::create: When using ANGLE, check if d3dcompiler_4x.dll is available
Failed to load opengl32sw.dll (The specified module could not be found.)
Failed to load and resolve WGL/OpenGL functions
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::SwapBehavior(DefaultSwapBehavior), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) .
This is most likely caused by not having the necessary graphics drivers installed.

Install a driver providing OpenGL 2.0 or higher, or, if this is not possible, make sure the ANGLE Open GL ES 2.0 emulation libraries (libEGL.dll, libGLESv2.dll and d3dcompiler_*.dll) are available in the application executable's directory or in a location listed in PATH. [17244:21544:0411/132833.702:ERROR:broker_win.cc(59)] Error reading broker pipe: The pipe has been ended. (0x6D)
[2088:23108:0411/132833.705:ERROR:broker_win.cc(59)] Error reading broker pipe: The pipe has been ended. (0x6D)
@ccordoba12
Copy link
Member

@dhirschfeld, this is a Qt problem. What's your graphics card driver?

@mingwandroid, I think opengl32sw.dll needs to be part of the Qt package, so that there's an OpenGL fallback driver for WebEngine.

@dhirschfeld
Copy link
Contributor Author

dhirschfeld commented Apr 11, 2018

I thought that might be the case - just seeing if installing pyopengl fixes the problem...

I wasn't sure if that would be bundled with spyder or not. If so I wouldn't have gotten the updated dep due to my running from bootstrap.py instead of an installed conda package.

@ccordoba12
Copy link
Member

Nop, we don't distribute any binaries with the package.

@dhirschfeld
Copy link
Contributor Author

Installing pyopengl didn't hep. I'll close this here and re-open under anaconda-issues.

Thanks for the help & quick response @ccordoba12!

@mingwandroid
Copy link

This is a hardware/graphics driver issue I believe. Either your hardware is not capable enough or you don't have drivers installed.

I need to know the details of your graphics hardware and you need to try running some opengl based software to see if that works.

Also please try some directx software as there's s potential fallback card on angle (though in not sure webengine supports that).

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

No branches or pull requests

4 participants