alice-mkh / lightbird

Sunbird UI for Lightning on SeaMonkey
https://addons.mozilla.org/en-US/seamonkey/addon/lightbird/
13 stars 2 forks source link

Time displayed is offset #15

Closed FatCache closed 9 years ago

FatCache commented 9 years ago

Hey I'm on Ubuntu 15.04 and the current time it displayed on the calendar by the red line is off set by like 30 minutes. Sometimes its one hour. Anyone know what be going on?

When I turned the extension off, the time displayed by lightening is fine.

alice-mkh commented 9 years ago

Interesting. It's the second time people report this, but I cannot reproduce it... What time zone is set in the system and in the calendar? Is Lightning Timezone Definitions extension installed? Do you use Lightbird in SeaMonkey or Thunderbird?

alice-mkh commented 9 years ago

What also may be useful: SeaMonkey/Thunderbird and Lightning versions? If you aren't using latest Lightbird from addons.mozilla.org (0.4), please also tell me.

FatCache commented 9 years ago

The timezone set in Ubuntu is Asia/Karachi.

Using Thunderbird 31.7.0 on Ubuntu 15.04 3.19.0-21-generic #21-Ubuntu SMP Sun Jun 14 18:31:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Lightening Version 3.3.3 and latest Lightbrid 0.4

No, I do not have Lightning Timezone Definitions extension installed and from the addon database, it doesn't seem to exisit.

alice-mkh commented 9 years ago

I'll test it on exactly that configuration to see if I can reproduce it. Could you show a screenshot? Maybe it's just updating too infrequently (the interval is 15 minutes by default, this may be too much)

FatCache commented 9 years ago

I just reinstalled Lightbird and it's displaying fine.

Going to wait a see if lags again or not.

On 06/27/2015 10:05 PM, Exalm wrote:

I'll test it on exactly that configuration to see if I can reproduce it. Could you show a screenshot? Maybe it's just updating too infrequently (the interval is 15 minutes by default, this may be too much)

— Reply to this email directly or view it on GitHub https://github.com/Exalm/lightbird/issues/15#issuecomment-116101247.

FatCache commented 9 years ago

I rechecked it after running for a while, the bug reappeared.

selection_014

After resizing the window, it seems it tried updating but still offset from the real time

selection_015

FatCache commented 9 years ago

/wrong

alice-mkh commented 9 years ago

I'm already downloaded Ubuntu 15.04 (Debian doesn't package Thunderbird. I could just download Mozilla build or compile it myself, but the problem may only happen on Canonical builds), let me install it in VirtualBox, so I can debug it. Also, check Error Console please, is there anything suspicious related to timeBar or timeIndicator?

alice-mkh commented 9 years ago

Or maybe it just doesn't update. I usually don't keep calendar open and close it after I've done what I wanted, so maybe that's why I didn't noticed it. I'll leave it open now and see. Very possible reason, since it explains nicely why it works in Lightning calendar tab, but doesn't in Lightbird.

FatCache commented 9 years ago

It is possible to cycle between 'standalone' calendar provided with Lightbird and integrated one which comes by default with Lightening? Because when I close the calendar in the Lightbird mode, I don't get notification or update.

Not sure what you mean by timeBar and timeIndicator.

alice-mkh commented 9 years ago

No, it's not possible, and I don't intend making it possible, since the whole purpose of Lightbird is to get rid of that horrible "integrated" UI. I've tested the time bar, it updates properly on SeaMonkey. It also notifies properly when the window is closed.

As for timeBar and timeIndicator, I suggested searching that in error console. There might be some messages like "error in updateTimeBar()" But I see that myself now. A Thunderbird-specific issue, yeah.

alice-mkh commented 9 years ago

Wait, but it behaves like this without Lightbird as well... And if I set calendar.view.timeIndicatorInterval to 1, it becomes fine (but obviously loads CPU because of frequent updates). Check that pref please. What do you have there?

alice-mkh commented 9 years ago

However, confirmed lack of background notifications on Thunderbird. Opened #16.

FatCache commented 9 years ago

selection_017

I hope I did that right. I accidentally cleared the error console and lost what it said regarding timeIndicator.

alice-mkh commented 9 years ago

Almost. You used the wrong text field, there'a another one at the bottom. But I've have already looked myself, and the error console is clean.

alice-mkh commented 9 years ago

Hmm, I can't reproduce it anymore. It updates properly in Thunderbird as well for me... Again, what value does calendar.view.timeIndicatorInterval pref have in about:config?

FatCache commented 9 years ago

When you load up initially. It's fine but slowly it starts to get bugged. Look

selection_019

Just checked error console. There doesn't seem to be any error being shown even with that bug.

alice-mkh commented 9 years ago

Again, what value does calendar.view.timeIndicatorInterval pref have in about:config?

alice-mkh commented 9 years ago

Yes, I left it opened for about two hours, and it still was fine.

FatCache commented 9 years ago

15

selection_020

FatCache commented 9 years ago

Note I did change the value of mail.db.idle_limit to 30000000 as described here http://rainbow.chard.org/2013/02/19/thunderbird-high-cpu/

alice-mkh commented 9 years ago

^ that isn't relevant. Lightning's backend is not related to mail DB closing delay in any way. However, I see that on your latest screenshot it's fine. The red indicator updates every 15 minutes (since you have 15 in that pref), and it seems that it updated at about 7:50 the last time. Try to wait a bit more, will it update?

FatCache commented 9 years ago

Ok it did update. So the fix is to change the indicator timer number to something much lower.

Why would having a low number of it result in high CPU? Outlook seems to do it pretty live. Going to make it update every 2 minutes.

Bug solved I guess :)

Thank Exalm

On 06/28/2015 08:12 PM, Exalm wrote:

^ that isn't relevant. Lightning's backend is not related to mail DB closing delay in any way. However, I see that on your latest screenshot it's fine. The red indicator updates every 15 minutes (since you have 15 in that pref), and it seems that it updated at about 7:50 the last time. Try to wait a bit more, will it update?

— Reply to this email directly or view it on GitHub https://github.com/Exalm/lightbird/issues/15#issuecomment-116289413.

alice-mkh commented 9 years ago

Well, it would update more frequently. :) But yes, lowering it a bit would not harm too much. You can ask Lightning devs about that, it's not my decision to set it to 15 and not to provide configuration UI for that. :)