-
Notifications
You must be signed in to change notification settings - Fork 4
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
bccc crashes after a few seconds #9
Comments
Interesting. Apparently the error is in the code that converts server time to your local timezone. |
09:36:49 [zbrown] ~/Desktop/bccc/bccc/bccc$ date +%z The bccc UI was only active for a couple of seconds, and since I've On Wed, May 30, 2012 at 9:10 AM, Thomas Jost
Zack Brown |
The default is to browse your personal channel. If you tell me your |
jid = zackrobat@buddycloud.org |
Your channel is private. Could you please accept my request to subscribe to it? |
I have done so. |
Hmm, I can't reproduce this issue, I can display your channel without any trouble. So I'll need some help :) Could you please:
(The best would be to set the log level to "debug", remove your password from the log and mail it to me at schnouki@schnouki.net) |
OK. Logging was already enabled at the "warning" level, so I left it as it was. I replaced the _isdst with the code from the link you included. I rebuilt and reinstalled bccc I ran bccc. It lasted a few seconds longer this time, then crashed with the following message: "Fatal Python error. Cannot recover from stack overflow. Aborted (core dumped)" I looked in ~/.bccc.log and found it was empty. I changed the logging level to 'debug' and ran bccc again. I got the same error at crashtime. This time when I looked in ~/.bccc.log I got a metric ton of output, but none of it included "OverflowError" anywhere. Here are the last several lines of the log file: 2012-05-31 06:00:34,330 sleekxmpp.xmlstream.xmlstream:DEBUG RECV: |
Wow, a stack overflow in the CPython interpreter caused by pure Python code -- I don't think I had managed to do that yet. Here's a new version of |
OK, I used your new version of _isdst, and got this output from a run: 10:45:34 [zbrown] ~/Desktop/bccc/bccc$ bccc Traceback (most recent call last): This time the debugging output in the log file did include an overflow line: 2012-05-31 10:46:48,400 root:ERROR OverflowError: (1900, 1, 1, 0, 0, 0, 0, 0, 0) -- -1 day, 20:00:00 -- -1 day, 19:00:00 I've sent the full log file to you via email. |
Ok, I've been able to reproduce this bug. It's i686-specific (I had to set up a 32bit chroot): on x86_64, I'll push a workaround later; a cleaner fix would probably require adding a new dependency (pytz), which I would like to avoid. |
dateutil.tz has a slightly better version of LocalTimezone called tzlocal. Let's use this one. Probably a better fix for #9 :)
I'm using Ubuntu
08:24:39 [zbrown] ~/Desktop/bccc/bccc/bccc$ uname -a
Linux zbrown-desktop 3.0.0-12-generic-pae #20-Ubuntu SMP Fri Oct 7 16:37:17 UTC 2011 i686 i686 i386 GNU/Linux
08:30:09 [zbrown] ~/Desktop/bccc/bccc/bccc$
I followed the instructions on https://github.com/Schnouki/bccc to build and install bccc. But when I run it, I get the following error:
06:34:23 [zbrown] ~/Desktop/bccc/bccc/bccc$ bccc
Traceback (most recent call last):
File "/usr/local/bin/bccc", line 5, in
pkg_resources.run_script('bccc==0.0.1', 'bccc')
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1236, in run_script
exec(compile(open(script_filename).read(), script_filename, 'exec'), namespace, namespace)
File "/usr/local/lib/python3.2/dist-packages/bccc-0.0.1-py3.2.egg/EGG-INFO/scripts/bccc", line 70, in
ui.run()
File "/usr/local/lib/python3.2/dist-packages/bccc-0.0.1-py3.2.egg/bccc/ui/ui.py", line 101, in run
self.loop.run()
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-i686.egg/urwid/main_loop.py", line 274, in run
self.screen.run_wrapper(self._run)
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-i686.egg/urwid/raw_display.py", line 237, in run_wrapper
return fn()
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-i686.egg/urwid/main_loop.py", line 307, in _run
self.event_loop.run()
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-i686.egg/urwid/main_loop.py", line 682, in run
self._loop()
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-i686.egg/urwid/main_loop.py", line 720, in _loop
self._watch_filesfd
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-i686.egg/urwid/main_loop.py", line 187, in cb
rval = callback(data)
File "/usr/local/lib/python3.2/dist-packages/bccc-0.0.1-py3.2.egg/bccc/ui/ui.py", line 135, in _handle_callback
func(_args, *_kwargs)
File "/usr/local/lib/python3.2/dist-packages/bccc-0.0.1-py3.2.egg/bccc/ui/sidebar.py", line 76, in pubsub_posts_callback
if atom_pub > self.most_recent_activity:
File "/usr/local/lib/python3.2/dist-packages/bccc-0.0.1-py3.2.egg/bccc/ui/util.py", line 33, in utcoffset
if self._isdst(dt):
File "/usr/local/lib/python3.2/dist-packages/bccc-0.0.1-py3.2.egg/bccc/ui/util.py", line 51, in _isdst
stamp = time.mktime(tt)
OverflowError: mktime argument out of range
08:24:32 [zbrown] ~/Desktop/bccc/bccc/bccc$
The text was updated successfully, but these errors were encountered: