Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Общие вопросы по .NET и C# > Исключение в Trace.TraceInformation


Автор: Competitor 6.3.2015, 16:59
В приложении WPF осуществляется логирование через Trace.Listeners.Add и Trace.TraceInformation. 
При запуске приложения несколько строк выводится в лог успешно, а на очередном выводе в лог взрывается:
Цитата

at Ilrun.Assert.Verify(Boolean value)
at Ilrun.Stuff.AssertThrowIsInst(Slot slotThis, Type type, Boolean fDecodeProxy)
at Ilrun.MscorlibHooks.System_Runtime_CompilerServices_JitHelpers.UnsafeCast(VirtualMachine vm, MethodBase method, CallArgs args)
at Ilrun.DefaultHost.TryExecuteMethod(VirtualMachine virtualMachine, MethodBase method, CallArgs args)
at Microsoft.VisualStudio.Vil.NotifyPointInProcHost.InProcHost.TryExecuteMethod(VirtualMachine virtualMachine, MethodBase method, CallArgs args)
at Ilrun.VirtualMachine.ExecuteMethodInternal2(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethodInternal(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethod(MethodBase method, CallArgs args)
at Ilrun.Stuff.ExecuteCall(VirtualState vs, Type tConstrainedPrefix, ILOpCode opCode, Int32 token, String& arg)
at Ilrun.Stuff.ExecuteInlineToken(VirtualState vs, String& instruction, Int32 opCodeSize, ILOpCode opCode)
at Ilrun.Stuff.ExecuteInstructionWorker(VirtualState vs, ILOpCode& opCode, Slot pendingException)
at Ilrun.Stuff.ExecuteInstruction(VirtualState vs, ILOpCode& opCode)
at Ilrun.Stuff.ExecuteWorker(VirtualMachine vm, IVirtualStackFrame frame, CallArgs callArgs)
at Ilrun.VirtualMachine.ExecuteMethodWithInterpreter(MethodBase method, CallArgs args, IVirtualStackFrame frame)
at Ilrun.VirtualMachine.ExecuteMethodInternal2(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethodInternal(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethod(MethodBase method, CallArgs args)
at Ilrun.Stuff.ExecuteCall(VirtualState vs, Type tConstrainedPrefix, ILOpCode opCode, Int32 token, String& arg)
at Ilrun.Stuff.ExecuteInlineToken(VirtualState vs, String& instruction, Int32 opCodeSize, ILOpCode opCode)
at Ilrun.Stuff.ExecuteInstructionWorker(VirtualState vs, ILOpCode& opCode, Slot pendingException)
at Ilrun.Stuff.ExecuteInstruction(VirtualState vs, ILOpCode& opCode)
at Ilrun.Stuff.ExecuteWorker(VirtualMachine vm, IVirtualStackFrame frame, CallArgs callArgs)
at Ilrun.VirtualMachine.ExecuteMethodWithInterpreter(MethodBase method, CallArgs args, IVirtualStackFrame frame)
at Ilrun.VirtualMachine.ExecuteMethodInternal2(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethodInternal(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethod(MethodBase method, CallArgs args)
at Ilrun.Stuff.ExecuteCall(VirtualState vs, Type tConstrainedPrefix, ILOpCode opCode, Int32 token, String& arg)
at Ilrun.Stuff.ExecuteInlineToken(VirtualState vs, String& instruction, Int32 opCodeSize, ILOpCode opCode)
at Ilrun.Stuff.ExecuteInstructionWorker(VirtualState vs, ILOpCode& opCode, Slot pendingException)
at Ilrun.Stuff.ExecuteInstruction(VirtualState vs, ILOpCode& opCode)
at Ilrun.Stuff.ExecuteWorker(VirtualMachine vm, IVirtualStackFrame frame, CallArgs callArgs)
at Ilrun.VirtualMachine.ExecuteMethodWithInterpreter(MethodBase method, CallArgs args, IVirtualStackFrame frame)
at Ilrun.VirtualMachine.ExecuteMethodInternal2(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethodInternal(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethod(MethodBase method, CallArgs args)
at Ilrun.Stuff.ExecuteCall(VirtualState vs, Type tConstrainedPrefix, ILOpCode opCode, Int32 token, String& arg)
at Ilrun.Stuff.ExecuteInlineToken(VirtualState vs, String& instruction, Int32 opCodeSize, ILOpCode opCode)
at Ilrun.Stuff.ExecuteInstructionWorker(VirtualState vs, ILOpCode& opCode, Slot pendingException)
at Ilrun.Stuff.ExecuteInstruction(VirtualState vs, ILOpCode& opCode)
at Ilrun.Stuff.ExecuteWorker(VirtualMachine vm, IVirtualStackFrame frame, CallArgs callArgs)
at Ilrun.VirtualMachine.ExecuteMethodWithInterpreter(MethodBase method, CallArgs args, IVirtualStackFrame frame)
at Ilrun.VirtualMachine.ExecuteMethodInternal2(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethodInternal(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethod(MethodBase method, CallArgs args)
at Ilrun.Stuff.ExecuteCall(VirtualState vs, Type tConstrainedPrefix, ILOpCode opCode, Int32 token, String& arg)
at Ilrun.Stuff.ExecuteInlineToken(VirtualState vs, String& instruction, Int32 opCodeSize, ILOpCode opCode)
at Ilrun.Stuff.ExecuteInstructionWorker(VirtualState vs, ILOpCode& opCode, Slot pendingException)
at Ilrun.Stuff.ExecuteInstruction(VirtualState vs, ILOpCode& opCode)
at Ilrun.Stuff.ExecuteWorker(VirtualMachine vm, IVirtualStackFrame frame, CallArgs callArgs)
at Ilrun.VirtualMachine.ExecuteMethodWithInterpreter(MethodBase method, CallArgs args, IVirtualStackFrame frame)
at Ilrun.VirtualMachine.ExecuteMethodInternal2(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethodInternal(MethodBase method, CallArgs args, Boolean fAllowHooks)
at Ilrun.VirtualMachine.ExecuteMethod(MethodBase method, CallArgs args)
at Microsoft.VisualStudio.Vil.NotifyPointInProcHost.NPRunner.Run(Boolean isEntryQuery, Object thisArg, Object[] args, Object retVal)
at Microsoft.VisualStudio.Vil.NotifyPointInProcHost.NPRunner.RunPDQInternal(String containingType, Boolean isEntryQuery, Object thisArg, Object[] args, Object retVal, String hintPath, String assemblyLocation)
at Microsoft.VisualStudio.Vil.NotifyPointInProcHost.NPRunner.RunPDQ(Int32 assemblyIndex, String containingType, Boolean isEntryQuery, Object thisArg, Object[] args, Object retVal)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at System.Diagnostics.DebuggerHiddenAttribute.__NotifyPointRuntime_RunProgrammableDataQuery(Int32 , String , Boolean , Object , Object[] , Object )
at System.Diagnostics.Trace.TraceInformation(String format, Object[] args)
...


В инете инфы по таким стектрейсам почти нет. Может кто-нибудь сталкивался с чем-то подобным?
Проблема не воспроизводится. Воспроизвелась только один раз у тестировщика.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)