ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

Win32Exception (0x8899000C) when returning from sleep mode

Open Vlajd opened this issue 10 months ago • 0 comments

System information

  • Windows OS version: 24H2
  • ImageGlass version: 9.2.0.1208 (64-bit)
  • ImageGlass release: Classic
  • WebView2 Runtime: 133.0.3065.59

To Reproduce

Steps to reproduce the behavior:

  1. Open image (3408x2400 px JPG)
  2. let Windows sleep (mostly happened when letting windows sleep for a longer time)
  3. log back in (using Windows Hello Face-Id, if relevant)
  4. Observe behaviour

Actual behavior

  • Shows following runtime error message:
WebView2 Runtime: 133.0.3065.59
OS: Microsoft Windows NT 10.0.26100.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 D2Phap.DXControl.DXCanvas.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.DXCanvas.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)

When clicking Continue button, instead of the image a rectangle on white background with lines from every corner to the opposite corner gets displayed.

Expected behavior

Try to display the image again as before the sleep. Alternatively just reload the image.

Screenshots / Video / Sample image file

I'll attach a screenshot of the error prompt and the faulty image as soon as it occurs again (so far occured twice)

Additional context

This occurs from a laptop with an high-dpi screen at screen scale 125%, which was connected to a Huion Graphic Tablet with 1920x1080 px before the sleep and disconnected (turned off) during the sleep. Furthermore, I've had a graphics application (OpenToonz) running at the same time.

Vlajd avatar Feb 15 '25 21:02 Vlajd