<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m not using ipy.exe but creating the engine programatically. But i’ll use those flags in the setup object now and send the stacktrace when the exception happened again.<div class=""><br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 24, 2014, at 8:10 PM, Slide <<a href="mailto:slide.o.mix@gmail.com" class="">slide.o.mix@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="line-height:19.7999992370605px" class=""><div class="F3hlO">If you are running with ipy.exe, can you add <span style="color:rgb(37,51,64);font-family:monospace;font-size:11px;line-height:19.0176963806152px" class="">-X:ShowClrExceptions -X:ExceptionDetail to your command line before posting the stacktrace?</span></div><div class=""><span style="color:rgb(37,51,64);font-family:monospace;font-size:11px;line-height:19.0176963806152px" class=""><br class=""></span></div></div><br class=""><div class="gmail_quote">On Mon Nov 24 2014 at 6:54:12 PM Thinh Pham <<a href="mailto:tpham12345@yahoo.com.dmarc.invalid" class="">tpham12345@yahoo.com.dmarc.invalid</a>> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I can confirm that this exception happened to me as well. Cannot reproduce it on any consistent basis. The application will run fine one day without any problem and then something happens the next day to cause the exception. There is no way to recover from the exception except to shut it down and start it again.<br class="">
<br class="">
The library that i use and that causes the exception is “Mako Templates” and it uses _weakrefset internally to cache templates. If anyone is interested i can send a stacktrace the next time it happened.<br class="">
<br class="">
Thanks,<br class="">
Thinh<br class="">
<br class="">
<br class="">
> On Nov 24, 2014, at 5:25 PM, John DiMatteo <<a href="mailto:jdimatteo@gmail.com" target="_blank" class="">jdimatteo@gmail.com</a>> wrote:<br class="">
><br class="">
> I ran a script about 2,500 times last weekend and got the non-reproducible exception "SystemError: Handle is not initialized" 3 times while constructing a ConfigParser.SafeConfigParser like so:<br class="">
><br class="">
> import ConfigParser<br class="">
> _cfg = ConfigParser.SafeConfigParser(<u class=""></u>allow_no_value=True) # line 8 of Foo.py<br class="">
><br class="">
> Here is the traceback:<br class="">
><br class="">
> Traceback (most recent call last):<br class="">
>   File "MyScriptWithTheNameChanged.<u class=""></u>py", line 55, in <module><br class="">
>   File "d:\MyChangedPath\Bar.py", line 5, in <module><br class="">
>   File "d:\MyChangedPath\Foo.py", line 8, in <module><br class="">
>   File "c:\Program Files (x86)\IronPython 2.7\Lib\ConfigParser.py", line 228, in __init__<br class="">
>   File "c:\Program Files (x86)\IronPython 2.7\Lib\collections.py", line 51, in __init__<br class="">
>   File "c:\Program Files (x86)\IronPython 2.7\Lib\abc.py", line 151, in __subclasscheck__<br class="">
>   File "c:\Program Files (x86)\IronPython 2.7\Lib\_weakrefset.py", line 73, in __contains__<br class="">
> SystemError: Handle is not initialized.<br class="">
><br class="">
> I cc'ed Vladimir since he posted a similar message on April 1st 2014 (but I couldn't figure out how to respond since I joined the list after that date).<br class="">
><br class="">
> This is troubling since it seems like _weakrefset.py is a critical part of IronPython and has a non-reproducible bug that randomly crashes applications using it 0.12% of the time.<br class="">
><br class="">
> Please let me know if I can provide any other useful information.  I didn't find anything in my Event Viewer for the times when this exception was logged.  Unfortunately I can't reproduce this (but I didn't try running the script another 2,500 times).<br class="">
> ______________________________<u class=""></u>_________________<br class="">
> Ironpython-users mailing list<br class="">
> <a href="mailto:Ironpython-users@python.org" target="_blank" class="">Ironpython-users@python.org</a><br class="">
> <a href="https://mail.python.org/mailman/listinfo/ironpython-users" target="_blank" class="">https://mail.python.org/<u class=""></u>mailman/listinfo/ironpython-<u class=""></u>users</a><br class="">
<br class="">
______________________________<u class=""></u>_________________<br class="">
Ironpython-users mailing list<br class="">
<a href="mailto:Ironpython-users@python.org" target="_blank" class="">Ironpython-users@python.org</a><br class="">
<a href="https://mail.python.org/mailman/listinfo/ironpython-users" target="_blank" class="">https://mail.python.org/<u class=""></u>mailman/listinfo/ironpython-<u class=""></u>users</a><br class="">
</blockquote></div>
_______________________________________________<br class="">Ironpython-users mailing list<br class=""><a href="mailto:Ironpython-users@python.org" class="">Ironpython-users@python.org</a><br class="">https://mail.python.org/mailman/listinfo/ironpython-users<br class=""></div></blockquote></div><br class=""></div></div></body></html>