2012-12-11 25 views
2

我们的Framework 3.5 SP1,WPF应用程序随机挂起,XP和win 7机器出现以下异常。我们有几百个用户,这对任何人都是随机发生的,我们在发生异常时没有看到任何模式。我们搜索了很多,MS有一个3.5补丁发布,它也包含在3.5 sp1中,可以解决这个问题,但是正如你所看到的,它仍然适用于我们。应用程序ErrorSystem.InvalidOperationException:在渲染线程上发生未指定的错误

 
ERROR 2012-12-10 08:56:12,348[UI]: Host : Application ErrorSystem.InvalidOperationException: An unspecified error occurred on the render thread. 
    at System.Windows.Media.MediaContext.NotifyPartitionIsZombie(Int32 failureCode) 
    at System.Windows.Media.MediaContext.NotifyChannelMessage() 
    at System.Windows.Interop.HwndTarget.HandleMessage(Int32 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, Boolean isSingleParameter) 
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) 

我们看到在我们的日志,这些日志下面的例外是上述Renderthread异常之前登录反复10-15次被抛出。我们也注意到异常开始出现

 
ERROR 2012-12-04 10:38:30,854[UI]: Host : Application ErrorSystem.Runtime.InteropServices.COMException (0x88980406): Exception from HRESULT: 0x88980406 
    at System.Windows.Media.Composition.DUCE.Channel.SyncFlush() 
    at System.Windows.Media.Composition.DUCE.CompositionTarget.UpdateWindowSettings(ResourceHandle hCompositionTarget, RECT windowRect, Color colorKey, Single constantAlpha, MILWindowLayerType windowLayerType, MILTransparencyFlags transparencyMode, Boolean isChild, Boolean isRTL, Boolean renderingEnabled, Int32 disableCookie, Channel channel) 
    at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet) 
    at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget) 
    at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) 
    at System.Windows.Interop.HwndTarget.HandleMessage(Int32 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, Boolean isSingleParameter) 
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) 

重新启动应用程序修复该问题之前,不活动的日志中一个短暂的时期(10-15分钟)。但是,这很快就成为我们优先考虑的问题。真的很感激任何帮助排序这个问题的指针。

+0

你有实际的代码片段,你可以显示/分享..? – MethodMan

+0

@DJ KRAZE - 实际上没有代码片段。我们不确定什么是抛出这个异常,它是未处理的,并随机发生 – praskris

+0

@Jared Harley - 感谢您修复格式。 – praskris

回答

0

这是一种红鲱鱼。这个问题已经由工程团队解决了。我们的用户使用虚拟机,并使用citrix连接到机器。 citrix使用客户端机器cpu/gpu卸载图形和渲染所实现的反向无缝设置导致了此问题。

相关问题