Skip to content

NVIDIA OpenGL Driver Crash - The GPU has been disconnected (when opening a book ) #266

Description

@maforget

Describe the bug
Hard crash when opening a book.

Exact Steps to Reproduce
Steps to reproduce the behavior:

  1. Leave CR open in the system tray
  2. Update NVIDIA driver (through the NVIDIA App, if it changes anything)
  3. When updating the GPU is disconnected, it can crashes app because of that.
  4. Restore the program and open a book.
  5. Hard crash with the included error message in the Event Viewer.

Version/Commit (check the about page, next to the version, for the string between brackets):

  • Version: 0.9.184
  • Commit: 5c5723d

Additional context
It's probably only happens because the GPU has disconnected during the update and the library crashes when it can't find the previous device. Updating drivers also always crashes several program. The ones I know of are Rainmeter & HWiNFO (used by Rainmeter). Also anything that uses a video player really doesn't like a driver update while they are running, like Firefox, VLC, etc.

Unsure if I had opened the reader before hand and if some device id was cached by the program somehow (probably since it's been open for several days). The browser worked fine, the crash was really related to the reader and OpenGL acceleration.

Maybe it's possible to somehow update the code to check for the GPU status or something. Will have to check when updating the OpenGL library. But other than that this will probably be here for reference only. Unsure if it's even avoidable.

Event Viewer Logs

In order of appearance - at the time the book was opened

NVIDIA OpenGL Driver

The GPU has been disconnected and this application may become unresponsive.

Error code: 10
 (pid=21404 tid=1748 comicrack.exe 64bit)

Visit http://www.nvidia.com/page/support.html for more information.

.NET Runtime

Application: ComicRack.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
   at Tao.OpenGl.Gl.glDeleteTextures(Int32, Int32[])
   at cYo.Common.Presentation.Tao.TextureManager+TextureElement.Destroy()
   at cYo.Common.Presentation.Tao.TextureManager+TextureElement.Dispose(Boolean)
   at cYo.Common.ComponentModel.DisposableObject.Finalize()

Application Error

Faulting application name: ComicRack.exe, version: 0.0.0.0, time stamp: 0x6a2b8322
Faulting module name: nvoglv64.dll, version: 32.0.16.1052, time stamp: 0x6a220605
Exception code: 0xc0000005
Fault offset: 0x00000000008986b9
Faulting process id: 0x539C
Faulting application start time: 0x1DCFAF26BF1FEFE
Faulting application path: C:\Program Files\ComicRack Community Edition\ComicRack.exe
Faulting module path: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_569b2ec5a6bfd45d\nvoglv64.dll
Report Id: 211cf1c4-93f2-46a6-84e5-a7954cf40989
Faulting package full name: 
Faulting package-relative application ID: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions