WPF Renderer thread exited with codes 0x88980406, 0x88980403 - by Dmitry Tretyakov

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


18
0
Sign in
to vote
ID 674249 Comments
Status Closed Workarounds
Type Bug Repros 14
Opened 6/6/2011 2:27:30 AM
Access Restriction Public

Description

Sometimes in our application, after changes in controls visibility, drawing process stops, because in WPF renderer thread occurs crashing .
When we run our application in debug in output window we can see next:

"MIL FAILURE: Unexpected HRESULT 0x88980403 in caller: batch processing error
MIL FAILURE: Unexpected HRESULT 0x88980403 in caller: The render thread failed unexpectedly."

In the release mode we've got:

"Problem signature:
Problem event type: AppHangB1
Timestamp: 4de757eb
Hanging signature: 3d77
Type of hang: 0
OS version: 6.1.7601.2.1.0.256.48
Additional hang signature 1: 3d77056c5d207a5ad08cc05fbfd1d718
Additional hang signature 2: 3020
Additional hang signature 3: 3020570414c167ddaa475bafdbdb35d2
Additional hang signature 4: 3d77
Additional hang signature 5: 3d77056c5d207a5ad08cc05fbfd1d718
Additional hang signature 6: 3020
Additional hang signature 7: 3020570414c167ddaa475bafdbdb35d2"

And from logs:

"6/3/2011 5:26:44 PM Exception from HRESULT: 0x88980406
at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()

at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)

at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)

at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)"

How we can solve this problem? 
Sign in to post a comment.
Posted by Bhawasinka, Ashutosh on 5/22/2013 at 7:41 AM
I am also experiencing the same issue with .Net 4.0
Posted by ZenkeiRich on 9/20/2012 at 1:31 AM
Dear Microsoft,

Thanks for the reply. Unfortunately, the customer who is getting this error is using Windows XP. Because .NET 4.5 doesn't support Windows XP upgrading to 4.5 isn't a viable solution.

Is there any chance of an upgrade to 4.0 to fix this problem?

Thank you.
ZenkeiRich
Posted by Microsoft on 9/19/2012 at 11:16 AM
This bug is fixed in WPF 4.5.
Posted by ZenkeiRich on 9/18/2012 at 8:26 PM
The company I work for has released a WPF Application targetting .NET 4.0. The application has crashed on some of our customers with this exception. Any updates on this would be greatly appreciated. Thank you.
Posted by Mr-Jolly on 7/26/2012 at 10:50 AM
Please could we have an update on this? I see the issue is closed - could you confirm that the bug was fixed and in which version of the framework?
Posted by Scott Brogden on 6/6/2012 at 12:27 PM
Any updates on this? We are randomly seeing this issue and we are using a writable bitmap. We are using .net 4.0.
Posted by Andrew Shweduke on 11/9/2011 at 10:20 PM
Is This bug fixed? I still can repro it on .NET Framework 4.0.2.
Posted by Jojobainus on 10/5/2011 at 8:17 AM
We are experiencing a similar issue, it is quite hard to debug. Could you tell us the cause of this issue or what we could do to help locate the bug?

Here's the content of the output window :

MIL FAILURE: Unexpected HRESULT 0x80070057 in caller: batch processing error
MIL FAILURE: Unexpected HRESULT 0x80070057 in caller: The render thread failed unexpectedly.
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in PresentationCore.dll

Additional information: Exception from HRESULT: 0x88980406

