Ticket #127 (new defect)

Opened 8 months ago

Last modified 1 week ago

libsyncml goes into infinite loop trying to sync from Sony-Ericsson P910i

Reported by: TBBle Assigned to: dgollub
Priority: normal Component: libsyncml
Version: 0.4.6 Severity: normal
Keywords: p910 Cc:

Description (Last modified by felixmoeller)

Trying to sync my SE P910i phone using syncml-http-server (same problem also observed when using msynctool with the syncml-http-server plugin from opensync) the process gets into an infinite loop.

Phone firmware is R2A17 (old, but the latest one supplied by my service provider. >_<

The phone shows 'Connecting' the whole time, until the process is interrupted

The command I'm running is:

syncml-http-server --port 8080 --sync text/x-vcard Contacts --sync text/x-vcalendar Calendar --sync text/plain Notes --sync text/x-vMessage Email --dumpinfo  --multi

This is a copy of libsyncml built from source:/trunk@317 without any particular build options set. It also happens with 0.4.5 (Debian version 0.4.5-1) but with less information in the trace log.

I've attached the tracelogs, and a packet capture of the communications, as well as the output of the program.

Attachments

p910.pcap (4.4 kB) - added by TBBle on 01/04/08 01:19:45.
A tcpdump of the syncml http session
Thread46967473427296.log (22.9 kB) - added by TBBle on 01/04/08 01:27:02.
Main thread trace
Thread1082132816.log (63.1 kB) - added by TBBle on 01/04/08 01:31:21.
Worker thread trace - endlessly repeating lines trimmed

Change History

01/04/08 01:19:45 changed by TBBle

  • attachment p910.pcap added.

A tcpdump of the syncml http session

01/04/08 01:27:02 changed by TBBle

  • attachment Thread46967473427296.log added.

Main thread trace

01/04/08 01:28:25 changed by TBBle

It's refusing to add the output of the process as an attachment, so here it is:

Just received a new session with ID 797919920
Received an Alert for the DS Server at Calendar: Type: 201, Last (null), Next 20080104T000404Z
Slowsyncing
Received the DevInf?
Session 797919920 reported final. flushing

01/04/08 01:31:21 changed by TBBle

  • attachment Thread1082132816.log added.

Worker thread trace - endlessly repeating lines trimmed

01/04/08 01:51:37 changed by TBBle

Hmm. Just noticed the
<--- ERROR --- _smlXmlDevInfDataStoreAssemble: Missing rx-pref
in the log, and thought I'd better highlight it here

01/07/08 00:30:10 changed by TBBle

dgollub suggested via IRC:
"i guess without those parameters it would work: --sync text/plain Notes --sync text/x-vMessage Email"

And indeed, it does work, with caveats.

Calendar-only sync fails with
"Didnt receive a reply for pending status (cmdID 5, msgID 2)"
although at this point it has already sent (I believe) all the Calendar entries, and the phone itself has cycled from Reading to Writing (sent 431 events) to Reading to Writing (remaining 238 events).

Contacts-only sync works the first time, but fails the second with time with
"Didnt receive a reply for pending status (cmdID 5, msgID 2)"
, although I have seen reports that failing to send contacts a second time is a known flaw in the phone software (I think the opensync.org phone compatibility list mentions this).

08/12/08 14:15:17 changed by felixmoeller

  • description changed.