Note that there are some explanatory texts on larger screens.

plurals
  1. POCould somebody explain this error to me?
    primarykey
    data
    text
    <p>I just got the following error and I have no idea what to make of it.</p> <pre><code>Unhandled exception in thread started by &lt;bound method Timer.__bootstrap of &lt;Timer(Thread-3, stopped -1234564240)&gt;&gt; Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 525, in __bootstrap self.__bootstrap_inner() File "/usr/lib/python2.7/threading.py", line 565, in __bootstrap_inner (self.name, _format_exc())) File "/usr/lib/python2.7/traceback.py", line 241, in format_exc return ''.join(format_exception(etype, value, tb, limit)) File "/usr/lib/python2.7/traceback.py", line 141, in format_exception list = list + format_tb(tb, limit) File "/usr/lib/python2.7/traceback.py", line 76, in format_tb return format_list(extract_tb(tb, limit)) File "/usr/lib/python2.7/traceback.py", line 101, in extract_tb line = linecache.getline(filename, lineno, f.f_globals) File "/usr/lib/python2.7/linecache.py", line 14, in getline lines = getlines(filename, module_globals) File "/usr/lib/python2.7/linecache.py", line 40, in getlines return updatecache(filename, module_globals) File "/usr/lib/python2.7/linecache.py", line 133, in updatecache lines = fp.readlines() MemoryError </code></pre> <p>Relevant code (although I'm not sure if it's actually relevant - it's just the only part of my code that is in any way mentioned by the exception):</p> <pre><code>class Timer(threading.Thread): def __init__(self, interval, callback, limit=0, args=[], kwargs={}): threading.Thread.__init__(self) self.interval = interval / 1000.0 self.callback = callback self.limit = limit self.args = args self.kwargs = kwargs self.iterations = 0 self._stop = threading.Event() def restart(self): self.iterations = 0 self._stop.clear() threading.Thread.__init__(self) self.start() def run(self): while not self._stop.wait(self.interval): self.callback(*self.args, **self.kwargs) self.iterations += 1 if self.limit &gt; 0 and self.iterations &gt;= self.limit: break def stop(self): self._stop.set() def stopped(self): return self._stop.isSet() </code></pre> <p>I think it was around this time that the server on which I was running the code was sort of falling apart - was this just a symptom, or was it indicative of problems with my code somewhere else? Mostly, though, I just want to know what the hell this means, I can probably figure out the rest.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload