Qirky / Troop

Real-time Live Coding collaboration app
311 stars 37 forks source link

Freezing and goes back to old code #5

Closed Chovin closed 6 years ago

Chovin commented 7 years ago

An exception occurred when my buddy tried to highlight all the code and copy it. Not sure if that action actually had anything to do with it.

A reconnect from both parties was needed and code was reverted

Exception in Tkinter callback
Traceback (most recent call last):
  File "/Users/irdumb/Projects/LiveCoding/Troop/src/interface/textbox.py", line 116, in handle
    msg = self.queue.get_nowait()
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/queue.py", line 192, in get_nowait
    return self.get(block=False)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/queue.py", line 161, in get
    raise Empty
queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 1699, in __call__
    return self.func(*args)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 745, in callit
    func(*args)
  File "/Users/irdumb/Projects/LiveCoding/Troop/src/interface/textbox.py", line 330, in handle
    self.refreshPeerLabels()
  File "/Users/irdumb/Projects/LiveCoding/Troop/src/interface/textbox.py", line 340, in refreshPeerLabels
    for peer in self.peers.values():
RuntimeError: dictionary changed size during iteration
Quitting
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/irdumb/Projects/LiveCoding/Troop/src/receiver.py", line 81, in handle
    raise(e)
  File "/Users/irdumb/Projects/LiveCoding/Troop/src/receiver.py", line 69, in handle
    network_msg = self.reader.feed(self.sock.recv(self.bytes))
OSError: [Errno 9] Bad file descriptor
Chovin commented 7 years ago

scratch that, that traceback was from a previous Troop session I was looking at, my bad. I see no console log during this current issue