[Ironpython-users] crash on Win8 64bit at IronPython expression evaluation
Curt Hagenlocher
curt at hagenlocher.org
Tue Jan 15 15:44:20 CET 2013
Is it possible to launch the application directly and then attach the
debugger to it before the code in question executes?
How is the background thread created?
On Tue, Jan 15, 2013 at 3:51 AM, Zsidó Zoltán <zsidoz at innodev.hu> wrote:
> Hi Jeff,
>
>
>
> You were right.
>
> On windows 7 I managed to reproduce the error when I installed .net 4.5.
>
> Unfortunately I still cannot make a simpler application that can reproduce
> it.
>
> And if I debug it then it works on Windows 7.
>
> I have found that .net 4.0 and 4.5 cannot work side-by-side, so my next
> step will be downgrading my application to 3.5.
>
>
>
> Or do you have better idea?
>
>
>
> Zoltan
>
>
> *From:* Jeff Hardy <jdhardy at gmail.com>
> *Sent:* Friday, January 11, 2013 4:54 PM
> *To:* Zsidó Zoltán <zsidoz at innodev.hu>
> *Cc:* ironpython-users at python.org
> *Subject:* Re: [Ironpython-users] crash on Win8 64bit at IronPython
> expression evaluation
>
> What version of .NET is installed on the Windows 7 machines? I wonder if
> this is a .NET 4.5 vs. .NET 4 issue and not a Win8 vs Win7 issue.
>
> - Jeff
>
>
> On Thu, Jan 10, 2013 at 11:43 PM, Zsidó Zoltán <zsidoz at innodev.hu> wrote:
>
>> Keith, you are absolutely right. Not the background thread causes this
>> error.
>>
>> I tried to make a simpler application that throws the same exception but
>> I was not able to do it.
>>
>> Then I tried to debug it in Visual Studio 2010 but if I debug then the
>> error does not appears.
>>
>> I cannot post the full application source code so we will give up it,
>> because it is not reproduceable.
>>
>> As a last word I would like to note that we have two windows 8 64 bit
>> computer and on both pc the software crashes.
>>
>>
>>
>> Regards,
>>
>>
>>
>> Zoltan
>>
>> *From:* Keith Rome <rome at Wintellect.com>
>> *Sent:* Wednesday, January 09, 2013 6:26 PM
>> *To:* Zsidó Zoltán <zsidoz at innodev.hu> ; ironpython-users at python.org
>> *Subject:* RE: [Ironpython-users] crash on Win8 64bit at IronPython
>> expressionevaluation
>>
>>
>> Are you able to narrow down the problem to a small script that reproduces
>> it?****
>>
>> ****
>>
>> The code pointed to in that call stack doesn’t really have many ways of
>> failing in that way (null reference). The most likely thing is that
>> DefaultContext.DefaultPythonContext is not being set. But I think that is
>> done for you when the scripting runtime is initialized.****
>>
>> ****
>>
>> How are you creating the script runtime?****
>>
>> ****
>>
>> Running from a background thread shouldn’t have any bearing on it, unless
>> this were a race issue. And since the crash is happening in a static ctor,
>> that pretty much rules out thread races.****
>>
>> ****
>>
>> ****
>>
>> *Keith Rome*
>>
>> *Senior Consultant and Architect*
>>
>> MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS****
>>
>> Wintellect | 770.617.4016 | mailto:rome at wintellect.com<rome at wintellect.com>
>> ****
>>
>> www.wintellect.com****
>>
>> ****
>>
>> *From:* Ironpython-users [mailto:ironpython-users-bounces+rome=
>> wintellect.com at python.org] *On Behalf Of *Zsidó Zoltán
>> *Sent:* Wednesday, January 9, 2013 8:55 AM
>> *To:* ironpython-users at python.org
>> *Subject:* [Ironpython-users] crash on Win8 64bit at IronPython
>> expression evaluation****
>>
>> ****
>>
>> Hi,****
>>
>> ****
>>
>> We are using IronPython and Windows 8 long time, but now we have an
>> exception that only occurs on windows 8 64 bit. (We did not test on Windows
>> 8 32 bit but tested on Windows 7 32/64 bit where it is ok.)****
>>
>> The application crashes at the first ironpython expression evaluating.***
>> *
>>
>> I think it is important to note that we are using IronPython from a
>> background thread. We cannot debug it on windows 8. If this exception is
>> similar to you please help us.****
>>
>> ****
>>
>> Thanks,****
>>
>> Zoltan****
>>
>> ****
>>
>> the stack trace:****
>>
>> System.TypeInitializationException: The type initializer for
>> 'IronPython.Runtime.Converter' threw an exception. --->
>> System.NullReferenceException: Object reference not set to an instance of
>> an object.****
>>
>> at
>> IronPython.Runtime.Converter.MakeConvertSite[T](ConversionResultKind kind)
>> ****
>>
>> at IronPython.Runtime.Converter.MakeExplicitConvertSite[T]()****
>>
>> at IronPython.Runtime.Converter..cctor()****
>>
>> --- End of inner exception stack trace ---****
>>
>> at IronPython.Runtime.Converter.HasImplicitNumericConversion(Type
>> fromType, Type toType)****
>>
>> at IronPython.Runtime.Converter.CanConvertFrom(Type fromType, Type
>> toType, NarrowingLevel allowNarrowing)****
>>
>> at IronPython.Runtime.Binding.PythonBinder.CanConvertFrom(Type
>> fromType, Type toType, Boolean toNotNullable, NarrowingLevel level)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.CanConvertFrom(Type
>> fromType, DynamicMetaObject fromArgument, ParameterWrapper toParameter,
>> NarrowingLevel level)****
>>
>> at
>> IronPython.Runtime.Binding.PythonOverloadResolver.CanConvertFrom(Type
>> fromType, DynamicMetaObject fromArg, ParameterWrapper toParameter,
>> NarrowingLevel level)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.TryConvertArguments(MethodCandidate
>> candidate, ArgumentBinding namesBinding, NarrowingLevel narrowingLevel,
>> CallFailure& failure)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.SelectCandidatesWithConvertibleArgs(List`1
>> candidates, NarrowingLevel level, List`1& failures)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.MakeBindingTarget(CandidateSet
>> targetSet)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.ResolveOverload(String
>> methodName, IList`1 methods, NarrowingLevel minLevel, NarrowingLevel
>> maxLevel)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.ResolveOverload(String
>> methodName, IList`1 methods, NarrowingLevel minLevel, NarrowingLevel
>> maxLevel)****
>>
>> at
>> Microsoft.Scripting.Actions.DefaultBinder.CallMethod(DefaultOverloadResolver
>> resolver, IList`1 targets, BindingRestrictions restrictions, String name,
>> NarrowingLevel minLevel, NarrowingLevel maxLevel, BindingTarget& target)*
>> ***
>>
>> at
>> IronPython.Runtime.Binding.MetaBuiltinFunction.<>c__DisplayClass4.<MakeSelfCall>b__3(DynamicMetaObject[]
>> newArgs)****
>>
>> at
>> IronPython.Runtime.Types.BuiltinFunction.MakeBuiltinFunctionCall(DynamicMetaObjectBinder
>> call, Expression codeContext, DynamicMetaObject function,
>> DynamicMetaObject[] args, Boolean hasSelf, BindingRestrictions
>> functionRestriction, Func`2 bind)****
>>
>> at
>> IronPython.Runtime.Binding.MetaBuiltinFunction.MakeSelfCall(DynamicMetaObjectBinder
>> call, Expression codeContext, DynamicMetaObject[] args)****
>>
>> at
>> IronPython.Runtime.Binding.MetaBuiltinFunction.InvokeWorker(DynamicMetaObjectBinder
>> call, Expression codeContext, DynamicMetaObject[] args)****
>>
>> at
>> IronPython.Runtime.Binding.MetaBuiltinFunction.Invoke(PythonInvokeBinder
>> pythonInvoke, Expression codeContext, DynamicMetaObject target,
>> DynamicMetaObject[] args)****
>>
>> at
>> IronPython.Runtime.Binding.PythonInvokeBinder.BindWorker(DynamicMetaObject
>> context, DynamicMetaObject target, DynamicMetaObject[] args)****
>>
>> at
>> IronPython.Runtime.Binding.PythonInvokeBinder.Bind(DynamicMetaObject
>> target, DynamicMetaObject[] args)****
>>
>> at
>> Microsoft.Scripting.Utils.DynamicUtils.GenericInterpretedBinder`1.Bind(DynamicMetaObjectBinder
>> binder, Int32 compilationThreshold, Object[] args)****
>>
>> at
>> Microsoft.Scripting.Utils.DynamicUtils.LightBind[T](DynamicMetaObjectBinder
>> binder, Object[] args, Int32 compilationThreshold)****
>>
>> at
>> IronPython.Runtime.Types.BuiltinFunction.IronPython.Runtime.Binding.IFastInvokable.MakeInvokeBinding[T](CallSite`1
>> site, PythonInvokeBinder binder, CodeContext state, Object[] args)****
>>
>> at
>> IronPython.Runtime.Binding.PythonInvokeBinder.BindDelegate[T](CallSite`1
>> site, Object[] args)****
>>
>> at
>> System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1 site,
>> Object[] args)****
>>
>> at
>> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite
>> site, T0 arg0, T1 arg1, T2 arg2)****
>>
>> at
>> Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame
>> frame)****
>>
>> at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame
>> frame)****
>>
>> at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0
>> arg0, T1 arg1)****
>>
>> at
>> IronPython.Compiler.PythonCallTargets.OriginalCallTarget1(PythonFunction
>> function, Object arg0)****
>>
>> at IronPython.Runtime.FunctionCaller`1.Call1(CallSite site,
>> CodeContext context, Object func, T0 arg0)****
>>
>> at
>> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite
>> site, T0 arg0, T1 arg1, T2 arg2)****
>>
>> at
>> Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame
>> frame)****
>>
>> at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame
>> frame)****
>>
>> at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0
>> arg0, T1 arg1)****
>>
>> at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)****
>>
>> at IronPython.Compiler.PythonScriptCode.EvalWrapper(CodeContext ctx)**
>> **
>>
>> at IronPython.Compiler.PythonScriptCode.Run(Scope scope)****
>>
>> at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)****
>>
>> at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)****
>>
>> at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink
>> errorSink)****
>>
>> at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
>> ****
>>
>> at CGS.CGS.ExecuteAssign(AssignAbs assign)****
>>
>> at CGS.CGS.ModelPool_PropertyRead(Object sender, PropertyEventArgs e)
>> m: at IronPython.Runtime.Converter.HasImplicitNumericConversion(Type
>> fromType, Type toType)****
>>
>> at IronPython.Runtime.Converter.CanConvertFrom(Type fromType, Type
>> toType, NarrowingLevel allowNarrowing)****
>>
>> at IronPython.Runtime.Binding.PythonBinder.CanConvertFrom(Type
>> fromType, Type toType, Boolean toNotNullable, NarrowingLevel level)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.CanConvertFrom(Type
>> fromType, DynamicMetaObject fromArgument, ParameterWrapper toParameter,
>> NarrowingLevel level)****
>>
>> at
>> IronPython.Runtime.Binding.PythonOverloadResolver.CanConvertFrom(Type
>> fromType, DynamicMetaObject fromArg, ParameterWrapper toParameter,
>> NarrowingLevel level)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.TryConvertArguments(MethodCandidate
>> candidate, ArgumentBinding namesBinding, NarrowingLevel narrowingLevel,
>> CallFailure& failure)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.SelectCandidatesWithConvertibleArgs(List`1
>> candidates, NarrowingLevel level, List`1& failures)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.MakeBindingTarget(CandidateSet
>> targetSet)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.ResolveOverload(String
>> methodName, IList`1 methods, NarrowingLevel minLevel, NarrowingLevel
>> maxLevel)****
>>
>> at
>> Microsoft.Scripting.Actions.Calls.OverloadResolver.ResolveOverload(String
>> methodName, IList`1 methods, NarrowingLevel minLevel, NarrowingLevel
>> maxLevel)****
>>
>> at
>> Microsoft.Scripting.Actions.DefaultBinder.CallMethod(DefaultOverloadResolver
>> resolver, IList`1 targets, BindingRestrictions restrictions, String name,
>> NarrowingLevel minLevel, NarrowingLevel maxLevel, BindingTarget& target)*
>> ***
>>
>> at
>> IronPython.Runtime.Binding.MetaBuiltinFunction.<>c__DisplayClass4.<MakeSelfCall>b__3(DynamicMetaObject[]
>> newArgs)****
>>
>> at
>> IronPython.Runtime.Types.BuiltinFunction.MakeBuiltinFunctionCall(DynamicMetaObjectBinder
>> call, Expression codeContext, DynamicMetaObject function,
>> DynamicMetaObject[] args, Boolean hasSelf, BindingRestrictions
>> functionRestriction, Func`2 bind)****
>>
>> at
>> IronPython.Runtime.Binding.MetaBuiltinFunction.MakeSelfCall(DynamicMetaObjectBinder
>> call, Expression codeContext, DynamicMetaObject[] args)****
>>
>> at
>> IronPython.Runtime.Binding.MetaBuiltinFunction.InvokeWorker(DynamicMetaObjectBinder
>> call, Expression codeContext, DynamicMetaObject[] args)****
>>
>> at
>> IronPython.Runtime.Binding.MetaBuiltinFunction.Invoke(PythonInvokeBinder
>> pythonInvoke, Expression codeContext, DynamicMetaObject target,
>> DynamicMetaObject[] args)****
>>
>> at
>> IronPython.Runtime.Binding.PythonInvokeBinder.BindWorker(DynamicMetaObject
>> context, DynamicMetaObject target, DynamicMetaObject[] args)****
>>
>> at
>> IronPython.Runtime.Binding.PythonInvokeBinder.Bind(DynamicMetaObject
>> target, DynamicMetaObject[] args)****
>>
>> at
>> Microsoft.Scripting.Utils.DynamicUtils.GenericInterpretedBinder`1.Bind(DynamicMetaObjectBinder
>> binder, Int32 compilationThreshold, Object[] args)****
>>
>> at
>> Microsoft.Scripting.Utils.DynamicUtils.LightBind[T](DynamicMetaObjectBinder
>> binder, Object[] args, Int32 compilationThreshold)****
>>
>> at
>> IronPython.Runtime.Types.BuiltinFunction.IronPython.Runtime.Binding.IFastInvokable.MakeInvokeBinding[T](CallSite`1
>> site, PythonInvokeBinder binder, CodeContext state, Object[] args)****
>>
>> at
>> IronPython.Runtime.Binding.PythonInvokeBinder.BindDelegate[T](CallSite`1
>> site, Object[] args)****
>>
>> at
>> System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1 site,
>> Object[] args)****
>>
>> at
>> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite
>> site, T0 arg0, T1 arg1, T2 arg2)****
>>
>> at
>> Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame
>> frame)****
>>
>> at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame
>> frame)****
>>
>> at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0
>> arg0, T1 arg1)****
>>
>> at
>> IronPython.Compiler.PythonCallTargets.OriginalCallTarget1(PythonFunction
>> function, Object arg0)****
>>
>> at IronPython.Runtime.FunctionCaller`1.Call1(CallSite site,
>> CodeContext context, Object func, T0 arg0)****
>>
>> at
>> System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite
>> site, T0 arg0, T1 arg1, T2 arg2)****
>>
>> at
>> Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame
>> frame)****
>>
>> at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame
>> frame)****
>>
>> at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0
>> arg0, T1 arg1)****
>>
>> at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)****
>>
>> at IronPython.Compiler.PythonScriptCode.EvalWrapper(CodeContext ctx)**
>> **
>>
>> at IronPython.Compiler.PythonScriptCode.Run(Scope scope)****
>>
>> at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)****
>>
>> at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)****
>>
>> at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink
>> errorSink)****
>>
>> at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
>> ****
>>
>> ****
>> **
>>
>> ---------------------------------------------------------------------------------------------------
>> *Ezt a szöveget a Panda IS 2013 csatolta :*
>>
>> Amenyiben ez egy kéretlen e-mail üzenet (SPAM), kattintson a következõ
>> linkre és minõsítse újra: Ez egy SPAM!<http://localhost:6083/Panda?ID=pav_311&SPAM=true&path=C:%5CUsers%5CZsidoz%5CAppData%5CLocal%5CPanda%20Security%5CPanda%20Internet%20Security%202013%5CAntiSpam>
>>
>> ---------------------------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Ironpython-users mailing list
>> Ironpython-users at python.org
>> http://mail.python.org/mailman/listinfo/ironpython-users
>>
>>
>
>
>
> ---------------------------------------------------------------------------------------------------
> *Ezt a szöveget a Panda IS 2013 csatolta :*
>
> Amenyiben ez egy kéretlen e-mail üzenet (SPAM), kattintson a következõ
> linkre és minõsítse újra: Ez egy SPAM!<http://localhost:6083/Panda?ID=pav_349&SPAM=true&path=C:%5CUsers%5CZsidoz%5CAppData%5CLocal%5CPanda%20Security%5CPanda%20Internet%20Security%202013%5CAntiSpam>
>
> ---------------------------------------------------------------------------------------------------
>
> _______________________________________________
> Ironpython-users mailing list
> Ironpython-users at python.org
> http://mail.python.org/mailman/listinfo/ironpython-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20130115/b9ec2a76/attachment.html>
More information about the Ironpython-users
mailing list