Re: crasher in SVN - Facebook module





2008/10/14 James Utter <james utter gmail com>
Hi,

I'm having a trouble getting conduit to work from SVN due to a crasher
in the facebook module.

Hi,

Apologies for taking so long to reply.
 


(Aside) I was playing around with conduit to sync my f-spot photos to
facebook, when I noticed that conduit doesn't rotate photos
automatically (according to EXIF data) when they are uploaded, so I have
started work on a small patch to do this (based on the patch for bug
#549861 [EXIF headers are lost when syncing resized pictures]
http://bugzilla.gnome.org/show_bug.cgi?id=549861 ). Unfortunately this
is getting in the way.

That sounds like a good idea. 



After closing the "login page" window, conduit crashes (every time).

What do you mean by crashes. If the whole application crashes, i.e. segfaults, then this is likely due to a problem in gtkmozembed, and I would recommend using python-webkit instead. This has become the default in trunk, and in Ubuntu, IIRC.

See BROWSER_IMPL in conduit/__init__.py and conduit/defs.py.in

However looking at your traceback I see that the problem seems to be in my use of the facebook API. I will have a look into this tonight. I have created a bug on bugzilla about this issue. Please add any discussion to that bug.

http://bugzilla.gnome.org/show_bug.cgi?id=556743

Thanks

John

 


Here is a traceback I get when I try to 'Refresh' the facebook sink, but
close the window instead of entering username and password:

[Web                 ][INFO   ] Logging in using browser: gtkmozembed
(thread: 1115937104) (Web.py:162)
[Web                 ][DEBUG  ] Created login window (thread:
1115937104) (Web.py:30)
[Web                 ][DEBUG  ] Wait for login (thread: 1115937104)
(Web.py:133)
[Web                 ][DEBUG  ] Create page:
http://www.facebook.com/login.php?canvas=1&api_key=6ce1868c3292471c022c771c0d4d51ed&auth_token=691be072a6cab15e29278ff4e9457a24&v=1.0 (thread: 140316873484000) (Web.py:63)
location: /usr/lib/xulrunner-1.9/libxpcom.so
before 3
[WebBrowser          ][INFO   ] Configuring Mozilla profile dir
(WebBrowserMozilla.py:23)
[Web                 ][DEBUG  ] Delete page (thread: 140316873484000)
(Web.py:44)
[Web                 ][DEBUG  ] Finished login (thread: 1115937104)
(Web.py:146)
[modules.Facebook    ][INFO   ] Trying Login (FacebookModule.py:110)
[Syncronization      ][CRITICAL] UNKNOWN REFRESH ERROR: Wrapper:
Facebook sink (UID: FacebookSink-)
Traceback (most recent call last):
 File "/home/james/conduit/conduit/Synchronization.py", line 828, in
run
   self.dataproviderWrapper.module.refresh()
 File
"/home/james/conduit/conduit/modules/FacebookModule/FacebookModule.py",
line 177, in refresh
   self._login()
 File
"/home/james/conduit/conduit/modules/FacebookModule/FacebookModule.py",
line 102, in _login
   sleep_time=45,              #long sleep time to give time to login
if using system browser
 File "/home/james/conduit/conduit/Web.py", line 181, in __init__
   login.wait_for_login(name, url, **kwargs)
 File "/home/james/conduit/conduit/Web.py", line 150, in wait_for_login
   if testFunc != None and testFunc():
 File
"/home/james/conduit/conduit/modules/FacebookModule/FacebookModule.py",
line 111, in _try_login
   rsp = self.fapi.auth.getSession()
 File
"/home/james/conduit/conduit/modules/FacebookModule/pyfacebook/__init__.py", line 474, in getSession
   result = self._client('%s.getSession' % self._name, args)
 File
"/home/james/conduit/conduit/modules/FacebookModule/pyfacebook/__init__.py", line 803, in __call__
   return self._parse_response(response, method)
 File
"/home/james/conduit/conduit/modules/FacebookModule/pyfacebook/__init__.py", line 777, in _parse_response
   self._check_error(result)
 File
"/home/james/conduit/conduit/modules/FacebookModule/pyfacebook/__init__.py", line 732, in _check_error
   raise FacebookError(response['error_code'], response['error_msg'],
response['request_args'])
FacebookError: Error 100: Invalid parameter
 (Synchronization.py:837)
[Syncronization      ][WARNING] Sync Aborted (Synchronization.py:842)
[Syncronization      ][DEBUG  ] Deleting worker:
<RefreshDataProviderWorker(Wrapper: Facebook sink (UID: FacebookSink-),
stopped)> (Synchronization.py:86)
/usr/lib/bug-buddy/conduit.real: No such file or directory.


If I enter username + password, I don't get any errors on the command
line, but conduit still crashes. I am not sure how to debug it, since it
runs in a thread - how can I do something like a pdb.set_trace()?


Thanks in advance,

James Utter

_______________________________________________
Conduit-list mailing list
Conduit-list gnome org
http://mail.gnome.org/mailman/listinfo/conduit-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]