pyqt5 QWebEngineView turns black screen after long time running?
-
To test the stability of my program, I open the program for a night. I opened the desktop to find QWebengineView area turns black. How come?
-
To test the stability of my program, I open the program for a night. I opened the desktop to find QWebengineView area turns black. How come?
QGuiApplication.setAttribute(Qt.ApplicationAttribute.AA_UseSoftwareOpenGL) QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_UseSoftwareOpenGL) QApplication.setAttribute(Qt.ApplicationAttribute.AA_UseSoftwareOpenGL)
after set these attributes above, everytime I start the program, the cmd
line reads:ARB::createContext: wglCreateContextAttribsARB() failed (GL error code: 0x0) for format: QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile), shared context: 0x2 (operation done.) GDI::createContext: wglCreateContext failed. (operation done.) Unable to create a GL Context. qt.qpa.backingstore: composeAndFlush: QOpenGLContext creation failed qt.qpa.backingstore: composeAndFlush: makeCurrent() failed