question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple render exceptions ver 1.7.1

See original GitHub issue

I have a WPF application for production with more svg files. After update package from 1.6.0 to 1.7.1 some users have multiple errors for my app.

I can not get minimal crashed example, because i can not repeat this problem. I have only logs from my app. Problems has only windows 10 users after 5-10 minutes on running. While exceptions throwning all another apps( incl. mouse cursor) freezing

Some Exceptions System.Runtime.InteropServices.COMException MILERR_WIN32ERROR (Исключение из HRESULT: 0x88980003)

 в System.Windows.Media.Imaging.RenderTargetBitmap.FinalizeCreation()
   в System.Windows.Media.Imaging.RenderTargetBitmap..ctor(Int32 pixelWidth, Int32 pixelHeight, Double dpiX, Double dpiY, PixelFormat pixelFormat)
   в MS.Internal.AppModel.IconHelper.GenerateBitmapSource(ImageSource img, Size renderSize)
   в MS.Internal.AppModel.IconHelper.CreateIconHandleFromImageSource(ImageSource image, Size size)
   в MS.Internal.AppModel.IconHelper.GetIconHandlesFromImageSource(ImageSource image, IconHandle& largeIconHandle, IconHandle& smallIconHandle)
   в System.Windows.Window.UpdateIcon()
   в System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
   в System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   в System.Windows.Window.CreateSourceWindowDuringShow()
   в System.Windows.Window.SafeCreateWindowDuringShow()
   в System.Windows.Window.ShowHelper(Object booleanBox)
   в System.Windows.Window.Show()
   в System.Windows.Window.ShowDialog()
   в TecProgV2.WpfCore.MVVMTools.WinWrapper.<>c__DisplayClass4_0.<.ctor>b__6()
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

System.Runtime.InteropServices.COMException UCEERR_RENDERTHREADFAILURE (Исключение из HRESULT: 0x88980406)

 в System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
   в System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
   в System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
   в System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   в System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

System.ComponentModel.Win32Exception the operation completed successfully

в Standard.NativeMethods.CreateRoundRectRgn(Int32 nLeftRect, Int32 nTopRect, Int32 nRightRect, Int32 nBottomRect, Int32 nWidthEllipse, Int32 nHeightEllipse)
   в Microsoft.Windows.Shell.WindowChromeWorker._CreateRoundRectRgn(Rect region, Double radius)
   в Microsoft.Windows.Shell.WindowChromeWorker._SetRoundingRegion(Nullable`1 wp)
   в Microsoft.Windows.Shell.WindowChromeWorker._UpdateFrameState(Boolean force)
   в Microsoft.Windows.Shell.WindowChromeWorker._ApplyNewCustomChrome()
   в Microsoft.Windows.Shell.WindowChromeWorker.<_SetWindow>b__1(Object sender, EventArgs e)
   в System.Windows.Window.OnSourceInitialized(EventArgs e)
   в TecProgV2.WpfCore.Wpf4Window.OnSourceInitialized(EventArgs e)
   в System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   в System.Windows.Window.CreateSourceWindowDuringShow()
   в System.Windows.Window.SafeCreateWindowDuringShow()
   в System.Windows.Window.ShowHelper(Object booleanBox)
   в System.Windows.Window.Show()
   в System.Windows.Window.ShowDialog()
   в TecProgV2.WpfCore.MVVMTools.WinWrapper.<>c__DisplayClass4_0.<.ctor>b__6()
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

System.OutOfMemoryException

 в System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
   в System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
   в System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
   в System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   в System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

https://docs.microsoft.com/ru-ru/troubleshoot/dotnet/framework/wpf-render-thread-failures

Windows 10 Net Framework 4.0 SharpVectors 1.7.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
amorallercommented, Jun 1, 2021

@paulushub No. Commit ea0bd9eedfec003814fdc16f9d2b33efb0bd2e21 fix my problem. Please create new verison with fix on NuGet.

1reaction
paulushubcommented, Nov 4, 2021

@panagiotis-bitharis The line Server.Services.WebPages.Private.SvgIconConverter seems to indicate a web page application. By Microsoft: We recommend that you do not use WPF types in a Windows service.

Rendering issues after the September 12, 2017

Read more comments on GitHub >

github_iconTop Results From Across the Web

July 2022 (version 1.70)
Rendering improvements. Several improvements were made to terminal rendering when GPU acceleration is enabled: Semi-circle Powerline symbols are now custom ...
Read more >
Custom Error Pages — Phoenix v1.7.7
New Phoenix projects have two error views called ErrorHTML and ErrorJSON , which ... For example, "404.html" becomes # "Not Found". def render(template, ......
Read more >
Spring MVC Exception Handling - @ControllerAdvice ...
If there are multiple exception handler methods defined, then handler method that is closest to the Exception class is used.
Read more >
javascript - JQuery - $ is not defined
You have a botched version of jQuery. This could happen because someone edited the core file, or a plugin may have overwritten the...
Read more >
Bundling and Minification
Bundling and minification are two techniques you can use in ASP.NET 4.5 to improve request load time. Bundling and minification improves ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found