Repository navigation
Closed
Labels
BugProduct bug (most likely)needs more informationNot enough information has been provided. Please share more detail as requestedneeds-watson-dataNeeds data from telemetry
Milestone
Description
From telemetry, app crash:
System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at MS.Internal.HRESULT.Check(int hr)
at System.Windows.Media.Composition.DUCE+Channel.SyncFlush()
at System.Windows.Interop.HwndTarget.UpdateWindowSettings(bool enableRenderTarget, Nullable<T> channelSet)
at System.Windows.Interop.HwndTarget.UpdateWindowSettings(bool enableRenderTarget)
at System.Windows.Interop.HwndTarget.OnShowWindow(bool enableRenderTarget)
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, object args, int numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, Delegate callback, object args, int numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, object args, int numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, object args, int numArgs)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, object arg)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam)
Reacted by lindexi, Song, Christian Indra, Milos Paripovic, CenturionYun and Mitra-M
Metadata
Metadata
Assignees
Labels
BugProduct bug (most likely)needs more informationNot enough information has been provided. Please share more detail as requestedneeds-watson-dataNeeds data from telemetry
Activity
vatsan-madhavan commentedon Dec 8, 2018
We’ll need a heap dump to investigate this further. Syncflush is a catch-all signature.
This can be a real OOM, or a proxy for another kind of resource exhaustion (GDI handle, which incidentally has a per-session limit).
clairernovotny commentedon Dec 8, 2018
Not sure I'll be able to get that, but WER may have it. Unfortunately, I don't have access to that data. It's coming from telemetry :/
vatsan-madhavan commentedon Dec 8, 2018
I’ll see if I can find additional data and/or crash dumps.
clairernovotny commentedon Dec 8, 2018
If it helps, they might be tied to its Store AppId: 9WZDNCRDMDM3. It has a bunch of crash data that's not available to me. It might be available to you.
mrbcmorris commentedon Mar 5, 2019
Hi @vatsan-madhavan,
I'm encountering this issue as well, I've got a memory dump that was captured while our managed code in the UnhandledDispatcherException. How can I provide this to you? One thing to note, our application is using WindowsFormIntegration.
itsho commentedon Sep 8, 2020
I'm having the same crash with slightly different stack:
vatsan-madhavan commentedon Sep 8, 2020
@itsho, Is this in .NET Core of .NET Framework?
@SamBent Did you make wpfx.dll work on .NET Core yet?
itsho commentedon Sep 8, 2020
@vatsan-madhavan it's .NET framework
milos12345 commentedon Oct 29, 2020
I have been getting this for years in telemetry from hundreds of users, with slight variation of Stack Trace:
and
-Sometimes happening seconds after starting program and sometimes after hours of running.
-Sometimes first time it happens after 100 runs
-All possible graphic cards, from Quadro to integrated; From Windows 7 to latest one
-Most recenlty one user reached out, checked that they had the lastest GPU driver, and he said it happened as he restored the window, seeing "only empty windows aero frame/container is visible", computer went to sleep a few times during that day, and after restarting PC he could not reproduce the error
-WPF, from .NET 4.5 - 4.8; no winforms elements
I have never caught it, but if there is something that an average user could do to help debug, or any other info, I can popup a message the next time exception contains SyncFlush() asking user to send more specific information
jingsong-liu commentedon Nov 2, 2020
Same issue in my application, in .net framework 4.6.
Same log with above.
theindra commentedon Nov 12, 2020
I have the same issue but only on Windows Server 2012 and Windows 8.
Exact same stacktrace as above.
SamBent commentedon Nov 30, 2020
To everyone who has the same exception and callstack: You probably don't have the same issue, it may not be WPF's fault, and the WPF team can't help you without more detailed information. Please read https://docs.microsoft.com/en-us/troubleshoot/dotnet/framework/wpf-render-thread-failures for a fuller discussion.
I'm closing this issue, as it's not actionable without more information.
milos12345 commentedon Apr 16, 2021
In my crash log this error precedes SyncFlush crash by a second
Unless I've made mistake in the logging, the window was minimized at the time of the crash and didn't have a focus. I also have that GDI handles count in moment of crash were 120