Closed
Bug 393387
Opened 17 years ago
Closed 17 years ago
week view is blank
Categories
(Calendar :: Calendar Frontend, defect)
Calendar
Calendar Frontend
Tracking
(Not tracked)
VERIFIED
FIXED
0.7
People
(Reporter: ulf.stroehler, Assigned: dbo)
References
Details
(Whiteboard: [0.5 disappearing events])
Attachments
(3 files, 1 obsolete file)
2.26 KB,
patch
|
michael.buettner
:
review+
|
Details | Diff | Splinter Review |
2.07 KB,
patch
|
michael.buettner
:
review+
|
Details | Diff | Splinter Review |
24.73 KB,
patch
|
michael.buettner
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.8.1.6) Gecko/20070731 Firefox/2.0.0.6
Build Identifier: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.8.1.6) Gecko/20070802 Thunderbird/2.0.0.6 ID:2007080210 - Lightning version 0.7.9.2007082202
after some time working with current Lightning nightly build the week view is blank. Means no event of any calendar is displayed at all in week view. All providers seem to be affected.
Day view seems to work.
Unfortunately we don't seem to find anything appropriate in the Error Console displayed.
Reproducible: Sometimes
Steps to Reproduce:
Unfortunately there is no bullet proof way to reproduce but we have a number of users with multiple incidents showing this problem
1. press reload all remote calendars
2. switch to another week
3. hit 'go to today' button
Actual Results:
Week view is completely empty
Expected Results:
Week view should display all events at the appropriate date/time
Reporter | ||
Comment 1•17 years ago
|
||
@daniel: as said this one should be blocking 0.7.
Flags: blocking-calendar0.7?
Comment 2•17 years ago
|
||
There are several bugs regarding this issue, search for Status Whiteboard: [0.5 disappearing events]. But we still don't have a clue what causes this.
Assignee | ||
Comment 3•17 years ago
|
||
We should spend time on this.
Flags: blocking-calendar0.7? → blocking-calendar0.7+
Reporter | ||
Comment 4•17 years ago
|
||
Alternative Steps to Reproduce:
This bug seems to happen during normal work with Thunderbird and Lightning and in conjunction with the new Mail and Calendar switches at the lower left in TB.
I can at least reproduce this bug on one system by toggling the Mail and Calendar switches.
Having switched to Lightning and back to Mail and forth to Lightning the week view is empty.
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → daniel.boelzle
Assignee | ||
Comment 5•17 years ago
|
||
Status of this bug:
I could reproduce the bug with respect to WCAP by cutting the connection after logon, e.g. via wrong proxy settings. I've debugged the problem and it seems that WCAP misses to send a final onOperationComplete under certain circumstances which I'm going to fix. That way, the composite calendar doesn't send a final onOperationComplete; already described in bug 394443. The views however won't process any further until an onOperationComplete has been received, see
<http://mxr.mozilla.org/mozilla1.8/search?string=mRefreshPending&find=calendar&findi=&filter=&tree=mozilla1.8>
I consider this fragile: However we could fix WCAP (and possibly ICS too), we
* have no influence on 3rd party providers(!)
* calendar requests are non-deterministic, what if a remote calendar takes 5 minutes to retrieve data?
It would be good to know why the views guard against multiple open requests.
For mid term, I suggest that we implement the calIOperation handles for async providers. That way the views could cancel a pending request before sending a new one. For short term, I am going to spend time on fixing the bug for ics, too.
Comment 6•17 years ago
|
||
This are the other bugs regarding this issue:
<https://bugzilla.mozilla.org/buglist.cgi?quicksearch=0.5+disappearing+events>
Assignee | ||
Comment 7•17 years ago
|
||
(In reply to comment #5)
> It would be good to know why the views guard against multiple open requests.
Joey or Mickey, could you shed some light on this, please?
Assignee | ||
Comment 8•17 years ago
|
||
Potentially unsafe code => leads to locked queue.
shifted from <https://bugzilla.mozilla.org/show_bug.cgi?id=387559#c41>
Attachment #280159 -
Flags: review?(michael.buettner)
Assignee | ||
Comment 9•17 years ago
|
||
IMO makes general sense; currently needed for WCAP only.
Attachment #280160 -
Flags: review?(michael.buettner)
Comment 10•17 years ago
|
||
(In reply to comment #7)
> (In reply to comment #5)
> > It would be good to know why the views guard against multiple open requests.
> Joey or Mickey, could you shed some light on this, please?
That's because the view refresh() operation wasn't reentrant, see [1]. There's also an explanation where's the problem and why a queue solves it.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=329035#c5
Comment 11•17 years ago
|
||
Comment on attachment 280159 [details] [diff] [review]
ics: missing unlocks in case of error
no complaints, nicely spotted. r=mickey.
Attachment #280159 -
Flags: review?(michael.buettner) → review+
Comment 12•17 years ago
|
||
Comment on attachment 280160 [details] [diff] [review]
distinguish canceled operation from operation error
r=mickey.
Attachment #280160 -
Flags: review?(michael.buettner) → review+
Assignee | ||
Comment 13•17 years ago
|
||
Checked in attached patches + WCAP fixes on HEAD and MOZILLA_1_8_BRANCH.
Status: NEW → ASSIGNED
Updated•17 years ago
|
Target Milestone: --- → 0.7
Version: Trunk → unspecified
Assignee | ||
Comment 14•17 years ago
|
||
We're pretty confident that we've tracked down the problem at Ulf's computer and it turned out to be a slow proxy caused his problem. Thus there's are no more findings than I commented in comment #5: A pending calendar request effectively blocks the view from showing any other calendar. We agreed that implementing calIOperation for composite and ics is the right way. The views could then cancel the pending (composite) and immediately send out a new getItems call.
Updated•17 years ago
|
Whiteboard: [0.5 disappearing events]
Assignee | ||
Comment 15•17 years ago
|
||
- views cancel pending operations instead of waiting until they've benn completed
- implements an operation group used by composite calendar which cancels all sub operations and disconnects the composite listener once the operation has been cancelled
- optimizing unnecessary view refreshes by checking for changes in setDateRange/setDateList; caused by broadcasted onLoad (both unifinder-todo and composite calendar refresh the views)
- compareArrays() helper
Attachment #280740 -
Flags: review?(michael.buettner)
Comment 16•17 years ago
|
||
Daniel, this patch causes a message box to come up, telling me "OPERATION_CANCELLED". This is the well-known beloved WCAP error box, you probably know what I'm talking about. Of course this happens only if WCAP calendars have been configured.
Assignee | ||
Comment 17•17 years ago
|
||
(In reply to comment #16)
Update your tree, I've fixed that this afternoon.
Assignee | ||
Comment 18•17 years ago
|
||
minor improvement
Attachment #280740 -
Attachment is obsolete: true
Attachment #280764 -
Flags: review?(michael.buettner)
Attachment #280740 -
Flags: review?(michael.buettner)
Comment 19•17 years ago
|
||
Comment on attachment 280764 [details] [diff] [review]
calOperationGroup, views cancel pending operation, optimizing setDateRange/setDateList
I didn't find anything to complain about, the patch works like a charm -> r=mickey.
Attachment #280764 -
Flags: review?(michael.buettner) → review+
Assignee | ||
Comment 20•17 years ago
|
||
Checked in on HEAD and MOZILLA_1_8_BRANCH. I hope this fixes some of <https://bugzilla.mozilla.org/buglist.cgi?quicksearch=0.5+disappearing+events>, too.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 21•17 years ago
|
||
Verified in latest nightly 20080108 -> task is fixed.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•