Gpilotd does not reply to all sync request

Bug #62310 reported by Olivier Blanc
4
Affects Status Importance Assigned to Milestone
gnome-pilot (Ubuntu)
Fix Released
Medium
Ubuntu PDA team

Bug Description

Here is the output :

LC_ALL=C gpilotd -d -d -d
gpilotd-Message: gnome-pilot 2.0.14 starting...
gpilotd-Message: compiled for pilot-link version 0.12.1
gpilotd-Message: compiled with [VFS] [USB] [IrDA] [Network]
gpilotd-Message: Activating CORBA server
gpilotd-Message: bonobo_activation_active_server_register = 0
gpilotd-Message: Watching Cradle (/dev/pilot)
gpilotd-Message: Found 4766, 0001
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0502, 0736
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 091e, 0004
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 115e, f100
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 082d, 0100
gpilotd-Message: Using net FALSE
gpilotd-Message: Found 082d, 0200
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 082d, 0300
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0c88, 0021
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0001
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0002
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0003
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0020
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0031
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0040
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0050
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0060
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0061
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0070
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0080
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 04e8, 8001
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 04e8, 6601
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 0038
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 0066
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 0095
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 009a
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 00c9
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 00da
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 00e9
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 0144
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 0169
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 12ef, 0100
gpilotd-Message: Using net TRUE
gpilotd-Message: setting PILOTRATE=115200

(gnome-pilot:15026): gpilotd-WARNING **: pi_accept_to returned -202: No such file or directory

(gnome-pilot:15026): gpilotd-WARNING **: pi_accept_to: timeout was 10 secs

Extracts fom dmesg :
[17185973.152000] usb 1-1.2: new full speed USB device using ohci_hcd and address 3
[17185973.280000] usb 1-1.2: configuration #1 chosen from 1 choice
[17185973.468000] usbcore: registered new driver usbserial
[17185973.468000] drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[17185973.468000] usbcore: registered new driver usbserial_generic
[17185973.468000] drivers/usb/serial/usb-serial.c: USB Serial Driver core
[17185973.476000] drivers/usb/serial/usb-serial.c: USB Serial support registered for Handspring Visor / Palm OS
[17185973.476000] drivers/usb/serial/usb-serial.c: USB Serial support registered for Sony Clie 3.5
[17185973.476000] drivers/usb/serial/usb-serial.c: USB Serial support registered for Sony Clie 5.0
[17185973.480000] visor 1-1.2:1.0: Handspring Visor / Palm OS converter detected
[17185973.480000] usb 1-1.2: Handspring Visor / Palm OS converter now attached to ttyUSB0
[17185973.480000] usb 1-1.2: Handspring Visor / Palm OS converter now attached to ttyUSB1
[17185973.484000] usbcore: registered new driver visor
[17185973.484000] drivers/usb/serial/visor.c: USB HandSpring Visor / Palm OS driver
[17186038.996000] usb 1-1.2: USB disconnect, address 3
[17186038.996000] visor ttyUSB0: Handspring Visor / Palm OS converter now disconnected from ttyUSB0
[17186038.996000] visor ttyUSB1: Handspring Visor / Palm OS converter now disconnected from ttyUSB1
[17186038.996000] visor 1-1.2:1.0: device disconnected

The next try, in the same gpilotd process works :

gpilotd-Message: setting PILOTRATE=115200
gpilotd-Message: Device Cradle has 0 events
gpilotd-Message: Instantiating 5 conduits...
...
gpilotd-Message: Synchronization ended
** Message: time_file: destroying time conduit

The next try gives :
gpilotd-Message: setting PILOTRATE=115200

(gnome-pilot:15026): gpilotd-WARNING **: pi_accept_to returned -202: No such file or directory

(gnome-pilot:15026): gpilotd-WARNING **: pi_accept_to: timeout was 10 secs

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report. Which PDA do you use with it?

Changed in gnome-pilot:
assignee: nobody → desktop-bugs
importance: Untriaged → Medium
status: Unconfirmed → Needs Info
Revision history for this message
Olivier Blanc (olivier-blanc) wrote :

It is a Palm Tungsten T3

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks. I forwarded the issue to the upstream bug tracker: http://bugzilla.gnome.org/show_bug.cgi?id=357762

Changed in gnome-pilot:
status: Needs Info → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Comment from the upstream developer:

