Sometimes when using ImageGlass to open images, an unhandled exception will pop up.
Windows OS version
Windows 11 24H2 26100.4061
ImageGlass version
9.3.2.520 (64-bit)
ImageGlass release
Store
1️⃣ Steps to reproduce
1.Double-click to open the image. 2.The application freezes, and an unhandled exception window pops up.
2️⃣ Actual behavior
1.Double-click to open the image. 2.The application freezes, and an unhandled exception window pops up. 3.The image cannot be loaded properly. 4.There is CPU and memory usage.
3️⃣ Expected behavior
The image can be opened normally without freezing.
4️⃣ Screenshots / Video / Sample image file
5️⃣ Additional context
No response
During the usage, an error occurred again, and an error report was generated this time. The details are as follows. The error is suspected to be caused by a conflict with MacTray.
The detailed error report for ImageGlass is as follows:
Version: ImageGlass v9.3.2.520 (Store) Release code: 1️⃣5️⃣🎂 Magick.NET: Magick.NET Q16-HDRI-OpenMP x64 net8.0 14.6.0 WebView2 Runtime: 136.0.3240.92 OS: Microsoft Windows NT 10.0.26100.0 64-bit
Error:
Unable to cast COM object of type 'System.__ComObject' to interface type 'DirectN.IWICFormatConverter'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00000301-A8F2-4877-BA0A-FD2B6645FB94}' failed due to the following error: 因为应用程序正在发送一个输入同步呼叫,所以无法执行传出的呼叫。 (0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL)).
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'DirectN.IWICFormatConverter'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00000301-A8F2-4877-BA0A-FD2B6645FB94}' failed due to the following error: 因为应用程序正在发送一个输入同步呼叫,所以无法执行传出的呼叫。 (0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL)).
at DirectN.ComObject1.get_Object() at WicNet.WicBitmapSource.ConvertTo(Guid pixelFormat, WICBitmapDitherType ditherType, WicPalette palette, Double alphaThresholdPercent, WICBitmapPaletteType paletteTranslate) at D2Phap.DXControl.DXHelper.ToD2D1Bitmap(IComObject1 dc, WicBitmapSource wicSrc, Nullable`1 bitmapProps)
at ImageGlass.Viewer.ViewerCanvas.DrawNavigationLayer(DXGraphics g) in D:_GITHUB@d2phap\ImageGlass\Source\Components\ImageGlass.Views\ViewerCanvas.cs:line 2111
at ImageGlass.Viewer.ViewerCanvas.OnRender(DXGraphics g) in D:_GITHUB@d2phap\ImageGlass\Source\Components\ImageGlass.Views\ViewerCanvas.cs:line 1606
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.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
The detailed error report for MacTray is as follows:
The project address of MacTray is: https://github.com/snowie2000/mactype
The 3rd-party app interferes with the Windows' native WIC instance. There is no fix from ImageGlass