[PyQt] Ubuntu, PyQt/Qt 5.9, QOpenGLShaderProgram "is not linked"

Florian Bruhin me at the-compiler.org
Mon Jul 17 09:11:08 BST 2017


On Mon, Jul 17, 2017 at 10:06:56AM +0200, Jérôme Laheurte wrote:
> 
> > Le 17 juil. 2017 à 10:04, Jérôme Laheurte <jerome at jeromelaheurte.net> a écrit :
> 
> > Install python-opengl and add something along the line of
> > 
> > if platform.system() == « Linux »:
> >    from OpenGL import GL
> > 
> > See https://github.com/spyder-ide/spyder/issues/3226
> 
> BTW with some versions of the nouveau driver, even after doing this,
> simply showing a QWebEngineView will crash your program very hard. The
> only thing that worked for me then was to use the proprietary NVidia
> driver…

FWIW, here's how you can detect that Nouveau is used:
https://github.com/qutebrowser/qutebrowser/blob/v0.11.0/qutebrowser/utils/version.py#L375-L422
(then check for opengl_vendor() == 'nouveau')

You can make it work by forcing software rendering via:
export QT_XCB_FORCE_SOFTWARE_OPENGL=1

Depending on your hardware, you either won't notice a difference, or it
will be too slow for every-day usage.

Florian

-- 
https://www.qutebrowser.org  | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072  | https://the-compiler.org/pubkey.asc
         I love long mails!  | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170717/0c94834b/attachment.sig>


More information about the PyQt mailing list