[DevExpress Support Team: CLONED FROM T305449: Using DevExpress WPF Components with multi-process hosting]
2. I get this exception when showing/hiding TabLayoutPanel of the DevExpress DockLayoutManager2. I get this exception when showing/hiding TabLayoutPanel of the DevExpress DockLayoutManager
2015-10-28 13:41:48,432 [1] ERROR ModuleHost.Activation.Program - Exception: System.InvalidOperationException: An infinite loop appears to have resulted from repeatedly invalidating the TimeManager during the Layout/Render process.
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
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)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(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)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at ModuleHost.Activation.Program.RunMain(Stopwatch sw) in c:\Code\HIBISCUS-4.0\Source\Framework\ModuleHost\Activation\Program.cs:line 110
at ModuleHost.Activation.Program.Main(String[] args) in c:\Code\HIBISCUS-4.0\Source\Framework\ModuleHost\Activation\Program.cs:line 35
The problem number 2 above, the exception is reproducible without the multi-process host. Please see attached zip file for reproduction of the exception (#2)
Hi Alex,
I have reviewed the attached sample but have not found the DockLayoutManager control there. Would you please check if you attached the correct sample?
It's in the DevExpressPlugin.xaml file.
<dxdo:DockLayoutManager FloatingMode="Window" AutoHideExpandMode="MouseDown" x:Name="moduleView">
<dxdo:LayoutGroup x:Name="rootLayout">
<dxdo:LayoutGroup Orientation="Horizontal">
…
Actually, Alexander I think that the reason for the crash is this setter in the style:
<Setter Property="dxdo:AutoHideGroup.AutoHideSize" Value="{Binding LayoutSize, RelativeSource={RelativeSource Self}}" />
It worked when we were on 13.2, but I think in 15.1 it causes a crash. Removing this line eliminates the crash, so it's likely that this is a self-inflicted wound. I think you can close the ticket.
Hi Alex,
Please accept my apologies for that. It looks like I have downloaded your first sample twice. I have managed to reproduce the issue in the second sample. We have already discussed it in the An invalid exception is raised when the DockLayoutManager is located in a panel with automatic height thread. Try the solution suggested there and let us know your results. If it doesn't help, remove the following setter from the "CollapsableRegionStyle" style:
<Setter Property="dxdo:AutoHideGroup.AutoHideSize" Value="{Binding LayoutSize, RelativeSource={RelativeSource Self}}" />
Solved. thx