Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > OverflowError in RLock.acquire()

Thread Tools

OverflowError in RLock.acquire()

David Roberts
Posts: n/a

I'm trying to port a Python application to Windows, and I'm getting
the following error (which did not occur when running on Linux):

Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Python26\lib\", line 525, in __bootstrap_inner
File "C:\Documents and Settings\David\My
Documents\pyzui\pyzui\", line 97, in run
self.__tilecache[tile_id] = Tile(tile)
File "C:\Documents and Settings\David\My
Documents\pyzui\pyzui\", line 165, in __setitem__
with self.__lock:
File "C:\Python26\lib\", line 115, in acquire
me = current_thread()
File "C:\Python26\lib\", line 803, in currentThread
return _active[_get_ident()]
OverflowError: can't convert negative value to unsigned long

Where __lock is an RLock object.

The error only occurs for a single class (which is derived from the
TileProvider class in, which in turn is derived from
threading.Thread), which would lead me to believe that there's an
error in my code, but the traceback doesn't help much, and I haven't
been able to find any similar problems with google.

Any help would be appreciated.

David Roberts
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OverflowError: math range error... Sheldon Python 4 06-23-2006 07:40 AM
array problems.. OverflowError Python 1 06-08-2005 05:49 PM
overflowerror!! Python 3 05-26-2005 11:13 PM
bogus OverflowError: python bug? Luke Python 3 06-11-2004 10:04 AM
OverflowError in pyPgSQL when accessing tables with many rows Paolo Alexis Falcone Python 3 06-29-2003 12:32 AM