Hi Jeff,<div><br></div><div>One question: I'm looking at the codeplex SVN repository (since I assume this is where 2.6.2 code still resides). What exactly do I need to check out in order to be able to build it? IronPython_2_6 directory or the whole repository? There seems to be a lot of stuff in the IronPython_Main dir.</div>
<div><br></div><div>Thanks,</div><div>Igor <br><br><div class="gmail_quote">On Mon, Aug 8, 2011 at 7:17 PM, Igor Brejc <span dir="ltr"><<a href="mailto:igor.brejc@gmail.com">igor.brejc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Jeff,<div><br></div><div>Thanks for responding. I'll update the SO question if/when someone (I guess it will probably have to be me) figures out what the problem is.</div>
<div><br></div><div>One update: we did some more debugging. The user installed IronPython 2.6.2 msi (.NET 2.0) and ipy64.exe breaks down when run. I guess this excludes any of my code or the fact that IP was used outside of GAC.</div>
<div><br></div><div>What's strange is that sometimes it's AccessViolationException and sometimes NullReferenceException (but the failing method is the same).</div><div><br></div><div>So I guess I'll need to build a custom IP build with some log4net logging of that method, since live debugging is not a realistic option here.</div>
<div><br></div><div>Thanks for your help,</div><div>Igor<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Aug 8, 2011 at 6:12 PM, Jeff Hardy <span dir="ltr"><<a href="mailto:jdhardy@gmail.com" target="_blank">jdhardy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Igor,<br>
<br>
The exception is occurring somewhere in IronPython's COM interop code,<br>
but I'm not exactly sure why - the code where the exception occurred<br>
pulls COM types out of interop assemblies. You'll have to (somehow)<br>
figure out what assembly is getting loaded in the AppDomain when the<br>
exception happens, which will probably require live debugging or a<br>
custom IronPython build.<br>
<br>
I'm not sure if it's a bug in IronPython, or if there's a squirrelly<br>
COM object on the user's machine that causes IronPython to break, but<br>
my guess is the latter.<br>
<br>
- Jeff<br>
<br>
P.S. I saw your SO question before this, but feel free to keep the<br>
discussion where ever you prefer.<br>
<div><div></div><div><br>
On Sat, Aug 6, 2011 at 11:12 PM, Igor Brejc <<a href="mailto:igor.brejc@gmail.com" target="_blank">igor.brejc@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm developing a cartography application (<a href="http://maperitive.net" target="_blank">http://maperitive.net</a>) in C#<br>
> and I plan to use IronPython as a scripting extension of the<br>
> application. I've been successfully using IronPython for several<br>
> months and most users don't have any issues with it, but a small<br>
> percentage of users is having problems.<br>
><br>
> With the help from one of them I managed to dig out the exception<br>
> stack trace. The exception occurs while calling the<br>
> Python.CreateEngine() method:<br>
><br>
> System.Reflection.TargetInvocationException: Exception has been thrown<br>
> by the target of an invocation.<br>
> ---> System.Reflection.TargetInvocationException:<br>
> Failed to load language 'IronPython 2.6.2': Attempted to read or write<br>
> protected memory. This is often an indication that other memory is<br>
> corrupt.<br>
> ---> System.AccessViolationException: Attempted to read or write<br>
> protected memory. This is often an indication that other memory is<br>
> corrupt.<br>
> at Microsoft.Scripting.Actions.TopNamespaceTracker.PublishComTypes(Assembly<br>
> interopAssembly)<br>
> at IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object<br>
> sender, AssemblyLoadedEventArgs e)<br>
> at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext<br>
> pythonContext, CodeContext context)<br>
> at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager,<br>
> IDictionary`2 options)<br>
> --- End of inner exception stack trace ---<br>
> at Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager<br>
> domainManager, Boolean& alreadyLoaded)<br>
> at Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager<br>
> manager, LanguageConfiguration config)<br>
> at Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager<br>
> manager, AssemblyQualifiedTypeName providerName, LanguageContext&<br>
> language)<br>
> at Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String<br>
> providerAssemblyQualifiedTypeName)<br>
> at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String<br>
> assemblyQualifiedTypeName)<br>
> at IronPython.Hosting.Python.GetEngine(ScriptRuntime runtime)<br>
><br>
> I couldn't find anything on Google that would be related to this. Some<br>
> info about the user's environment:<br>
><br>
> - Win7 64bit<br>
> - Using .NET 2.0-3.5 (not 4.0)<br>
> - IronPython is not installed in GAC, the app uses assemblies locally<br>
> on the disk (v 2.6.2)<br>
> - The user runs the application as an ordinary user (not administrator)<br>
><br>
> I use Win7 64bit myself, but I didn't have any such problems and I<br>
> cannot reproduce this problem on any of my machines (Win7, Ubuntu).<br>
><br>
> Thanks for any help,<br>
> Igor Brejc<br>
</div></div>> _______________________________________________<br>
> Ironpython-users mailing list<br>
> <a href="mailto:Ironpython-users@python.org" target="_blank">Ironpython-users@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">http://mail.python.org/mailman/listinfo/ironpython-users</a><br>
><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>