Comment 12 for bug 887861

Revision history for this message
Xu Zhen (xuzhen666) wrote :

I added some print statements in _buffer_loop() for the curl error 56 issue.

Polly 0.93.0 (pre-alpha 3.0)
Copyright (C) 2011 Marcelo Hashimoto
cache path: /home/***/.cache/polly
config path: /home/***/.config/polly
data home: /home/***/.local/share/polly
initializing... done
1st while loop
DEBUG: *** disconnected because of curl error 28
before self.buffer_thread.join()
for subdata in data:
break
2nd while loop
self.buffer_condition.acquire()
buffer_finished = self.buffer_finished
self.buffer_condition.release()
if buffer_finished:
break
after self.buffer_thread.join()
DEBUG: *** will reconnect in 0.25 seconds
1st while loop
1st while loop
for subdata in data:
break
2nd while loop
self.buffer_condition.acquire()
buffer_finished = self.buffer_finished
deque([([***, ***, ... , ***], 1321411242.826313)])
DEBUG: *** connected successfully
self.buffer_condition.release()
if buffer_finished:
2nd while loop
self.buffer_condition.acquire()
self.buffer_condition.wait()
for subdata in data:
break
2nd while loop
self.buffer_condition.acquire()
self.buffer_condition.wait()
buffer_finished = self.buffer_finished
deque([({u'favorited': False, u'in_reply_to_user_id': ***, ... , u'default_profile': True, u'is_translator': False}}, 1321411275.89721)])
self.buffer_condition.release()
if buffer_finished:
2nd while loop
self.buffer_condition.acquire()
self.buffer_condition.wait()
buffer_finished = self.buffer_finished
deque([({u'favorited': False, u'in_reply_to_user_id': ***, ... , u'default_profile': False, u'following': None}}, 1321411331.817188)])
Exception in thread Thread-54:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/dist-packages/polly/__init__.py", line 241, in run
    self.callback(*self.args)
  File "/usr/lib/python2.7/dist-packages/polly/twitter/realtime.py", line 437, in _buffer_loop
    del data[:]
TypeError: unhashable type

^CTraceback (most recent call last):
  File "/usr/bin/polly", line 332, in <module>
    Gtk.main()
KeyboardInterrupt