You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I rolled back the old version and it was working fine.
All error messages in the second picture:
Version: ImageGlass v9.0.10.201
Release code: kobe
Magick.NET: Magick.NET Q16-HDRI-OpenMP x64 netstandard21 13.5.0
WebView2 Runtime: 124.0.2478.51
OS: Microsoft Windows NT 10.0.19045.0 64-bit
Error:
An item with the same key has already been added. Key: a26cec36-234c-4950-ae16-e34aace71d0d
System.ArgumentException: An item with the same key has already been added. Key: a26cec36-234c-4950-ae16-e34aace71d0d
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)
at WicNet.WicImagingComponent.<>c__DisplayClass3_0.b__0(IWICImagingFactory f)
at DirectN.WICImagingFactory.WithFactory(Action1 action) at WicNet.WicImagingComponent.LoadAllComponents() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location ---
at System.Lazy1.CreateValue() at WicNet.WicImagingComponent.FromClsid[T](Guid clsid) at WicNet.WicBitmapSource.ConvertTo(Guid pixelFormat, WICBitmapDitherType ditherType, WicPalette palette, Double alphaThresholdPercent, WICBitmapPaletteType paletteTranslate) at D2Phap.DXHelper.ToD2D1Bitmap(IComObject1 dc, WicBitmapSource wicSrc, Nullable1 bitmapProps) at ImageGlass.Viewer.DXCanvas.SetImage(IgImgData imgData, UInt32 frameIndex, Boolean resetZoom, Boolean enableFading, Single initOpacity, Single opacityStep, Boolean isForPreview, Boolean autoAnimate, ImgTransform transforms) in D:\_GITHUB\@d2phap\ImageGlass\Source\Components \ImageGlass.Views\DXCanvas.cs:line 3024 at ImageGlass.FrmMain.ShowImagePreview(String filePath, CancellationToken token) in D:\_GITHUB\@d2phap\ImageGlass\Source\ImageGlass\FrmMain.cs:line 1282 at ImageGlass.FrmMain.HandleImageProgress_Loading(ImageLoadingEventArgs e) in D:\_GITHUB\@d2phap\ImageGlass\Source\ImageGlass\FrmMain.cs:line 1054 at ImageGlass.FrmMain.ReportToUIThread(ProgressReporterEventArgs e) in D:\_GITHUB\@d2phap\ImageGlass\Source\ImageGlass\FrmMain.cs:line 981 at System.Progress1.InvokeHandlers(Object state)
at InvokeStub_SendOrPostCallback.Invoke(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
The text was updated successfully, but these errors were encountered:
…n added
On some machines, exception thrown when there are duplicated components, caused by: `Dictionary.Add(...)`
Replace it with `_ = Dictionay.TryAdd(...)` to suspend the error.
Details: d2phap/ImageGlass#1892
System information:
To Reproduce
Steps to reproduce the behavior:
Actual behavior:
Unable to view picture
Expected behavior:
Screenshots:
Additional context:
I rolled back the old version and it was working fine.
All error messages in the second picture:
Version: ImageGlass v9.0.10.201
Release code: kobe
Magick.NET: Magick.NET Q16-HDRI-OpenMP x64 netstandard21 13.5.0
WebView2 Runtime: 124.0.2478.51
OS: Microsoft Windows NT 10.0.19045.0 64-bit
Error:
An item with the same key has already been added. Key: a26cec36-234c-4950-ae16-e34aace71d0d
System.ArgumentException: An item with the same key has already been added. Key: a26cec36-234c-4950-ae16-e34aace71d0d
at System.Collections.Generic.Dictionary
2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary
2.Add(TKey key, TValue value)at WicNet.WicImagingComponent.<>c__DisplayClass3_0.b__0(IWICImagingFactory f)
at DirectN.WICImagingFactory.WithFactory(Action
1 action) at WicNet.WicImagingComponent.LoadAllComponents() at System.Lazy
1.ViaFactory(LazyThreadSafetyMode mode)--- End of stack trace from previous location ---
at System.Lazy
1.CreateValue() at WicNet.WicImagingComponent.FromClsid[T](Guid clsid) at WicNet.WicBitmapSource.ConvertTo(Guid pixelFormat, WICBitmapDitherType ditherType, WicPalette palette, Double alphaThresholdPercent, WICBitmapPaletteType paletteTranslate) at D2Phap.DXHelper.ToD2D1Bitmap(IComObject
1 dc, WicBitmapSource wicSrc, Nullable1 bitmapProps) at ImageGlass.Viewer.DXCanvas.SetImage(IgImgData imgData, UInt32 frameIndex, Boolean resetZoom, Boolean enableFading, Single initOpacity, Single opacityStep, Boolean isForPreview, Boolean autoAnimate, ImgTransform transforms) in D:\_GITHUB\@d2phap\ImageGlass\Source\Components \ImageGlass.Views\DXCanvas.cs:line 3024 at ImageGlass.FrmMain.ShowImagePreview(String filePath, CancellationToken token) in D:\_GITHUB\@d2phap\ImageGlass\Source\ImageGlass\FrmMain.cs:line 1282 at ImageGlass.FrmMain.HandleImageProgress_Loading(ImageLoadingEventArgs e) in D:\_GITHUB\@d2phap\ImageGlass\Source\ImageGlass\FrmMain.cs:line 1054 at ImageGlass.FrmMain.ReportToUIThread(ProgressReporterEventArgs e) in D:\_GITHUB\@d2phap\ImageGlass\Source\ImageGlass\FrmMain.cs:line 981 at System.Progress
1.InvokeHandlers(Object state)at InvokeStub_SendOrPostCallback.Invoke(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
The text was updated successfully, but these errors were encountered: