On 22 June 2010 19:02, Klaus 'mrmoku' Kurzmann <[email protected]> wrote:
> Am Dienstag, 22. Juni 2010, 17:04:50 schrieb Helge Hafting:
>> On 14. juni 2010 21:01, David Kozub wrote:
>> > On Mon, 14 Jun 2010, Tom Hacohen wrote:
>> >> Date: Mon, 14 Jun 2010 18:28:20 +0300
>> >> From: Tom Hacohen <[email protected]>
>> >> To: Helge Hafting <[email protected]>
>> >> Cc: SHR-devel <[email protected]>
>> >> Subject: Re: [Shr-Devel] SHR-U oddity: "failed to add contact" but I
>> >> didn't
>> >> try!
>> >>
>> >> What version? I guess it has something to do with the new error
>> >> handling patches.
>>
>> It has been like this for some time.
>> I upgraded the day before posting this - and the problem was there still.
>>
>> > Sounds similar to this:
>> >
>> > http://lists.shr-project.org/pipermail/shr-user/2010-June/005432.html
>> >
>> > The issue was not resolved. :-/ The meat of the issue is here:
>> >
>> > http://lists.shr-project.org/pipermail/shr-user/2010-June/005442.html
>> >
>> > ("CRITICAL: error_message_ok_cb" was a stray test-debug-msg, meanwhile
>> > removed - so ignore that particular msg.)
>> >
>> > @Helge Hafting: Could you please get some logs from the event? Look into
>> > /var/log/phoneuid.log.
>>
>> Ok. I called my office phone (from the contact list). Picked up the
>> office phone and hung up immediately.
>>
>> On the screen:
>>
>> Failed adding contact.
> This message is very much confusing - it should better read 'Failed adding a
> contact to the list' :-) Why this happens during an outgoing call? No idea :/
>
>> (0) Traceback (most recent call last) File
>> "/usr/lib/python2.6/site-packages/dbus/service.py",
>> line 649, in _message_cb (candidate_method,
>> parent_method)= _method_lookup(self,
>> method_name, interface_name) File
>> "/usr/lib/python2.6/site-packages/dbus/service.py",
>> line 244, in _method_lookup raise
>> UnknownMethodException('%s is not a valid
>> method of interface %s'% (method_name,
>> dbus_interface)) UnknownMethodException:
>> Unknown method: GetContent is not a valid
>> method of interface
>> org.freesmartphone.PIM.Contact
>>
>> The error screen itself has a bad user interface - I need to sidescroll
>> as well as scroll down in order to read it. Having to sidescroll text is
>> bad.
>>
>>
>> In the logfile:
>>
>> 2010.06.22 16:51:22.347943 [libphone-ui] MESSAGE: 1. +4792438656
>> 2010.06.22 16:51:47.986982 [libphone-ui] MESSAGE: Inititating a
>> call to +4773559544
>>
>> 2010.06.22 16:51:55.349941 [libphone-ui-shr] WARNING: Failed adding a
>> contact: (0) Traceback (most recent call last):
>> File "/usr/lib/python2.6/site-packages/dbus/service.py", line 649, in
>> _message_cb
>> (candidate_method, parent_method) = _method_lookup(self,
>> method_name, interface_name)
>> File "/usr/lib/python2.6/site-packages/dbus/service.py", line 244, in
>> _method_lookup
>> raise UnknownMethodException('%s is not a valid method of interface
>> %s' % (method_name, dbus_interface))
>> UnknownMethodException: org.freedesktop.DBus.Error.UnknownMethod:
>> Unknown method: GetContent is not a valid method of interface
>> org.freesmartphone.PIM.Contact
>>
>>
>> [ Line breaking added by thunderbird. :-( ]
>>
>> As we see, there was a call. And for some odd reason, the code tried to
>> add a contact and theb failed to do so. Or maybe something else went
>> wrong, and it is merely the text in the WARNING that is incorrect?
> This message comes from org.freesmartphone.PIM.Contact.GetContent failing...
> Question is why does it fail?
When you lookup the method with mdbus2, you see:
[METHOD] org.freesmartphone.PIM.Contact.GetContent() -> ( a{sv}:none )
When you try to call it, you get:
# mdbus2 -s org.freesmartphone.opimd /org/freesmartphone/PIM/Contacts
org.freesmartphone.PIM.Contact.GetContent
org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/dbus/service.py", line 702,
in _message_cb
retval = candidate_method(self, *args, **keywords)
File
"/usr/lib/python2.6/site-packages/framework/subsystems/opimd/pimd_contacts.py",
line 288, in GetContent
num_id = int(rel_path[1:])
ValueError: invalid literal for int() with base 10: ''
Finally, when you look into pimd_contacts.py, you see that the method
needs a parameter. Something is out of sync there.
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel