Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 01-31-2021, 06:22 AM   #1
redbeard5598
Junior Member
redbeard5598 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2021
Device: none
Viewer will not launch,

Calibre's epub viewer refuses to run, and always gives the same error. From the command line on Linux:
ebook-viewer
QGLXContext: Failed to create dummy context
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
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:efaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat:efaultColorSpace, profile QSurfaceFormat::NoProfile)
Aborted (core dumped)


If I can get the GUI to run, it gives the same output, without the core dump or the Abort. Not an expert, so suggestions? It worked fine until about a week ago. Ubuntu 18.04. Looks like Calibre 4.99.12. Now, I'm hoping that updating will take care of the problem, doing that as I type, and I'm guessing that something updated that it was depending on. Except that the update didn't fix the issue; I still get the errors in 5.10.1. After clicking "View" from the Calibre GUI, I see this in terminal:
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
QGLXContext: Failed to create dummy context
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:efaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat:efaultColorSpace, profile QSurfaceFormat::NoProfile)

How do I fix this? Not even sure what the issue is.
redbeard5598 is offline   Reply With Quote
Old 01-31-2021, 07:00 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It means your GPU driver is incompatible with Qt WebEngine with the viewer uses. You can try turning off hardware acceleration, as described here: https://doc.qt.io/qt-5/qtwebengine-debugging.html
kovidgoyal is offline   Reply With Quote
Advert
Old 01-31-2021, 04:49 PM   #3
redbeard5598
Junior Member
redbeard5598 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2021
Device: none
Quote:
Originally Posted by kovidgoyal View Post
It means your GPU driver is incompatible with Qt WebEngine with the viewer uses. You can try turning off hardware acceleration, as described here: https://doc.qt.io/qt-5/qtwebengine-debugging.html
Nope. doesn't work.
ebook-viewer: error: no such option: --disable-gpu
redbeard5598 is offline   Reply With Quote
Old 01-31-2021, 06:04 PM   #4
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,368
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by redbeard5598 View Post
Nope. doesn't work.

ebook-viewer: error: no such option: --disable-gpu
I think you need to set the QTWEBENGINE_CHROMIUM_FLAGS environment variable (see that same web page)
PeterT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
0.9.7: Anomaly viewer, start viewer in full screen mode DrChiper Calibre 2 11-23-2012 06:33 AM
[Kindle Touch] No Image viewer and pdf viewer with white margins MaxPowerITA Kindle Developer's Corner 7 04-24-2012 05:27 AM
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc kovidgoyal Calibre 68 05-30-2011 08:46 PM
E-Book Viewer as standalone viewer Peter Swallow Library Management 3 05-15-2011 12:06 PM
# user css for viewer.py/ ebook-viewer/ prs-650 tscamera Calibre 0 01-02-2011 06:28 PM


All times are GMT -4. The time now is 12:42 PM.


MobileRead.com is a privately owned, operated and funded community.