Closed Bug 308680 Opened 19 years ago Closed 19 years ago

"Reset Camino" appears to hang when many items are in the dowload manager

Categories

(Camino Graveyard :: General, defect)

PowerPC
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.0

People

(Reporter: ernstwagner, Assigned: nick.kreeger)

Details

(Keywords: fixed1.8, hang)

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050914 Camino/1.0a1
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050914 Camino/1.0a1

camino does nor reset (menu: 'reset camino') it frozes so that only a forced
quit helps. I get the same effect when I try to clean the download window.

Reproducible: Always
Summary: camino does nor reset (menu: 'reset camino') → camino does nor reset (menu: 'reset camino')
Keywords: hang
Summary: camino does nor reset (menu: 'reset camino') → camino does not reset (menu: 'reset camino')
How many items are in your download window? If you have a lot of items in there,
it takes a long time to empty.
(In reply to comment #1)
> How many items are in your download window? If you have a lot of items in there,
> it takes a long time to empty.

there were many. 100? when I deleted them 10 by 10 I reached suddenly the point where I could clean 
them all. and after that, the reset menu worked properly again. too many items in the download window 
block the reset menu!
Summary: camino does not reset (menu: 'reset camino') → Reset Camino appears to hang when many items are in the dowload manager
Taking
Assignee: pinkerton → nick.kreeger
Kicking off UNCO, since we kinda knew there might be issues when many downloads
were kept in the manager.

We need to fix this for 1.0, right?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Reset Camino appears to hang when many items are in the dowload manager → "Reset Camino" appears to hang when many items are in the dowload manager
Correct, I will look at cleaning up the reset code and download list saving. We
are getting a little backed up on download patches, trying to keep them from
being bit-rotted.
we need to get this fixed for 1.0
Flags: camino1.0? → camino1.0+
Attached patch Proposed patch (obsolete) — Splinter Review
The problem wasn't with saving the download list, it was the redraw that was happening every time a download was removed from the list. I added a in-param to |removeDownload| in ProgressDlgController. This is needed because there are some cases when we do want the stack to reload itself and redraw. 

That being said this patch fixes the reset camino and clean-up downloads hanging!

Feel free to test with the attached downloads.plist that I attachted, it saves time from downloading a bunch!
Attached file downloads.plist sample
Just to help for testing, replace your downloads.plist in your /app support/camino/ folder and run, saves time from building up the list manually
Target Milestone: --- → Camino1.0
Attached patch Updated PatchSplinter Review
As pink pointed out in IRC, this does not fix the case of the user manually selecting all of them and clicking remove. So pull out the call to [self rebuildViews] in |removeDownload:| in ProgressDlgController. 

Instead, call [self rebuildViews] after a looped iteration when calling |removeDownload:| for ProgressDlgController.
Attachment #201592 - Attachment is obsolete: true
fixed trunk and branch
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: