Ticket #1987 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Cannot delete stalled download from journal

Reported by: tonyforster Owned by: erikos
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
Component: sugar-toolkit Version: 0.84.x
Severity: Unspecified Keywords: r? olpc-0.84
Cc: sayamindu Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

In OS140py, also seen in an earlier py OS

1273025700.458246 ERROR root: Cannot update the palette position.
Exception AttributeError: "'ActivityBundle' object has no attribute '_zip_file'" in <bound method ActivityBundle.del of <sugar.bundle.activitybundle.ActivityBundle object at 0x8e032ac>> ignored
Traceback (most recent call last):

File "/usr/lib/python2.6/site-packages/jarabe/journal/palettes.py", line 139, in erase_activate_cb

bundle = misc.get_bundle(self._metadata)

File "/usr/lib/python2.6/site-packages/jarabe/journal/misc.py", line 102, in get_bundle

return ActivityBundle(file_path)

File "/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py", line 48, in init

Bundle.init(self, path)

File "/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py", line 68, in init

self._zip_file = zipfile.ZipFile(self._path)

File "/usr/lib/python2.6/zipfile.py", line 698, in init

self._GetContents()

File "/usr/lib/python2.6/zipfile.py", line 718, in _GetContents

self._RealGetContents()

File "/usr/lib/python2.6/zipfile.py", line 728, in _RealGetContents

endrec = _EndRecData(fp)

File "/usr/lib/python2.6/zipfile.py", line 189, in _EndRecData

fpin.seek(-sizeEndCentDir, 2)

IOError: [Errno 22] Invalid argument
1273025708.704679 WARNING root: No gtk.AccelGroup in the top level window.
1273025708.719241 WARNING root: No gtk.AccelGroup in the top level window.
1273025708.723876 WARNING root: No gtk.AccelGroup in the top level window.
1273025708.759601 WARNING root: No gtk.AccelGroup in the top level window.
1273025708.774534 WARNING root: No gtk.AccelGroup in the top level window.
1273025710.794003 WARNING root: No gtk.AccelGroup in the top level window.

Attachments

Screenshot stalled.png Download (69.6 KB) - added by tonyforster 3 years ago.
screenshot showing multiple stalled downloads
0001-Cannot-delete-stalled-download-from-journal-1987.patch Download (0.8 KB) - added by alsroot 3 years ago.
1987.patch Download (0.5 KB) - added by erikos 3 years ago.
Patch for 0.84

Change History

Changed 3 years ago by tonyforster

screenshot showing multiple stalled downloads

Changed 3 years ago by tonyforster

see also 1988

Changed 3 years ago by alsroot

  • keywords r? olpc-0.84 added
  • owner changed from alsroot to erikos
  • component changed from journal to sugar-toolkit

Changed 3 years ago by erikos

Can we get a description how to reproduce this bug? I can reproduce 1988, but not this one. The patch does look good otherwise, but I would like to be able to test it.

@Tony: What Sugar version does the image you posted have?

Changed 3 years ago by tonyforster

version is OS140py

I don't know why the download stalled in the first place but I can replicate by commencing a download of turtleart mini from activities.sugarlabs.org and then unplugging the modem. The partially downloaded bundle cannot be deleted from the journal. (and it doesnt resume when connectivity is restored)

Changed 3 years ago by bernie

This is a dupe of #1876.

Changed 3 years ago by erikos

  • keywords r+ added; r? removed

Looks good, please go ahead.

Changed 3 years ago by alsroot

  • status changed from new to closed
  • resolution set to fixed

Changed 3 years ago by erikos

Patch for 0.84

Changed 3 years ago by erikos

  • cc sayamindu added
  • keywords r? added; r+ removed
Note: See TracTickets for help on using tickets.