Closed
Bug 97408
Opened 23 years ago
Closed 19 years ago
download progress information is garbled
Categories
(Core Graveyard :: File Handling, defect, P3)
Core Graveyard
File Handling
Tracking
(Not tracked)
RESOLVED
WORKSFORME
mozilla1.0.1
People
(Reporter: mozilla.org, Assigned: beard)
References
()
Details
(Whiteboard: patch, review)
Attachments
(6 files, 1 obsolete file)
1.32 KB,
image/png
|
Details | |
12.19 KB,
image/tiff
|
Details | |
18.53 KB,
image/jpeg
|
Details | |
1.40 KB,
patch
|
Details | Diff | Splinter Review | |
1.15 KB,
patch
|
mkaply
:
review+
mkaply
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
11.02 KB,
image/gif
|
Details |
With Mozilla 2001082805 on Mac OS X 10.0.4: Visit the URL and choose to Save this file to Disk. The download progress dialog shows nonsense numbers under Status, Time Left, and Elapsed Time.
Looks like this doesn't happen all the time, but it happens sometimes.
Comment 2•23 years ago
|
||
the next time you see this, could you pls attach a screenshot? i don't think i've seen this recently...
Here's a screen shot of the problem (with 2001082905). Notice that the kb/sec is negative, and there are minus signs in the time left and elapsed time columns. The seconds column of elapsed time seems to count up -59, -58, -57 .... I didn't really catch any other patterns. This doesn't happen with every download. I don't know what conditions cause this to happen.
Evidently Mozilla can get in a state where some of the time values that should be positive integers come up negative. The 0-0 format comes about when the formatSeconds function adds leading 0s to the negative numbers. http://lxr.mozilla.org/seamonkey/source/xpfe/components/ucth/resources/helperAppDldProgress.js
Confirming due to second report. (I have not been able to duplicate however.) Not sure if this is the right component, though. Blake?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 8•23 years ago
|
||
->trudelle for triage. pink, have you seen this?
Assignee: blakeross → trudelle
Comment 9•23 years ago
|
||
i have not seen this, but i haven't played much with this dialog. pchen is probably a likely owener for this bug.
Assignee: trudelle → pchen
Comment 10•23 years ago
|
||
marking p3 and mozilla1.0
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.0
Comment 11•23 years ago
|
||
spam: over to File Handling. i have not changed the assigned developer [or the other fields for that matter], so if anyone realizes that a bug should have a more appropriate owner, go ahead and change it. :)
Component: XP Apps: GUI Features → File Handling
Comment 12•23 years ago
|
||
*** Bug 106175 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 15•23 years ago
|
||
This still happens with Mozilla 0.9.6 on Mac OS X 10.1.1. Don't know about newer code.
Comment 16•23 years ago
|
||
*** Bug 115449 has been marked as a duplicate of this bug. ***
Comment 17•23 years ago
|
||
changing platform to all since at least two of the duped bugs (including the one from me) are on mac os 9.x. i have seen this more often since switching to mac os x (10.1.x). it seems to be very likely after having mozilla open for several hours, and with an opperating system and a browser that don't crash i don't see many other reasons to ever quit moz.
OS: MacOS X → All
Comment 18•23 years ago
|
||
i poked at the code a little bit, and have an idea for a quick fix, i think. now stays good, but startTime does not get set correctly. i think i am going to do something like if (startTime > now) startTime = now; which will give unreasonably high KB per second at the begining of a transfer, like the old code will, but it seems like a good backup to me.
Comment 19•23 years ago
|
||
I put together a simple patch. It checks to see if startTime > now, and if so sets StartTime = now and sets missedBytes to the amount downloaded so far. Download speed now factors in missedBytes. I still don't know what is causing a bad value with startTime, but this gives accurate results even when startTime is wrong.
Updated•23 years ago
|
Whiteboard: patch, review
Comment 20•23 years ago
|
||
i doubt pchen will be of much help on this. reassigning to default owner.
Assignee: pchen → law
Status: ASSIGNED → NEW
Comment 21•23 years ago
|
||
This bug is still present in Mozilla 2002022108 (OS/2), apparently. Screen shot (download.jpg, attached) shows the problem on this platform/build.
Comment 22•22 years ago
|
||
*** Bug 129382 has been marked as a duplicate of this bug. ***
Comment 23•22 years ago
|
||
Timothy: could you try my patch and see whether that fixes it for you?
Comment 24•22 years ago
|
||
*** Bug 130320 has been marked as a duplicate of this bug. ***
Comment 25•22 years ago
|
||
Attachment #64352 -
Attachment is obsolete: true
Comment 26•22 years ago
|
||
*** Bug 130871 has been marked as a duplicate of this bug. ***
Comment 27•22 years ago
|
||
As a note, a lot of the dups are on OS/2. What do OS/2 and mac have in common?
Comment 28•22 years ago
|
||
eero.juhola@capgemini.fi: would you be willing to try my patch? anyone on OS/2? Don't all speak up at once now.
Comment 29•22 years ago
|
||
I am taking a look at this for OS/2. Yes, mStartTime is getting set incorrectly, at nsProgressDialog.js:95 ("set startTime(newval) { return this.mStartTime = newval/1000; }"). The mStartTime value gets set correctly at line 55 (constuctor), but someone else is passing in a bogus value that is greater than the current time, such that elaspedTime becomes negative. I am trying to put dump() statements in the code, but I cannot get it to work. I enabled the pref in Pref->Debug, but nothing shows up in either the console or JavaScript console. Any ideas on how I can make dump() work?
Comment 30•22 years ago
|
||
OK, this single line patch fixes the issue for me: Index: nsProgressDialog.js =================================================================== RCS file: /cvsroot/mozilla/embedding/components/ui/progressDlg/nsProgressDialog.js,v retrieving revision 1.5 diff -u -r1.5 nsProgressDialog.js --- nsProgressDialog.js 2002/02/20 07:54:04 1.5 +++ nsProgressDialog.js 2002/03/14 21:34:39 @@ -92,7 +92,7 @@ get observer() { return this.mObserver; }, set observer(newval) { return this.mObserver = newval; }, get startTime() { return this.mStartTime; }, - set startTime(newval) { return this.mStartTime = newval/1000; }, // PR_Now() is in microseconds, so we convert. + set startTime(newval) { return; }, get lastUpdate() { return this.mLastUpdate; }, set lastUpdate(newval) { return this.mLastUpdate = newval; }, get interval() { return this.mInterval; }, I think the incorrect value that is being passed in comes from nsExternalHelperAppService.cpp:1394. I'll look into this next.
Comment 31•22 years ago
|
||
OK, I took a look at nsExternalHelperAppService.cpp, and the values that they are passing to SetStartTime() are correct. I think the bug is actually in the xptcall code. Somehow, the value is getting mangled when it goes from C++ to JavaScript. Maybe both OS/2 and Mac don't handle 'long long' well.
Comment 32•22 years ago
|
||
The problem on OS/2 was in the xptcall code. We were not properly handling the high bit of the long long. I have not looked at the Mac code, but I think that it may also have an issue in xptcall.
Comment 33•22 years ago
|
||
Comment on attachment 74234 [details] [diff] [review] OS/2 patch r=mkaply sr=blizzard (platform specific code)
Attachment #74234 -
Flags: superreview+
Attachment #74234 -
Flags: review+
Comment 34•22 years ago
|
||
cc'ing beard on the question of Mac PPC xptcall stubs code perhaps not properly handling long long.
Comment 35•22 years ago
|
||
Comment on attachment 74234 [details] [diff] [review] OS/2 patch a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #74234 -
Flags: approval+
Comment 36•22 years ago
|
||
has the OS/2 patch landed? time is running out.
Comment 37•22 years ago
|
||
Os/2 patch has landed I don't understand why we have heard nothing from the Mac folks on this.
Comment 38•22 years ago
|
||
Because on the mac it not easily reproduceable, and truth be told i have not seen it for quite some time. It would be nice if someone followed in your footsteps and killed this thing on mac too, but i'm not sure if anyone at netscape has ever seen this (on mac), and i don't really have the capabilities to dl/compile a package the size of moz.
Comment 39•22 years ago
|
||
beard understands the xpt stuff. over to him for some mac luvin
Assignee: law → beard
Assignee | ||
Comment 40•22 years ago
|
||
I haven't seen this for a long time on Mac builds either.
Status: NEW → ASSIGNED
Comment 41•22 years ago
|
||
yes, this does still happen. my 3/31 build is doing it as we speak on osx.
Keywords: nsbeta1
Comment 42•22 years ago
|
||
Just downloaded OS/2 build 20020402 and can report that the problem is now gone on this platform at least.
Comment 43•22 years ago
|
||
*** Bug 135377 has been marked as a duplicate of this bug. ***
Comment 44•22 years ago
|
||
*** Bug 135383 has been marked as a duplicate of this bug. ***
Comment 45•22 years ago
|
||
*** Bug 136052 has been marked as a duplicate of this bug. ***
Comment 46•22 years ago
|
||
*** Bug 136201 has been marked as a duplicate of this bug. ***
Comment 47•22 years ago
|
||
*** Bug 144358 has been marked as a duplicate of this bug. ***
Comment 48•22 years ago
|
||
GIF screenshot showing RC2 garbled download times, Mac OS 9.2
Comment 49•22 years ago
|
||
As I pointed out before, someone needs to debug the long long xpt code on Mac
Assignee | ||
Comment 50•22 years ago
|
||
bryner, would you take a look at this?
Assignee | ||
Updated•22 years ago
|
Updated•22 years ago
|
QA Contact: sairuh → petersen
Reporter | ||
Comment 51•19 years ago
|
||
No activity in three years and I have not experienced this problem in a long time. Please reopen this bug if you still see this problem in recent versions.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•