Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

OverflowError in RLock.acquire()

 
 
David Roberts
Guest
Posts: n/a
 
      07-24-2009
Hi,

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\threading.py", line 525, in __bootstrap_inner
self.run()
File "C:\Documents and Settings\David\My
Documents\pyzui\pyzui\tileprovider.py", line 97, in run
self.__tilecache[tile_id] = Tile(tile)
File "C:\Documents and Settings\David\My
Documents\pyzui\pyzui\tilecache.py", line 165, in __setitem__
with self.__lock:
File "C:\Python26\lib\threading.py", line 115, in acquire
me = current_thread()
File "C:\Python26\lib\threading.py", 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 tileprovider.py, 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
http://da.vidr.cc/
 
Reply With Quote
 
 
 
Reply

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 ashtonn@gmail.com Python 1 06-08-2005 05:49 PM
overflowerror!! ashtonn@gmail.com 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



Advertisments