New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on exit #156
Comments
is this with |
This seems to happen always, even with the default settings (happened before I wrote a config file). |
it looks like the unhandeled error is actually the |
could you post a debug log please? |
Sadly, alot -l debug.log -d debug doesn't create a debug.log file. I tried with all other debug levels as well, same result. Seems like logging doesn't work here. |
this is weird. I'm beginning to think there's something seriously broken with your python environment..
thanks, |
It's usually my home directory, so yes, my user does have write permissions, no one else has.
matches what my package management system says: python2 2.7.2 One possible cause: EDIT: So while the python shebang that assumes python2 might be a problem on arch, it doesn't appear to be the cause of this particular problem. Anyway, can you safely change all references to python2 or will this break debian? |
python2 and python3 seem to be arch specific. all other distis use /usr/bin/python to softlink to their prefered version. if sys.version from inside alot says 2.7 then 2.7 it is. but i'm totally baffled by you not being able to log at all |
You can check your logging module by running
or you could strace the python process running alot:
Well, thist was the moment I realized that alot fails to create logfiles on my system as well. I'm running debian wheezy by the way. Not sure what's happening, I tried stracing my alot process, then dropping into the python shell and reconfigure the logging by hand but nothing happens, no open, no write if I log something. Very strange indeed. |
I remember having some problems with logging before: Then as a result logging does not work as expected: |
In case it could help, here's my strace: https://gist.github.com/4af6e681ece81462465b |
i was just going to add my strace with working logging as a gist for comparison, but its too large (>500kb) to upload it :) |
Noticed something? Even your strace shows the "Unhandled error in Deferred" :) |
i forgot to comment on this yes: @murks: whats your urwid version? |
alot terminates for me too, but it shows the trace each time, which imho shouldn't be. So the difference is that the trace is shown on my system but not on yours? Should it be shown? I'm somewhat confused. urwid is from git, checkout from 20111212 |
@teythoon: i just tried to use your strace command to have a look if
yields lots of stuff on stdout, but never starts. Same thing for urwids palette_test.py |
Quoting Patrick Totzke (2011-12-17 20:24:53)
Hm, no. strace writes to stderr, you are redirecting stdout. But then
I've no idea. Justus |
apparently, it suffices to stop the twisted reactor when using TwistedEventLoop. issue #156
@teythoon doh! stupid me :) try branch |
I tried issue-156-exitmainloop and alot shuts down without throwing the error. I also generated a strace, no error there either. I consider this fixed, thanks :) There's still no log, I think this deserves its own issue. |
ok, i'll merge this into testing & master, thanks |
apparently, it suffices to stop the twisted reactor when using TwistedEventLoop. issue #156
This is what I see when I exit alot regularly (using d or q):
0: [search] for "tag:inbox AND NOT tag:killed" (55824 threads) total messages: 5646Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 449, in process_input
k = self._topmost_widget.keypress(self.screen_size, k)
File "/usr/lib/python2.7/site-packages/alot/ui.py", line 52, in keypress
self.ui.apply_command(cmd)
File "/usr/lib/python2.7/site-packages/alot/ui.py", line 454, in apply_command
cmd.apply(self)
File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/usr/lib/python2.7/site-packages/alot/commands/globals.py", line 41, in apply
ui.exit()
File "/usr/lib/python2.7/site-packages/alot/ui.py", line 193, in exit
raise urwid.ExitMainLoop()
urwid.main_loop.ExitMainLoop:
The text was updated successfully, but these errors were encountered: