Skip to content

Turn off the second monitor causes Win32Exception (0x8899000C) #1970

Description

@TheCGDF

System information

  • Windows OS version: 10.0.22631.3737
  • ImageGlass version: 9.1.8.723 (64-bit)
  • ImageGlass release: Classic

To Reproduce

Steps to reproduce the behavior:

  1. Prepare a laptop and a second monitor.
  2. Set the behavior of closing lid to "turn off screen"
  3. Open a image on the second monitor.
  4. Close laptop lid and turn off the second monitor.
  5. Open lid and turn on the second monitor.

Actual behavior

Image opened will be:
image

with error:

Version: ImageGlass v9.1.8.723
Release code: kobe
Magick.NET: Magick.NET Q16-HDRI-OpenMP x64 netstandard21 13.10.0
WebView2 Runtime: 126.0.2592.113
OS: Microsoft Windows NT 10.0.22631.0 64-bit

----------------------------------------------------
Error:

There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present.
----------------------------------------------------

System.ComponentModel.Win32Exception (0x8899000C): There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present.
   at DirectN.HRESULT.ThrowOnErrorExcept(IEnumerable`1 exceptedValues, Boolean throwOnError)
   at DirectN.ID2D1DeviceContextExtensions.EndDraw(ID2D1DeviceContext context)
   at D2Phap.DXControl.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at D2Phap.DXControl.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)

Expected behavior

Display the image.

Additional context

I thought this bug started from recent versions because I often do the same thing but this error did not occur in the past.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions