beeware / beeware/bugjar

When running with twisted stopping the reactor makes bugjar shutdown unhappy

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
256
Forks
35
PR merge metrics
No merged PRs in 30d

Description

When twisted does a reactor.stop it presumably does something that kills the socket that bugjar is using. When you try to exit bugjar it complains (traceback and code to repro below)

I haven't delved deeper because this looks like a trivial fix. If you want, I can though :)

Tool is looking great mate! Definitely going to be helping any way I can!

``` python
from twisted.internet.task import react
from twisted.internet.defer import succeed

def main(reactor):
return succeed(None)

if __name__ == '__main__':
react(main)
```

```
System exit
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1413, in __call__
return self.func(*args)
File "/home/dpn/.virtualenvs/musicdata/local/lib/python2.7/site-packages/bugjar/view.py", line 346, in cmd_quit
self.debugger.stop()
File "/home/dpn/.virtualenvs/musicdata/local/lib/python2.7/site-packages/bugjar/connection.py", line 100, in stop
self.socket.shutdown(socket.SHUT_WR)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 107] Transport endpoint is not connected

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.