The callstack when we receive the exception is the following :
>    PresentationCore.dll!System.Windows.Media.Composition.DUCE.Channel.SyncFlush() + 0xb5 bytes    
    PresentationCore.dll!System.Windows.Media.MediaContext.CompleteRender() + 0x33 bytes    
    PresentationCore.dll!System.Windows.Interop.HwndTarget.OnResize() + 0x150 bytes    
    PresentationCore.dll!System.Windows.Interop.HwndTarget.HandleMessage(int msg, System.IntPtr wparam, System.IntPtr lparam) + 0x21a bytes    
    PresentationCore.dll!System.Windows.Interop.HwndSource.HwndTargetFilterMessage(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled = false) + 0x3a bytes    
    WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd = 0x000d2d22, int msg = 0x00000005, System.IntPtr wParam = 0x00000000, System.IntPtr lParam = 0x038a0184, ref bool handled = false) + 0xbe bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7a bytes    
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback = {Method = {System.Object DispatcherCallbackOperation(System.Object)}}, object args = {MS.Win32.HwndSubclass.DispatcherOperationCallbackParameter}, bool isSingleParameter = true) + 0x8a bytes    
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler = null) + 0x4a bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x44 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, bool isSingleParameter) + 0x91 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority priority, System.Delegate method, object arg) + 0x40 bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd = 0x000d2d22, int msg = 0x00000005, System.IntPtr wParam = 0x00000000, System.IntPtr lParam = 0x038a0184) + 0xdc bytes    
    [Native to Managed Transition]    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes    
    user32.dll!_RealDefWindowProcWorker@24() + 0x167b bytes    
    user32.dll!_RealDefWindowProcW@16() + 0x2a bytes    
    uxtheme.dll!_ThemeDefWindowProc() + 0x152 bytes    
    uxtheme.dll!_ThemeDefWindowProcW@16() + 0x18 bytes    
    user32.dll!_DefWindowProcW@16() + 0x3c7 bytes    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes    
    user32.dll!_CallWindowProcAorW@24() + 0x5e bytes    
    user32.dll!_CallWindowProcW@20() + 0x1b bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.DefWndProcWrapper(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x78 bytes    
    [Native to Managed Transition]    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes    
    user32.dll!_CallWindowProcAorW@24() + 0x5e bytes    
    user32.dll!_CallWindowProcW@20() + 0x1b bytes    
    [Managed to Native Transition]    
    WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x125 bytes    
    [Native to Managed Transition]    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    user32.dll!_UserCallWinProcCheckWow@32() + 0xa65 bytes    
    user32.dll!_DispatchClientMessage@24() + 0x51 bytes    
    user32.dll!___fnINLPWINDOWPOS@4() + 0x2c bytes    
    ntdll.dll!_KiUserCallbackDispatcher@12() + 0x2e bytes    
    [Managed to Native Transition]    
    WindowsFormsIntegration.dll!System.Windows.Forms.Integration.ElementHost.SetHWndSourceWindowPos() Line 600 + 0x51 bytes    C#
    WindowsFormsIntegration.dll!System.Windows.Forms.Integration.ElementHost.WndProc(ref System.Windows.Forms.Message m = {msg=0x47 (WM_WINDOWPOSCHANGED) hwnd=0x323c5a wparam=0x0 lparam=0x41c288 result=0x0}) Line 751    C#
    System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) + 0x10 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x31 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 0x00000047, System.IntPtr wparam, System.IntPtr lparam) + 0x57 bytes    
    [Native to Managed Transition]    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    [Managed to Native Transition]    
    System.Windows.Forms.dll!System.Windows.Forms.Control.SetBoundsCore(int x, int y, int width, int height, System.Windows.Forms.BoundsSpecified specified = None) + 0x162 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(System.Drawing.Rectangle bounds, System.Windows.Forms.BoundsSpecified specified) + 0x5e bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Layout.DefaultLayout.xLayoutDockedControl(System.Windows.Forms.Layout.IArrangedElement element, System.Drawing.Rectangle newElementBounds, bool measureOnly, ref System.Drawing.Size preferredSize, ref System.Drawing.Rectangle remainingBounds) + 0x34 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(System.Windows.Forms.Layout.IArrangedElement container, bool measureOnly = false) + 0x138 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Layout.DefaultLayout.xLayout(System.Windows.Forms.Layout.IArrangedElement container = {EditorManagedControls.AssetBrowser.AssetBrowserForm, Text: Asset Browser}, bool measureOnly = false, out System.Drawing.Size preferredSize = {Width = 0xffffe441 Height = 0xffffe43f}) + 0x123 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Layout.DefaultLayout.LayoutCore(System.Windows.Forms.Layout.IArrangedElement container, System.Windows.Forms.LayoutEventArgs args) + 0x19 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Layout.LayoutEngine.Layout(object container, System.Windows.Forms.LayoutEventArgs layoutEventArgs) + 0x1b bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent) + 0x83 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent) + 0x43 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Form.OnLayout(System.Windows.Forms.LayoutEventArgs levent) + 0x3c bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.LayoutEventArgs args) + 0x85 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(System.Windows.Forms.Layout.IArrangedElement affectedElement, string affectedProperty) + 0x2e bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Layout.LayoutTransaction.DoLayout(System.Windows.Forms.Layout.IArrangedElement elementToLayout, System.Windows.Forms.Layout.IArrangedElement elementCausingLayout, string property) + 0x2e bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.OnResize(System.EventArgs e = {System.EventArgs}) + 0x47 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Form.OnResize(System.EventArgs e) + 0xd bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e = {System.EventArgs}) + 0x29 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.UpdateBounds(int x, int y, int width, int height, int clientWidth, int clientHeight) + 0x9c bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.UpdateBounds() + 0xd1 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x284 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.ScrollableControl.WndProc(ref System.Windows.Forms.Message m) + 0x2a bytes    
    System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.WndProc(ref System.Windows.Forms.Message m) + 0x10 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Form.WndProc(ref System.Windows.Forms.Message m) + 0x40 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) + 0x10 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x31 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 0x00000003, System.IntPtr wparam, System.IntPtr lparam) + 0x57 bytes    
    [Native to Managed Transition]    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes    
    user32.dll!_CallWindowProcAorW@24() + 0x5e bytes    
    user32.dll!_CallWindowProcW@20() + 0x1b bytes    
    [Managed to Native Transition]    
    WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x125 bytes    
    [Native to Managed Transition]    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes    
    user32.dll!_RealDefWindowProcWorker@24() + 0xc5f2 bytes    
    user32.dll!_RealDefWindowProcW@16() + 0x2a bytes    
    uxtheme.dll!_ThemeDefWindowProc() + 0x152 bytes    
    uxtheme.dll!_ThemeDefWindowProcW@16() + 0x18 bytes    
    user32.dll!_DefWindowProcW@16() + 0x3c7 bytes    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes    
    user32.dll!_CallWindowProcAorW@24() + 0x5e bytes    
    user32.dll!_CallWindowProcW@20() + 0x1b bytes    
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m = {msg=0x47 (WM_WINDOWPOSCHANGED) hwnd=0x153ab2 wparam=0x0 lparam=0x41dcfc result=0x0}) + 0x93 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Form.DefWndProc(ref System.Windows.Forms.Message m) + 0x89 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.WmWindowPosChanged(ref System.Windows.Forms.Message m = {msg=0x47 (WM_WINDOWPOSCHANGED) hwnd=0x153ab2 wparam=0x0 lparam=0x41dcfc result=0x0}) + 0x16 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x24c bytes    
    System.Windows.Forms.dll!System.Windows.Forms.ScrollableControl.WndProc(ref System.Windows.Forms.Message m) + 0x2a bytes    
    System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.WndProc(ref System.Windows.Forms.Message m) + 0x10 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Form.WmWindowPosChanged(ref System.Windows.Forms.Message m) + 0x19 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Form.WndProc(ref System.Windows.Forms.Message m) + 0x106 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) + 0x10 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x31 bytes    
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 0x00000047, System.IntPtr wparam, System.IntPtr lparam) + 0x57 bytes    
    [Native to Managed Transition]    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes    
    user32.dll!_CallWindowProcAorW@24() + 0x5e bytes    
    user32.dll!_CallWindowProcW@20() + 0x1b bytes    
    [Managed to Native Transition]    
    WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x125 bytes    
    [Native to Managed Transition]    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    user32.dll!_UserCallWinProcCheckWow@32() + 0xa65 bytes    
    user32.dll!_DispatchClientMessage@24() + 0x51 bytes    
    user32.dll!___fnINLPWINDOWPOS@4() + 0x2c bytes    
    ntdll.dll!_KiUserCallbackDispatcher@12() + 0x2e bytes    
    [Managed to Native Transition]    
    PresentationFramework.dll!System.Windows.Interop.HwndHost.OnWindowPositionChanged(System.Windows.Rect rcBoundingBox) + 0x9d bytes    
    PresentationFramework.dll!System.Windows.Interop.HwndHost.UpdateWindowPos() + 0xc4 bytes    
    PresentationFramework.dll!System.Windows.Interop.HwndHost.OnLayoutUpdated(object sender, System.EventArgs e) + 0x5 bytes    
    PresentationCore.dll!System.Windows.ContextLayoutManager.fireLayoutUpdateEvent() + 0xb8 bytes    
    PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayout() + 0x641 bytes    
    PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayoutCallback(object arg) + 0x19 bytes    
    PresentationCore.dll!System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() + 0x10 bytes    
    PresentationCore.dll!System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() + 0x97 bytes    
    PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandlerCore(object resizedCompositionTarget = null) + 0x80 bytes    
    PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandler(object resizedCompositionTarget) + 0x2b bytes    
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback = {Method = {System.Object RenderMessageHandler(System.Object)}}, object args = null, bool isSingleParameter = true) + 0x8a bytes    
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler = null) + 0x4a bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x44 bytes    
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() + 0x5d bytes    
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(object state) + 0x38 bytes    
    mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x51 bytes    
    mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x67 bytes    
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x45 bytes    
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() + 0x63 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() + 0x127 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x63 bytes    
    WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd = 0x000e2102, int msg = 0x0000c1ae, System.IntPtr wParam = 0x00000000, System.IntPtr lParam = 0x00000000, ref bool handled = false) + 0xbe bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7a bytes    
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback = {Method = {System.Object DispatcherCallbackOperation(System.Object)}}, object args = {MS.Win32.HwndSubclass.DispatcherOperationCallbackParameter}, bool isSingleParameter = true) + 0x8a bytes    
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler = null) + 0x4a bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x44 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, bool isSingleParameter) + 0x91 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority priority, System.Delegate method, object arg) + 0x40 bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd = 0x000e2102, int msg = 0x0000c1ae, System.IntPtr wParam = 0x00000000, System.IntPtr lParam = 0x00000000) + 0xdc bytes    
    [Native to Managed Transition]    
    user32.dll!_InternalCallWinProc@20() + 0x23 bytes    
    user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes    
    user32.dll!_DispatchMessageWorker@8() + 0xed bytes    
    user32.dll!_DispatchMessageW@4() + 0xf bytes    
    [Managed to Native Transition]    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame = {System.Windows.Threading.DispatcherFrame}) + 0xc4 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame) + 0x49 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.Run() + 0x4c bytes    
    PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) + 0x1e bytes    
    PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) + 0x6f bytes    
    PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window) + 0x26 bytes    
    PresentationFramework.dll!System.Windows.Application.Run() + 0x19 bytes    
    Dunia.Shell.exe!Dunia.Shell.App.Main() + 0x5e bytes    C#

