View Single Post
dwould's Avatar
Posts: 529 | Thanked: 262 times | Joined on Dec 2008 @ Eastleigh, Hampshire, UK
#397
Originally Posted by skr0 View Post
My issues have also been caused by the way I was using Witter and had it configured. I have set the time line to refresh every 5 mins (I did mean mins but typed secs) and Mention every 10, I also did an uninstall and reinstall.

Running from the terminal as requested:
After about 25 mins one Retweet and three other tweets appeared on Twitter.com none on timeline after doing a refresh, the timer was still spinning around.
I closed twitter.com to reduce the api hit.
After further 5 mins with the timer spinning I closed Witter

Xterminal did not capture it all but this is what I got:
<snip>
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/user/src/witter/fremantle/src/opt/witter/witter/refresh_thread.py", line 69, in _refresh
File "/opt/witter/witter.py", line 700, in getTweetsWrapper
self.activeAccount.getTweets(auto=autoval, older=get_older, get_count=more)
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 215, in getTweets
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 857, in set_pic_for_id
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 884, in set_pix
GError: Image file '/home/user/.witterPics/Twitter/20635230.jpg' contains no data
<snip>

GError: Couldn't recognise the image file format for file '/home/user/.witterPics/Twitter/122994639.jpg'

Ah ha! two interesting problems. the first is that one of the avatar images has either failed to download properly, leaving an empty file, and by the looks a corrupted file.
When witter tries to reload these from it's cache it dies, basically whenever a tweet from either of these to twitter ids shows up in your timeline it dies.
if you delete:
/home/user/.witterPics/Twitter/20635230.jpg
'/home/user/.witterPics/Twitter/122994639.jpg'
or perhaps just ot be safe, delete every image in that folder, then it should return to normal.

if it happens again I will presume something more sinister afoot. I will also see if I can code defensively against this possible error
__________________
----------
N900
http://danielwould.wordpress.com
Check out Witter, a twitter client for N900
http://danielwould.wordpress.com/witter

If Witter isn't working for you, eg crashes/doesn't start, gives errors etc etc. Please run it from x-term using:
run-standalone.sh python2.5 /opt/witter/witter.py

This will generate diagnostic output. Without this I cannot help you.