ot sure what's causing this problem.

Here's one thing to test:
kill gpilotd (you may need to remove the pilot applet from the panel, and then
do 'killall gpilotd' from a terminal window).

Now try running pilot-xfer:
pilot-xfer -p /dev/pilot -l
(or /dev/ttyUSB0, or /dev/ttyUSB1, I'm not sure which is right for the T3)

Does pilot-xfer work reliably, or do you have the same problems as with
gnome-pilot? If it is just as unreliable, then I'd recommend bugging
the pilot-link people:
    http://www.pilot-link.org/mailman/listinfo/pilot-link-general
It's just possible that you're getting a regression with the new pilot-link
major version, 0.12.

Changed in gnome-pilot:
status: Confirmed → Needs Info
Revision history for this message
Olivier Blanc (olivier-blanc) wrote :

pilot-xfer seems to be reliable... I tried 10 times, and it worked the 10 times.

I made some more tests on Gpilotd.... it worked each time.
I upgraded to udev 093-0ubuntu16
and I guess that's what was causing the problem...

Revision history for this message
Daniel Holbach (dholbach) wrote :

So the new udev made it work?

Revision history for this message
Olivier Blanc (olivier-blanc) wrote :

yes. I'll keep an eye on it during future upgrade

Revision history for this message
Matt Davey (mcdavey) wrote :

I've seen this a few times, and what appears to be happening is that /dev/pilot starts pointing to the 'wrong' ttyUSB device. When this happens you'll see the "pi_accept_to returned -202" messages (-202 means 'timeout' in pilot-link speak).

If this is a problem for you, you have two options:
1. choose /dev/ttyUSB0 or /dev/ttyUSB1, as appropriate for your pda, instead of /dev/pilot.
2. If you're running pilot-link-0.12.x, migrate to libusb syncing instead of usbserial.

Changed in gnome-pilot:
assignee: desktop-bugs → ubuntu-pda
Revision history for this message
Olivier Blanc (olivier-blanc) wrote :

can be closed.
All is working fine now.

Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

Thanks for your feed back.

Changed in gnome-pilot:
status: Incomplete → Fix Released
Revision history for this message
Olivier Blanc (olivier-blanc) wrote :

It seems that the problem is back with version 2.0.15-2ubuntu3
running on Linux bibi2 2.6.27-2-generic #1 SMP Thu Aug 28 17:20:02 UTC 2008 i686 GNU/Linux (Intrepid)

Here is the output of gpilotd :

$ LC_ALL=C /usr/bin/gpilotd -d -d -d
gpilotd-Message: gnome-pilot 2.0.15 starting...
gpilotd-Message: compiled for pilot-link version 0.12.3
gpilotd-Message: compiled with [VFS] [USB] [IrDA] [Network]
gpilotd-Message: Activating CORBA server
gpilotd-Message: bonobo_activation_active_server_register = 0
gpilotd-Message: Watching Cradle (usb:)
gpilotd-Message: Found 4766, 0001
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0502, 0736
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 091e, 0004
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 115e, f100
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 082d, 0100
gpilotd-Message: Using net FALSE
gpilotd-Message: Found 082d, 0200
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 082d, 0300
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0c88, 0021
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0001
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0002
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0003
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0020
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0031
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0040
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0050
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0060
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0061
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0070
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 0830, 0080
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 04e8, 8001
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 04e8, 6601
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 0038
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 0066
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 0095
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 009a
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 00c9
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 00da
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 00e9
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 0144
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 054c, 0169
gpilotd-Message: Using net TRUE
gpilotd-Message: Found 12ef, 0100
gpilotd-Message: Using net TRUE

Nothing more.... and nothing happens

Here is the output of dmesg :
[ 2753.676187] usb 1-7.4: new full speed USB device using ehci_hcd and address 11
[ 2753.808898] usb 1-7.4: configuration #1 chosen from 1 choice
[ 2819.648146] usb 1-7.4: USB disconnect, address 11

I tried many times I always have the same response from gpilotd.

Revision history for this message
Arthur Lutz (arthur-lutz) wrote :

same here

Revision history for this message
Arthur Lutz (arthur-lutz) wrote :

stopping hald resolves this bug. see http://bugzilla.gnome.org/show_bug.cgi?id=484509

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.