Thanks for your help
Posted by johannes groettrup on 9/16/2011 at 5:29 AM
We have a similar issue and it is a showstopper for us, too. So, will there be a hot fix for it?
If not then it would be great to know more about this race condition. This could help us to find a work around for the time being.
Posted by KarloX2 on 9/6/2011 at 12:18 AM
We have a similar issue. Turns out to be a show stopper bug for us? Are you going to make a hotfix for this?
Posted by Microsoft on 9/2/2011 at 1:04 PM
Thanks for the repro application. We have investigated and identified a race condition in WriteableBitmap. The fix should make it to the next release.
Posted by Dmitry Tretyakov on 6/21/2011 at 12:00 AM
Maybe I can help by providing some additional information? Which data required on this stage of problem solving?
Posted by Dmitry Tretyakov on 6/15/2011 at 12:26 AM
This error happens on different machines in Windows XP & Seven OS with Hardware acceleration and without it. So we couldn't specify criterias of hardware and software, which cause this situation.
I've uploaded software release (FeedbackID-674249_Editor.zip) where you could see this problem. After installation you should add video and, when dark lock screen are disappearing, you can see this issue. This happens very often when converting process finished and started video load process.
May be it'll be usefull for problem detection.
Posted by Dwayne [MSFT] on 6/11/2011 at 12:19 PM
Thank you for uploading the dump files. I have confirmed that the render thread encountered an unexpected WGXERR_UCE_MALFORMEDPACKET error while processing commands from the UI thread. This is a fatal error, so the exception was thrown by the UI thread.

