6
Vote

Still getting "Trigger too complex to inspect!" crash message

description

Hello,
 
I am running 0.9.9 and keep getting the "Trigger too complex to inspect!" exception when I try to inspect text blocks that have data triggers in their styles. The styles are defined in a separate assembly and are referred to using {DynamicResource}. Also the styles utilize inheritance via the BasedOn attribute. The WPF inspector app crashes :-(

comments

petunya wrote Jul 19, 2011 at 8:32 PM

Forgot to add, the data trigger binding uses a converter, in case that info helps.

petunya wrote Jul 19, 2011 at 10:35 PM

More Info --- this exception is preventing me from using the app almost entirely. I hit it all the time.

System.IndexOutOfRangeException

at ChristianMoser.WpfInspector.Services.Triggers.ConditionItem.GetPropertyFromIndex(Int32 index)
at ChristianMoser.WpfInspector.Services.Triggers.ConditionItem.HookBinding()
at ChristianMoser.WpfInspector.Services.Triggers.ConditionItem..ctor(BindingBase binding, Object instance, Object value)
at ChristianMoser.WpfInspector.Services.Triggers.DataTriggerItem.<GetConditions>d__1.MoveNext()
at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection)
at System.Collections.Generic.List1.AddRange(IEnumerable1 collection)
at ChristianMoser.WpfInspector.Services.Triggers.TriggerItemBase.Initialize()
at ChristianMoser.WpfInspector.Services.Triggers.TriggerItemFactory.GetTriggerItem(TriggerBase trigger, FrameworkElement source, TriggerSource triggerSource)
at ChristianMoser.WpfInspector.Services.StyleExplorer.StyleItem..ctor(Style style, FrameworkElement source, String name, String location, StyleScope scope)
at ChristianMoser.WpfInspector.UserInterface.Controls.PropertyItems.StylePropertyItem.LoadStyles()
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.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
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.InvokeImpl(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.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Schilling.Robotics.ROV.HMI.Shell.App.Main() in C:\HHProduction\Schilling.Robotics.Framework\Dev\Framework\Application_ROV\HMI\Shell\obj\x86\Debug\App.g.cs:line 52
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

wrote Aug 31, 2011 at 9:59 AM

BLJ wrote Mar 27, 2012 at 8:53 AM

We're having the same issue.
I'd be glad to provide additional information if needed.

Thank you for your time - and the great tool!

wrote May 18, 2012 at 2:42 PM

wrote Aug 22, 2012 at 5:09 PM

wrote Feb 21, 2013 at 10:55 PM

wrote Apr 5, 2013 at 5:07 PM

Cuberice wrote Oct 15, 2015 at 2:29 PM

I am getting the same issue. Not sure if it is related to DataTriggers and or Converters, event though I use both.

wrote Oct 15, 2015 at 2:30 PM