#1 2020-06-20 08:29:40

hermanv
Member
Registered: 2017-02-17
Posts: 22

Entry from smartphone not immediately visible in Thunderbird

This happens probably since Thunderbird 6.68.0. on Linux Mageia 7
Enter new data in Thunderbird on Linux PC and others on smartphone.
Connect sparthone on own LAN and force synching.
The changes made in Thunderbird are immediately visible on the smartphone, but the changes on the smartphone arre not on visible in Thunderbird.
After some time, disconnect the smartphone, and at the and of the day, stop the Mageia PC.
Next day, start the Mageia PC (do not connect the smartphone) and the updates from the smartphone show up in Thunderbird.
I cann't decide whether this is really a generalsync-issue or there is something going on in Thunderbird.

#2 2020-06-20 16:34:35

ds
Founder / Developer
From: Freiburg, Germany
Registered: 2016-06-15
Posts: 278

Re: Entry from smartphone not immediately visible in Thunderbird

hermanv wrote:

This happens probably since Thunderbird 6.68.0. on Linux Mageia 7

I assume you mean Thunderbird 68.0?

hermanv wrote:

start the Mageia PC (do not connect the smartphone) and the updates from the smartphone show up in Thunderbird

That does indeed sound as if GeneralSync already received the data soon after the change was performed on the Smartphone. There are a few things you could check to identify the cause of the issue:

  • Do the events show up if you restart Thunderbird?

  • If not, do they show up if you completely close GeneralSync (via the context menu on the tray icon or, if you disabled the tray icon, via "path/to/generalsync --kill" in the console) and restart it?

  • Are there messages in Thunderbird's error console (Ctrl+Shift+J in Thunderbird's main window) shortly after performing the change on the Smartphone?

  • Which version of the GeneralSync integration add-on is installed in Thunderbird (current version is 1.0.0.4)?

  • Do you experience any other calendar-related issues in Thunderbird (for example events being displayed without background colors)?

It is likely that the problem either resides in Thunderbird, is the result of an incompatibility with an add-on or resides in the GeneralSync integration add-on, especially if the restart of Thunderbird fixes the issue. With your answers to the questions above we can hopefully narrow it down further.

#3 2020-06-23 07:45:16

hermanv
Member
Registered: 2017-02-17
Posts: 22

Re: Entry from smartphone not immediately visible in Thunderbird

Versions:
Thunderbird 68.8.0
Add on: 1.0.0.4 installed 8 may 2020

Thunderbird error console says:
TypeError: document.getElementById(...) is null
main.js:22:12
Gebruik van Mutation Events wordt niet meer ondersteund. Gebruik in plaats daarvan MutationObserver.
in English: Use of Mutation Events is no longer supported. Use MutationObserver instead.
And yes, restarting Thunderbird brings the entry on.

#4 2020-06-23 09:42:40

ds
Founder / Developer
From: Freiburg, Germany
Registered: 2016-06-15
Posts: 278

Re: Entry from smartphone not immediately visible in Thunderbird

hermanv wrote:

Thunderbird error console says:
TypeError: document.getElementById(...) is null
main.js:22:12

While this is not the full message (there should be a triangle to expand it), it is very likely that this message is generated within the GeneralSync add-on during startup. The add-on tries to access Lightning, but fails. This usually happens if Lightning failed to load or had some other startup error.

If that is indeed the case, it is possible that the partially loaded Lightning add-on causes the issues you're experiencing. So it seems like a good idea to address this issue first.

It may help to disable / re-enable some add-ons, sometimes that causes subtle changes that permit Lightning to correctly load in subsequent startups. In other cases, it may help to start Thunderbird in safe mode once. In more extreme cases, it could also help to manually delete Thunderbird's cache – but that can be dangerous so I'd advise to try other options first.

Did that help?

#5 2020-06-23 09:53:49

hermanv
Member
Registered: 2017-02-17
Posts: 22

Re: Entry from smartphone not immediately visible in Thunderbird

At the startup of Thunderbird (in fact, the first thing I see on the error console) is:
1592898095639    addons.xpi    WARN    Exception running bootstrap method startup on langpack-nl@thunderbird.mozilla.org: Error: Source with name "browser-langpack-nl-comm-mail" already registered.(resource://gre/modules/L10nRegistry.jsm:186:13) JS Stack trace: registerSource@L10nRegistry.jsm:186:13
startup@Extension.jsm:2474:20
startup@Extension.jsm:1552:26
callBootstrapMethod@XPIProvider.jsm:1809:33
startup@XPIProvider.jsm:1913:32
startup@XPIProvider.jsm:2482:39
callProvider@AddonManager.jsm:213:31
_startProvider@AddonManager.jsm:649:5
startup@AddonManager.jsm:873:14
startup@AddonManager.jsm:3470:26
observe@addonManager.js:70:29
Error: Cannot find loader for bootstrap XPIProvider.jsm:1877:15
WebExtensions: Loading packed extension from /home/herman/.thunderbird/rf6kawiv.default/extensions/generalsync-thunderbird@generalsync.com.xpi

As far as Thunderbird extensions are concerned, I have 3:
Filelink provider for Box
Generalsync
Lightning

Are you suggesting to disable Lightning, restart Thunderbird and enabling it again (without removing it completely)? That extension is in fact installed by default using the rpm's in Mageia's repos.

#6 2020-06-23 17:18:57

ds
Founder / Developer
From: Freiburg, Germany
Registered: 2016-06-15
Posts: 278

Re: Entry from smartphone not immediately visible in Thunderbird

hermanv wrote:

1592898095639    addons.xpi    WARN    Exception running bootstrap method startup on langpack-nl@thunderbird.mozilla.org: Error: Source with name "browser-langpack-nl-comm-mail" already registered.(resource://gre/modules/L10nRegistry.jsm:186:13)

Not sure if that is related, but seems like you installed your locale files twice. I'd assume you installed a localization package through Mageia, and manually selected that language in Thunderbird (which triggers the download of a copy from Thunderbird's own updater). In theory, you should see installed languages in the add-ons tab (they have a separate category on the left, below "extensions" and "themes") and/or in the preferences (first tab in "advanced").

hermanv wrote:

Are you suggesting to disable Lightning, restart Thunderbird and enabling it again (without removing it completely)?

I suggested disabling and enabling any of your add-ons. For some bugs in earlier versions a common workaround was enabling and disabling add-ons at random until it worked again. I'm not aware of a similar bug in 68.8, but as you got similar symptoms it seems to be worth a shot.

Either way, these kinds of issues will get fixed in the upcoming 78.* versions of Thunderbird, as calendar features will be integrated into Thunderbird and thus no longer depend on the add-on loader.

#7 2020-06-24 08:46:20

hermanv
Member
Registered: 2017-02-17
Posts: 22

Re: Entry from smartphone not immediately visible in Thunderbird

There is indeed a double language setting. Experimenting this later, but that's not the real issue.
Your recommendation worked OK. Disabled all  add-ons, restarted Thunderbird, enabled again, restarted Thundrbird again, and now an update from the smartphone comes thru immediately.
Tx a lot.

Board footer