An error like this could occur if there was a version mismatch in the assemblies loaded. This would be unusual, and I check the versions of the WPF assemblies in the dump file and they seemed to match:

Image path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\wpfgfx_v0400.dll
Image name: wpfgfx_v0400.dll
Timestamp:        Wed Feb 09 22:39:11 2011 (4D53880F)
CheckSum:         001A5627
ImageSize:        0019A000
File version:     4.0.30319.225
Product version: 4.0.30319.225
File flags:     8 (Mask 3F) Private
File OS:         4 Unknown Win32
File type:        2.0 Dll
File date:        00000000.00000000
Translations:     0409.04b0
CompanyName:     Microsoft Corporation
ProductName:     Microsoft« .NET Framework
InternalName:     wpfgfx_v0400.dll
OriginalFilename: wpfgfx_v0400.dll
ProductVersion: 4.0.30319.225
FileVersion:     4.0.30319.225 built by: RTMGDR
PrivateBuild:     DDBLD232
FileDescription: wpfgfx_v0400.dll
LegalCopyright: ⌐ Microsoft Corporation. All rights reserved.
Comments:         Flavor=Retail

Image path: C:\Windows\assembly\NativeImages_v4.0.30319_32\PresentationCore\887688af9665ecb951b418d5982a3c5d\PresentationCore.ni.dll
Image name: PresentationCore.ni.dll
Using CLR debugging support for all symbols
Has CLR image header, track-debug-data flag not set
Timestamp:        Wed Feb 09 22:54:48 2011 (4D538BB8)
CheckSum:         00000000
ImageSize:        00A8E000
File version:     4.0.30319.225
Product version: 4.0.30319.225
File flags:     8 (Mask 3F) Private
File OS:         4 Unknown Win32
File type:        2.0 Dll
File date:        00000000.00000000
Translations:     0409.04b0
CompanyName:     Microsoft Corporation
ProductName:     Microsoft« .NET Framework
InternalName:     PresentationCore.dll
OriginalFilename: PresentationCore.dll
ProductVersion: 4.0.30319.225
FileVersion:     4.0.30319.225 built by: RTMGDR
PrivateBuild:     DDBLD232
FileDescription: PresentationCore.dll
LegalCopyright: ⌐ Microsoft Corporation. All rights reserved.
Comments:         Flavor=Retail

