Awesome, thanks for tracking this down.  This looks trivial to fix - we're just 
missing a lock statement.  I've added the lock to my next change that will go 
in (probably today).

-----Original Message-----
From: users-boun...@lists.ironpython.com 
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Dan Eloff
Sent: Monday, February 09, 2009 10:25 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Any idea what might cause this?

Hi Dino,

I modified the importing code a to spit out the CLR trace and to auto
refresh the browser if there is no error. 299 reloads later it crashed
because it ran out of memory, looks like IE/silverlight has a leak.
108 reloads after that I hit paydirt. There error was in another
module, but appears to be the same issue.

Good luck!
-Dan

CLR Exception: System.InvalidOperationException: Collection was
modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource
resource)
   at 
System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext()
   at IronPython.Runtime.Types.NewTypeMaker.StoreOverriddenMethod(MethodInfo
mi, String newName)
   at IronPython.Runtime.Types.NewTypeMaker.AddBaseMethods(Type
finishedType, Dictionary`2 specialNames)
   at IronPython.Runtime.Types.NewTypeMaker.CreateNewType()
   at 
IronPython.Runtime.Types.NewTypeMaker.<>c__DisplayClass1.<GetNewType>b__0()
   at Microsoft.Scripting.Utils.Publisher`2.GetOrCreateValue(TKey key,
Func`1 create)
   at IronPython.Runtime.Types.NewTypeMaker.GetNewType(String
typeName, PythonTuple bases, IAttributesCollection dict)
   at IronPython.Runtime.Types.PythonType..ctor(CodeContext context,
String name, PythonTuple bases, IAttributesCollection dict)
   at IronPython.Runtime.Types.PythonType.__new__(CodeContext context,
PythonType cls, String name, PythonTuple bases, IAttributesCollection
dict)
   at _stub_$454##282(Closure , CallSite , CodeContext , Object ,
String , PythonTuple , IAttributesCollection )
   at IronPython.Runtime.Operations.PythonOps.MakeClass(CodeContext
context, String name, Object[] bases, String selfNames,
IAttributesCollection vars)
   at IronPython.Runtime.Operations.PythonOps.MakeClass(CodeContext
context, String name, Object[] bases, String selfNames, CallTarget0
body)
   at S$27.Initialize(Scope $scope, LanguageContext $language)
   at 
Microsoft.Scripting.Runtime.OptimizedScriptCode.InvokeTarget(LambdaExpression
code, Scope scope)
   at Microsoft.Scripting.ScriptCode.Run(Scope scope)
   at IronPython.Runtime.PythonContext.CreateModule(String fileName,
Scope scope, ScriptCode scriptCode, ModuleOptions options)
   at IronPython.Runtime.PythonContext.CompileModule(String fileName,
String moduleName, SourceUnit sourceCode, ModuleOptions options,
ScriptCode& scriptCode)
   at IronPython.Runtime.PythonContext.CompileModule(String fileName,
String moduleName, SourceUnit sourceCode, ModuleOptions options)
   at IronPython.Runtime.Importer.LoadFromSourceUnit(CodeContext
context, SourceUnit sourceCode, String name, String path)
   at IronPython.Runtime.Importer.LoadModuleFromSource(CodeContext
context, String name, String path)
   at IronPython.Runtime.Importer.LoadFromDisk(CodeContext context,
String name, String fullName, String str)
   at IronPython.Runtime.Importer.ImportFromPathHook(CodeContext
context, String name, String fullName, List path, Func`5
defaultLoader)
   at IronPython.Runtime.Importer.ImportFromPath(CodeContext context,
String name, String fullName, List path)
   at IronPython.Runtime.Importer.ImportNestedModule(CodeContext
context, Scope scope, String name, List path)
   at IronPython.Runtime.Importer.ImportModuleFrom(CodeContext
context, Object from, String name)
   at IronPython.Runtime.Importer.ImportModule(CodeContext context,
Object globals, String modName, Boolean bottom, Int32 level)
   at IronPython.Runtime.Builtin.__import__(CodeContext context,
String name, Object globals, Object locals, Object fromlist, Int32
level)
   at IronPython.Runtime.Builtin.__import__(CodeContext context,
String name, Object globals, Object locals, Object fromlist)
   at IronPython.Runtime.Builtin.__import__(CodeContext context, String name)
   at _stub_$176##142(Closure , CallSite , CodeContext , Object , Object )
   at S$5.load_module$45(Object module)
   at _stub_$170##136(Closure , CallSite , CodeContext , Object , Object )
   at S$5.worker$48(Closure )
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to