[Ironpython-users] abc.py 0.12% of time errors with "SystemError: Handle is not initialized."

Slide slide.o.mix at gmail.com
Tue Nov 25 03:10:06 CET 2014


If you are running with ipy.exe, can you add -X:ShowClrExceptions
-X:ExceptionDetail to your command line before posting the stacktrace?


On Mon Nov 24 2014 at 6:54:12 PM Thinh Pham
<tpham12345 at yahoo.com.dmarc.invalid> wrote:

> 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.
>
> 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.
>
> Thanks,
> Thinh
>
>
> > On Nov 24, 2014, at 5:25 PM, John DiMatteo <jdimatteo at gmail.com> wrote:
> >
> > 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:
> >
> > import ConfigParser
> > _cfg = ConfigParser.SafeConfigParser(allow_no_value=True) # line 8 of
> Foo.py
> >
> > Here is the traceback:
> >
> > Traceback (most recent call last):
> >   File "MyScriptWithTheNameChanged.py", line 55, in <module>
> >   File "d:\MyChangedPath\Bar.py", line 5, in <module>
> >   File "d:\MyChangedPath\Foo.py", line 8, in <module>
> >   File "c:\Program Files (x86)\IronPython 2.7\Lib\ConfigParser.py", line
> 228, in __init__
> >   File "c:\Program Files (x86)\IronPython 2.7\Lib\collections.py", line
> 51, in __init__
> >   File "c:\Program Files (x86)\IronPython 2.7\Lib\abc.py", line 151, in
> __subclasscheck__
> >   File "c:\Program Files (x86)\IronPython 2.7\Lib\_weakrefset.py", line
> 73, in __contains__
> > SystemError: Handle is not initialized.
> >
> > 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).
> >
> > 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.
> >
> > 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).
> > _______________________________________________
> > Ironpython-users mailing list
> > Ironpython-users at python.org
> > https://mail.python.org/mailman/listinfo/ironpython-users
>
> _______________________________________________
> Ironpython-users mailing list
> Ironpython-users at python.org
> https://mail.python.org/mailman/listinfo/ironpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20141125/2d0a3941/attachment.html>


More information about the Ironpython-users mailing list