Have you narrowed down your repro to some reliable steps? Does the issue repro on other machines? Anything worth noting about any of the machines that show this problem?
Posted by Dmitry Tretyakov on 6/9/2011 at 5:37 AM
I've uploaded archive FeedbackID-674249_Additional_memory_dumps.zip with memory dumps created by ProcessExplorer and WinDbg apps. Please, review it, may be you could recieve more usefull information.
Posted by Dwayne [MSFT] on 6/8/2011 at 4:04 PM
WPF generally uses two threads: the UI thread and the render thread. When the render thread encounters a failure, it notifies the UI thread, which throws an InvalidOperationException from a couple of points, including NotifyPartitionIsZombie and SyncFlush.

Of course, the stack of the UI thread is completely unrelated to the stack of the render thread when it failed. Fortunately, the render thread took a stack trace when it failed and stored it in memory. Unfortunately, there is no easy way of accessing it. We have debugging tools that can dig it out if you can provide us with a memory-dump from a debugger.

If you would be willing to help us out, you can find instructions on how to create a memory dump from debuggers like WinDbg or cdb here:

http://www.wintellect.com/CS/blogs/jrobbins/archive/2010/06/17/how-to-capture-a-minidump-let-me-count-the-ways.aspx

Detailed steps for using WinDbg to create the dump can be found here:
http://blogs.msdn.com/b/joncole/archive/2007/03/29/creating-a-process-memory-dump.aspx

Note that these tend to be large files, so its best if you can store them somewhere (like an FTP site) and send us a link. I know this is painful, but if you can get us this information we should be able to help identify the problem.

-- The WPF Team
Posted by MS-Moderator07 [Feedback Moderator] on 6/7/2011 at 2:35 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Dmitry Tretyakov on 6/7/2011 at 1:09 AM
I've uploaded call stack and dump as FeedbackID-674249-Details.zip.
Posted by MS-Moderator07 on 6/6/2011 at 8:21 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.
    
It may help if you provide us with a dump file and call stack.

You can get detailed steps about how to get the dump file and call stack at http://blogs.msdn.com/debugger/archive/2009/12/30/what-is-a-dump-and-how-do-i-create-one.aspx

Or you can download a Visual Studio 2010 Diagnostic Tool from http://visualstudiogallery.msdn.microsoft.com/en-us/e8649e35-26b1-4e73-b427-c2886a0705f4. You can get detailed description about how to use it to collect dump file.

************************************************************
Please zip the file and use "FeedbackID-674249" as prefix of the file name.

************************************************************
You can use the following workspace to upload the file:
https://sftus.one.microsoft.com/choosetransfer.aspx?key=8e6f8ea0-3c43-4b43-8ffc-3d081a2ceda1
Password is xLBDIjK)abN

Please submit this information to us within 4 business days. Thanks again for your efforts and we look forward to hearing from you.

Microsoft Visual Studio Connect Support Team
Posted by MS-Moderator01 on 6/6/2011 at 3:49 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)