02-20-2024, 05:55 PM | #1 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2020
Location: Saskatoon, SK, Canada
Device: Kobo Clara HD
|
ebook viewer crashing on launch (7.5.1)
After updating to the most recent version (7.5.1 currently) I now have the issue where using the Calibre ebook viewer crashes when loading any ebook. I ran it with the debug flag and got the following output:
Code:
QPA platform: windows devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 81.55183946488295 x 81.64285714285714 ApplicationPaletteChange event ignored Using calibre Qt style: True ApplicationPaletteChange event received QWindowsGLContext::makeCurrent: wglMakeCurrent() failed (The handle is invalid.) QRhiGles2: Failed to make context current. Expect bad things to happen. Failed to create QRhi for QBackingStoreRhiSupport Failed to make context current. Failed to make context current. Failed to make context current. [0.000] Load of book started [0.016] prepared emitted [0.047] webview loading requested Thanks! |
02-20-2024, 11:09 PM | #2 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The problem is here
QWindowsGLContext::makeCurrent: wglMakeCurrent() failed (The handle is invalid.) Defintely a GPU driver issue. Try rolling them back if they were recently updated or try updating them if there is an update available. You can also try using software rendering as described in https://doc.qt.io/qt-6/qtwebengine-debugging.html |
02-21-2024, 02:02 PM | #3 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2020
Location: Saskatoon, SK, Canada
Device: Kobo Clara HD
|
On the latest AMD driver which lines up with when the issue started.
I've tried using the --disable-gpu flag with ebook-viewer.exe to force software rendering but no luck there (as there doesn't seem to be an equivalent option with calibre-debug.exe ?) I tried setting an environment variable (in Windows 10) but that hasn't had any effect either. Is there any other method of forcing software rendering? Thank you for your time! |
02-21-2024, 02:14 PM | #4 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
the env var is the only method, you dont specify it ont he command line, you set the env var. Possibly reboot to make sure the env var is set everywhere.
|
02-21-2024, 02:55 PM | #5 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2020
Location: Saskatoon, SK, Canada
Device: Kobo Clara HD
|
Ah I had an extra underscore in the environment variable. Thank you! I ran it again (calibre-debug.exe --viewer) and the ebook window shows up now, but the contents of the window are all blank / not visible.
Here is the debug output: Code:
QPA platform: windows devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 81.55183946488295 x 81.64285714285714 ApplicationPaletteChange event ignored Using calibre Qt style: True ApplicationPaletteChange event received QWindowsGLContext::makeCurrent: wglMakeCurrent() failed (The operation completed successfully.) QRhiGles2: Failed to make context current. Expect bad things to happen. Failed to create QRhi for QBackingStoreRhiSupport [0.000] Load of book started [0.015] prepared emitted [0.078] webview loading requested [0.281] bridge ready [0.390] iframe ready [0.453] loading finished |
02-21-2024, 06:09 PM | #6 |
Well trained by Cats
Posts: 30,452
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Sounds like you have white text on white background (or Black on Black)
try a color override (using preferences) |
02-21-2024, 09:30 PM | #7 | |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2020
Location: Saskatoon, SK, Canada
Device: Kobo Clara HD
|
Quote:
EDIT: Okay, interestingly I can see the text and interact with the ebook if the window is started *not* maximized (however the text is not rendered properly, kind of jagged). If I maxmize it, everything goes blank again and I have to relaunch to be able to see anything. If I try to fullscreen it, instead of going blank the content of the window stays as is, but I can no longer see page changes or UI elements. EDIT2: Even stranger, if I take the non-maximized window with the jagged fonts (for both UI and ebook text) and drag it to the top of the screen (which is an action that would maximize the window) but *do not* let go of the mouse button and instead drag it down and away from that zone, the text is rendered with jagged edges. So to recap: Software rendering works, but: - the window needs to be not full size on launch - the window needs to be "refreshed" by moving it to the top area to maximize and back down again - maximizing the window will prevent any changes from being rendered - starting the window maximized only shows a blank window EDIT3: This behaviour is persisting even without the "--disable-gpu" environment variable on QTWEBENGINE_CHROMIUM_FLAGS, so still to do with this gpu driver version as I can't seem to get the software rendering to work. Last edited by KaizaCorp; 02-21-2024 at 10:30 PM. Reason: Further data for the bug |
|
02-22-2024, 11:55 AM | #8 |
Resident Curmudgeon
Posts: 76,491
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Are you on a laptop with dual video cards? If so, set calibre to use the other video card. This solution has helped others.
|
02-22-2024, 02:31 PM | #9 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2020
Location: Saskatoon, SK, Canada
Device: Kobo Clara HD
|
|
02-27-2024, 03:42 PM | #10 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2020
Location: Saskatoon, SK, Canada
Device: Kobo Clara HD
|
Couldn't get the software rendering to work, but I downgraded my graphics drivers to AMD Adrenalin 23.12.1 and it's working normally.
|
04-18-2024, 04:45 PM | #11 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2020
Location: Saskatoon, SK, Canada
Device: Kobo Clara HD
|
Upgraded Calibre to 7.8 (on the same AMD Adrenalin version as before 23.12.1) and getting this ebook viewer rendering issue once more.
Window shows up but only renders white when maximized or in windowed mode but larger than the screen / out of bounds. If the window Mouse pointer changes when over different elements and text can be copied, but only renders as white. Ebook contents only visible if launched with the window strictly smaller than the size of the screen in windowed mode. Text is not rendered properly and needs to be dragged against the top of the screen (some kind of pre-maximization step?) and then dragged backed down to not render it as white. Once it gets rendered white it won't change back and needs to be relaunched. Here's the output when running from the command line: Code:
QPA platform: windows devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 81.55183946488295 x 81.64285714285714 ApplicationPaletteChange event ignored Using calibre Qt style: True ApplicationPaletteChange event received QWindowsGLContext::makeCurrent: wglMakeCurrent() failed (The handle is invalid.) QRhiGles2: Failed to make context current. Expect bad things to happen. Failed to create QRhi for QBackingStoreRhiSupport Failed to make context current. Failed to make context current. QWindowsGLContext::makeCurrent: wglMakeCurrent() failed (The handle is invalid.) QRhiGles2: Failed to make context current. Expect bad things to happen. Failed to create QRhi for QBackingStoreRhiSupport QQuickWidget: Failed to get a QRhi from the top-level widget's window QQuickWidget::resizeEvent() no QRhi Failed to make context current. Failed to make context current. QWindowsGLContext::makeCurrent: wglMakeCurrent() failed (The handle is invalid.) QRhiGles2: Failed to make context current. Expect bad things to happen. Failed to create QRhi for QBackingStoreRhiSupport QQuickWidget: Failed to get a QRhi from the top-level widget's window QQuickWidget: Attempted to render scene with no rhi [0.000] Load of book started [0.015] prepared emitted [0.047] webview loading requested [0.375] bridge ready QQuickWidget: Attempted to render scene with no rhi [0.500] iframe ready [0.547] loading finished Back to working maximized after a restart. Still requires window to be dragged and "bumped" against the top to fix font aliasing though. Last edited by KaizaCorp; 05-01-2024 at 06:28 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Koreader crashing on launch | Samzza | PocketBook | 2 | 01-11-2024 05:06 AM |
Crashing on launch on macOS | tamaracks | Calibre | 10 | 10-14-2022 02:01 AM |
T68 - Play Store crashing on launch | pickyaxe | Onyx Boox | 1 | 02-07-2015 06:17 PM |
[eBook Viewer Crash report] - CBR file crashing | Bilbotorm | Calibre | 3 | 08-06-2013 08:00 AM |
Calibre mysterious crashing on launch - cannot run | Merischino | Calibre | 11 | 09-19-2010 07:59 AM |