hangs after install.py exits successfully

Bug #269052 reported by Colin Watson
4
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Fix Released
High
Evan

Bug Description

Binary package hint: usb-creator

After fixing bugs 269044, 269048, and 269050 locally, I managed to get install.py to exit apparently successfully. However, once it does, it hangs apparently forever. The terminal output was:

new device:
{'uuid': '3433-3231', 'label': 'KINGSTON', 'free': 7282331648L, 'fstype': 'vfat', 'device': '/dev/sdb1', 'mountpoint': '/media/KINGSTON', 'udi': '/org/freedesktop/Hal/devices/volume_uuid_3433_3231'}
mounting /home/cjwatson/ubuntu/cdimage/intrepid-desktop-i386.iso
Installing...
installing the bootloader to /dev/sdb1.
['/usr/share/usb-creator/install.py', '-s', '/tmp/tmpBCsVjh/.', '-t', '/media/KINGSTON']
Unmounting source volume.
Install command exited with code: 0

Revision history for this message
Colin Watson (cjwatson) wrote :

The parent process seems to be spinning in a tight gettimeofday() loop. Perhaps the gobject watch stuff is a bit wrong?

Revision history for this message
Colin Watson (cjwatson) wrote :

Oh, well, sometimes it goes off into reading "\3\0\0\0\2\0\0\0\0\0\0\0 \0\0\0usb-creator.trace\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" repeatedly from fd 4 ... but at any rate it's polling something very heavily.

Revision history for this message
Colin Watson (cjwatson) wrote :

Interestingly, this doesn't happen if I apply:

- cmd = ['/usr/share/usb-creator/install.py', '-s', '%s/.' % source, '-t', '%s' % target]
+ cmd = ['true']

Something broken in the progress code, maybe?

Revision history for this message
Evan (ev) wrote :

I think I've fixed this, it's not occurring for me anymore, though I cannot pinpoint the cause.

Changed in usb-creator:
assignee: nobody → evand
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Evan (ev) wrote :

usb-creator no longer uses a gobject watch to manage a separate install process as the install methods are now executed in a separate thread. I therefore believe this to be fixed. If this bug crops back up, please open a new report or feel free to re-open this one.

Thanks!

Changed in usb-creator (Ubuntu):
status: Confirmed → Fix Released
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.