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
we are also seeing this error in some crash data, but haven't been able to reproduce in-house, so not clear if it is related OOM: DUCE+Channel.SyncFlush() #128
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()
(optional) Add an image element at the size of the screen. It just increases the memory usage even further than a blank window alone
Resize the window to multiple monitors ( for example, 2 4Ks, or 1 4K monitor and other sized monitors)
Compare the memory usage in WPF vs. UWP
Actual behavior:
On my monitor setup with 7495 x 4440 virtual screen pixels, for WPF, sizing a window to that size takes around
This is what a similar setup looks like in UWP.
Expected behavior:
I would expect the behavior closer to UWP. I would expect say a (3840 x 2160 x 4 bytes per pixel) * 2 monitor setup to take 66,355,200 bytes, but WPF seems to be using many multiples of that.
Is this just an architectural limitation in WPF, or a bug?
The text was updated successfully, but these errors were encountered:
We found that this was mainly an issue when debugging an app through Visual Studio and that disabling the in-app toolbar in the Live Visual Tree helped prevent this issue.
Problem description:
A WPF window and image seem to take a massive amount of memory compared to an equivalently sized window in UWP.
Possibly related issues:
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()
https://support.microsoft.com/en-us/help/4490156/windows-10-1709-gpu-process-memory-counters-report-incorrect-values
Also see a lot of page faults.
Minimal repro:
Test apps for WPF and UWP
WindowMemoryTestApps.zip
Compare the memory usage in WPF vs. UWP
Actual behavior:

On my monitor setup with 7495 x 4440 virtual screen pixels, for WPF, sizing a window to that size takes around
This is what a similar setup looks like in UWP.

Expected behavior:
I would expect the behavior closer to UWP. I would expect say a (3840 x 2160 x 4 bytes per pixel) * 2 monitor setup to take 66,355,200 bytes, but WPF seems to be using many multiples of that.
Is this just an architectural limitation in WPF, or a bug?
The text was updated successfully, but these errors were encountered: